@@ -31,7 +31,6 @@ ThemeData getTheme() {
3131 surface: Colors .grey[700 ]! , //appbar
3232 onSurface: Colors .white, //titlebar text
3333 ),
34- backgroundColor: Colors .white,
3534 //canvasColor: Colors.white,
3635 scaffoldBackgroundColor: Colors .grey[900 ],
3736
@@ -44,7 +43,6 @@ ThemeData getTheme() {
4443
4544 disabledColor: Colors .grey[700 ],
4645 unselectedWidgetColor: Colors .white,
47- toggleableActiveColor: Colors .white,
4846 inputDecorationTheme: InputDecorationTheme (
4947 labelStyle: const TextStyle (color: Colors .white),
5048 focusedBorder: const UnderlineInputBorder (
@@ -74,36 +72,19 @@ ThemeData getTheme() {
7472 if (states.contains (MaterialState .disabled)) return Colors .grey[700 ]! ;
7573 return Colors .grey[300 ]! ;
7674 }))),
77- // elevatedButtonTheme: ElevatedButtonThemeData(
78- // style: ButtonStyle(
79- // backgroundColor: MaterialStateColor.resolveWith((states) {
80- // if (states.contains(MaterialState.disabled)) return Colors.grey[700]!;
81- // return Colors.blue;
82- // }),
83- // foregroundColor: MaterialStateColor.resolveWith((states) {
84- // if (states.contains(MaterialState.disabled)) return Colors.grey;
85- // return Colors.white;
86- // }),
87- // )),
88- textTheme: TextTheme (
89- caption: TextStyle (color: Colors .grey[400 ]),
90- button: const TextStyle (color: Colors .pink),
9175
92- // headline1: TextStyle(color: Colors.orange),
93- // headline2: TextStyle(color: Colors.red),
94- // overline: TextStyle(color: Colors.pink),
95- // headline3: TextStyle(color: Colors.pink),
96- // headline4: TextStyle(color: Colors.red),
97- // headline5: TextStyle(color: Colors.green),
76+ elevatedButtonTheme: ElevatedButtonThemeData (
77+ style: ButtonStyle (
78+ backgroundColor: MaterialStateColor .resolveWith ((states) {
79+ if (states.contains (MaterialState .disabled)) return Colors .grey[700 ]! ;
80+ return Colors .blue;
81+ }),
82+ foregroundColor: MaterialStateColor .resolveWith ((states) {
83+ if (states.contains (MaterialState .disabled)) return Colors .grey;
84+ return Colors .white;
85+ }),
86+ )),
9887
99- //popup titles
100- headline6: const TextStyle (color: Colors .white),
101-
102- bodyText1: const TextStyle (color: Colors .grey),
103- subtitle1: const TextStyle (color: Colors .white),
104- subtitle2: const TextStyle (color: Colors .pink),
105- bodyText2: const TextStyle (color: Colors .white), //default text
106- ),
10788 dialogTheme: DialogTheme (
10889 contentTextStyle: const TextStyle (color: Colors .white),
10990 backgroundColor: Colors .grey[800 ],
@@ -117,11 +98,9 @@ ThemeData getTheme() {
11798 selectedBorderColor: Colors .grey[800 ],
11899 fillColor: Colors .transparent,
119100 borderWidth: 2 ,
120- borderRadius: const BorderRadius .all (Radius .circular (5 )),
121- ),
122- popupMenuTheme: PopupMenuThemeData (
123- color: Colors .grey[700 ],
101+ borderRadius: const BorderRadius .all (Radius .circular (12 )),
124102 ),
103+ popupMenuTheme: PopupMenuThemeData (color: Colors .grey[700 ]),
125104 dividerTheme:
126105 const DividerThemeData (color: Colors .grey, indent: 15 , endIndent: 15 ),
127106 );
0 commit comments