remove deprecated accentColor

This commit is contained in:
Evgeny Poberezkin 2021-10-09 18:13:40 +01:00
parent d6b6fde480
commit 23117fd96f

View File

@ -18,13 +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(
primarySwatch: Colors.teal,
primaryColor: kPrimaryColor,
accentColor: kPrimaryColor,
theme: theme.copyWith(
colorScheme: theme.colorScheme.copyWith(secondary: kPrimaryColor),
),
builder: (context, widget) {
return ScrollConfiguration(