@@ -142,11 +142,10 @@ void main() {
142142 );
143143}
144144
145- final _defaultLightColorScheme =
146- ColorScheme .fromSwatch (primarySwatch: Colors .blue);
145+ final _defaultLightColorScheme = ColorScheme .fromSeed (seedColor: Colors .blue);
147146
148- final _defaultDarkColorScheme = ColorScheme . fromSwatch (
149- primarySwatch : Colors .blue, brightness: Brightness .dark);
147+ final _defaultDarkColorScheme =
148+ ColorScheme . fromSeed (seedColor : Colors .blue, brightness: Brightness .dark);
150149
151150class MainApplication extends StatefulWidget {
152151 const MainApplication ({super .key});
@@ -218,8 +217,7 @@ class MainApplicationState extends State<MainApplication>
218217 brightness: Brightness .dark,
219218 fontFamily: configs.sysfont.tryGet (),
220219 useMaterial3: true ,
221- colorScheme:
222- customDarkColorScheme ?? darkDynamic ?? _defaultDarkColorScheme,
220+ colorScheme: _defaultDarkColorScheme,
223221 typography: Typography .material2021 (),
224222 ),
225223 theme: ThemeData (
@@ -230,9 +228,7 @@ class MainApplicationState extends State<MainApplication>
230228 brightness: Brightness .light,
231229 fontFamily: configs.sysfont.tryGet (),
232230 useMaterial3: true ,
233- colorScheme: customLightColorScheme ??
234- lightDynamic ??
235- _defaultLightColorScheme,
231+ colorScheme: _defaultLightColorScheme,
236232 typography: Typography .material2021 (),
237233 ),
238234 themeMode: configs.themeMode.getOr (ThemeMode .system),
0 commit comments