diff --git a/flutter/lib/common.dart b/flutter/lib/common.dart index dc91e9414..50e6beac5 100644 --- a/flutter/lib/common.dart +++ b/flutter/lib/common.dart @@ -252,12 +252,7 @@ class MyTheme { ), ), ), - colorScheme: ColorScheme.fromSwatch( - primarySwatch: Colors.blue, - ).copyWith( - brightness: Brightness.light, - background: grayBg, - ), + colorScheme: ColorScheme.light(primary: Colors.blue, background: grayBg), ).copyWith( extensions: >[ ColorThemeExtension.light, @@ -356,10 +351,8 @@ class MyTheme { ), ), ), - colorScheme: ColorScheme.fromSwatch( - primarySwatch: Colors.blue, - ).copyWith( - brightness: Brightness.dark, + colorScheme: ColorScheme.dark( + primary: Colors.blue, background: Color(0xFF24252B), ), ).copyWith(