diff --git a/packages/simplex_app/lib/main.dart b/packages/simplex_app/lib/main.dart index 0898afb3fa..c5dae2b77b 100644 --- a/packages/simplex_app/lib/main.dart +++ b/packages/simplex_app/lib/main.dart @@ -18,14 +18,15 @@ class MyApp extends StatelessWidget { @override Widget build(BuildContext context) { + final theme = ThemeData( + primarySwatch: Colors.teal, + primaryColor: kPrimaryColor, + ); return MaterialApp( debugShowCheckedModeBanner: false, title: 'SimpleX Chat', - theme: ThemeData( - primaryColor: kPrimaryColor, - colorScheme: ColorScheme.fromSwatch( - primarySwatch: Colors.teal, - ).copyWith(secondary: kPrimaryColor), + theme: theme.copyWith( + colorScheme: theme.colorScheme.copyWith(secondary: kPrimaryColor), ), builder: (context, widget) { return ScrollConfiguration(