26 lines
No EOL
892 B
Dart
26 lines
No EOL
892 B
Dart
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),
|
|
),
|
|
),
|
|
);
|
|
}
|
|
} |