diff --git a/lib/main.dart b/lib/main.dart index f8cd4b4..f1573a9 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -11,11 +11,13 @@ void main() { class MyApp extends StatelessWidget { const MyApp({super.key}); - static const _defaultLightColorScheme = ColorScheme - .light(); //.fromSwatch(primarySwatch: Colors.blue, backgroundColor: Colors.white); + static final ColorScheme _defaultLightColorScheme = ColorScheme + .fromSeed(seedColor: Colors.blue); - static final _defaultDarkColorScheme = - ColorScheme.fromSwatch(brightness: Brightness.dark); + static final _defaultDarkColorScheme = ColorScheme.fromSeed( + brightness: Brightness.dark, + seedColor: Colors.blue, + background: Colors.black); // This widget is the root of your application. @override diff --git a/pubspec.yaml b/pubspec.yaml index a2d7a01..601e1bb 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -16,7 +16,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html # In Windows, build-name is used as the major, minor, and patch parts # of the product and file versions while build-number is used as the build suffix. -version: 1.1.1+7 +version: 1.2.0+8 environment: sdk: ^3.0.0