calcolatrice/lib/core/theme/app_theme.dart

26 lines
892 B
Dart
Raw Permalink Normal View History

2026-03-04 14:33:15 +01:00
import 'package:flutter/material.dart';
class AppTheme {
static ThemeData get lightTheme {
return ThemeData(
useMaterial3: true,
colorScheme: ColorScheme.fromSeed(
seedColor: Colors.deepPurple,
brightness: Brightness.light,
),
// Stile per i testi grandi del display
textTheme: const TextTheme(
displayLarge: TextStyle(fontSize: 48, fontWeight: FontWeight.bold, color: Colors.black),
bodyMedium: TextStyle(fontSize: 18, color: Colors.grey),
),
// Stile universale per i bottoni
elevatedButtonTheme: ElevatedButtonThemeData(
style: ElevatedButton.styleFrom(
padding: const EdgeInsets.all(20),
shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(24)),
textStyle: const TextStyle(fontSize: 24, fontWeight: FontWeight.w600),
),
),
);
}
}