42 lines
1.2 KiB
Dart
42 lines
1.2 KiB
Dart
import 'package:flutter/material.dart';
|
|
import 'app_color.dart';
|
|
|
|
class AppTheme {
|
|
static ThemeData get darkTheme {
|
|
return ThemeData(
|
|
useMaterial3: true,
|
|
brightness: Brightness.dark,
|
|
scaffoldBackgroundColor: AppColor.background,
|
|
colorScheme: const ColorScheme.dark(
|
|
primary: AppColor.primary,
|
|
secondary: AppColor.secondary,
|
|
surface: AppColor.cardBg,
|
|
error: AppColor.danger,
|
|
),
|
|
cardTheme: const CardThemeData(
|
|
color: AppColor.cardBg,
|
|
elevation: 0,
|
|
shape: RoundedRectangleBorder(
|
|
borderRadius: BorderRadius.all(Radius.circular(16)),
|
|
),
|
|
),
|
|
appBarTheme: const AppBarTheme(
|
|
centerTitle: true,
|
|
backgroundColor: AppColor.background,
|
|
elevation: 0,
|
|
titleTextStyle: TextStyle(
|
|
color: Colors.white,
|
|
fontSize: 20,
|
|
fontWeight: FontWeight.bold,
|
|
),
|
|
),
|
|
bottomNavigationBarTheme: const BottomNavigationBarThemeData(
|
|
backgroundColor: AppColor.cardBg,
|
|
selectedItemColor: AppColor.primary,
|
|
unselectedItemColor: Colors.grey,
|
|
elevation: 8,
|
|
),
|
|
);
|
|
}
|
|
}
|