INFRA: Set Up Project.

This commit is contained in:
2025-11-28 11:10:49 +05:00
commit c798279f7d
609 changed files with 77436 additions and 0 deletions

22
lib/themes/styles.dart Normal file
View File

@@ -0,0 +1,22 @@
import 'package:flutter/material.dart';
import 'app_them_data.dart';
class Styles {
static ThemeData themeData(bool isDarkTheme, BuildContext context) {
return ThemeData(
scaffoldBackgroundColor: isDarkTheme ? AppThemeData.surfaceDark : AppThemeData.surface,
primaryColor: isDarkTheme ? AppThemeData.dangerDark300 : AppThemeData.danger300,
brightness: isDarkTheme ? Brightness.dark : Brightness.light,
appBarTheme: AppBarTheme(
backgroundColor: isDarkTheme ? AppThemeData.grey900 : AppThemeData.grey50,
),
timePickerTheme: TimePickerThemeData(
backgroundColor: isDarkTheme ? AppThemeData.greyDark100 : AppThemeData.grey100,
dialTextStyle: TextStyle(fontWeight: FontWeight.bold, color: isDarkTheme ? AppThemeData.greyDark100 : AppThemeData.grey100),
dialTextColor: isDarkTheme ? AppThemeData.greyDark50 : AppThemeData.grey50,
hourMinuteTextColor: isDarkTheme ? AppThemeData.greyDark100 : AppThemeData.grey100,
dayPeriodTextColor: isDarkTheme ? AppThemeData.greyDark100 : AppThemeData.grey100,
),
);
}
}