Create management portal in Flutter #39
This commit is contained in:
parent
07311cd710
commit
863e316b8a
@ -24,15 +24,11 @@ class MyApp extends StatefulWidget {
|
|||||||
class _MyAppState extends State<MyApp> {
|
class _MyAppState extends State<MyApp> {
|
||||||
@override
|
@override
|
||||||
Widget build(context) {
|
Widget build(context) {
|
||||||
|
final snackBarTheme = SnackBarThemeData(
|
||||||
|
width: MediaQuery.of(context).size.width * 0.60,
|
||||||
|
);
|
||||||
|
|
||||||
return MaterialApp(
|
return MaterialApp(
|
||||||
title: constants.appTitle,
|
|
||||||
theme: ThemeData(
|
|
||||||
brightness: Brightness.light,
|
|
||||||
colorScheme: ColorScheme.fromSeed(
|
|
||||||
seedColor: Colors.deepOrange,
|
|
||||||
brightness: Brightness.light,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
themeMode: ThemeMode.dark,
|
themeMode: ThemeMode.dark,
|
||||||
darkTheme: ThemeData(
|
darkTheme: ThemeData(
|
||||||
useMaterial3: true,
|
useMaterial3: true,
|
||||||
@ -44,7 +40,9 @@ class _MyAppState extends State<MyApp> {
|
|||||||
surface: Color.fromARGB(255, 32, 33, 36),
|
surface: Color.fromARGB(255, 32, 33, 36),
|
||||||
surfaceContainerLow: Color.fromARGB(255, 41, 42, 45),
|
surfaceContainerLow: Color.fromARGB(255, 41, 42, 45),
|
||||||
),
|
),
|
||||||
|
snackBarTheme: snackBarTheme,
|
||||||
),
|
),
|
||||||
|
title: constants.appTitle,
|
||||||
initialRoute: '/',
|
initialRoute: '/',
|
||||||
routes: {
|
routes: {
|
||||||
'/': (context) => const HomeScreen(title: constants.appTitle),
|
'/': (context) => const HomeScreen(title: constants.appTitle),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user