theme & package

This commit is contained in:
Sas Andy
2024-02-22 10:37:01 +07:00
parent d35ca7ab8b
commit c23e68de36
3 changed files with 101 additions and 17 deletions

View File

@@ -1,3 +1,4 @@
import 'package:absensi_sas/app/constant.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';
@@ -43,7 +44,23 @@ class MyApp extends StatelessWidget {
// ),
theme: ThemeData(
primarySwatch: Colors.orange,
primaryColor: Constant.textOrange,
primaryColorDark: Constant.textOrange,
primaryColorLight: Constant.textOrange,
colorScheme: Theme.of(context).colorScheme.copyWith(
primary: Constant.textOrange,
background: Colors.white,
surface: Colors.white),
// datePickerTheme: DatePickerThemeData(
// // backgroundColor: Colors.white,
// // headerHeadlineStyle:
// // Constant.h3_400(context: context).copyWith(color: Colors.white),
// headerBackgroundColor: Constant.textOrange,
// headerForegroundColor: Colors.white,
// surfaceTintColor: Colors.white,
// backgroundColor: Colors.white),
),
// home: TestMap(),
initialRoute: loginRoute,
// initialRoute: presensiSelfieRoute,