Added darkmode for chat view
This commit is contained in:
@ -6,6 +6,8 @@ import 'package:jiffy/jiffy.dart';
|
||||
import 'package:marianum_mobile/data/appTheme.dart';
|
||||
import 'package:marianum_mobile/data/timetable/timetableProps.dart';
|
||||
import 'package:marianum_mobile/screen/login/login.dart';
|
||||
import 'package:marianum_mobile/theming/darkAppTheme.dart';
|
||||
import 'package:marianum_mobile/theming/lightAppTheme.dart';
|
||||
import 'package:marianum_mobile/widget/errorView.dart';
|
||||
import 'package:provider/provider.dart';
|
||||
import 'package:shared_preferences/shared_preferences.dart';
|
||||
@ -50,7 +52,6 @@ class Main extends StatefulWidget {
|
||||
}
|
||||
|
||||
class _MainState extends State<Main> {
|
||||
static const Color marianumRed = Color.fromARGB(255, 153, 51, 51);
|
||||
|
||||
final Future<SharedPreferences> _storage = SharedPreferences.getInstance();
|
||||
|
||||
@ -92,61 +93,8 @@ class _MainState extends State<Main> {
|
||||
title: 'Marianum Fulda',
|
||||
|
||||
themeMode: value.getMode,
|
||||
theme: ThemeData(
|
||||
brightness: Brightness.light,
|
||||
primaryColor: marianumRed,
|
||||
colorScheme: const ColorScheme(
|
||||
brightness: Brightness.light,
|
||||
surface: Colors.white,
|
||||
onSurface: Colors.black,
|
||||
onSecondary: Colors.white,
|
||||
onPrimary: Colors.white,
|
||||
onError: marianumRed,
|
||||
onBackground: Colors.black,
|
||||
error: marianumRed,
|
||||
background: Colors.white,
|
||||
secondary: Colors.grey,
|
||||
primary: marianumRed,
|
||||
),
|
||||
hintColor: marianumRed,
|
||||
inputDecorationTheme: const InputDecorationTheme(
|
||||
border: UnderlineInputBorder(borderSide: BorderSide(color: marianumRed)),
|
||||
),
|
||||
appBarTheme: const AppBarTheme(
|
||||
backgroundColor: marianumRed,
|
||||
),
|
||||
progressIndicatorTheme: const ProgressIndicatorThemeData(
|
||||
color: marianumRed,
|
||||
),
|
||||
),
|
||||
|
||||
darkTheme: ThemeData(
|
||||
brightness: Brightness.dark,
|
||||
primaryColor: marianumRed,
|
||||
colorScheme: const ColorScheme(
|
||||
brightness: Brightness.dark,
|
||||
surface: Colors.white,
|
||||
onSurface: Colors.white,
|
||||
onSecondary: Colors.black,
|
||||
onPrimary: Colors.black,
|
||||
onError: marianumRed,
|
||||
onBackground: Colors.black,
|
||||
error: marianumRed,
|
||||
background: Colors.black,
|
||||
secondary: Colors.grey,
|
||||
primary: marianumRed,
|
||||
),
|
||||
hintColor: marianumRed,
|
||||
inputDecorationTheme: const InputDecorationTheme(
|
||||
border: UnderlineInputBorder(borderSide: BorderSide(color: marianumRed)),
|
||||
),
|
||||
appBarTheme: const AppBarTheme(
|
||||
backgroundColor: marianumRed,
|
||||
),
|
||||
progressIndicatorTheme: const ProgressIndicatorThemeData(
|
||||
color: marianumRed,
|
||||
),
|
||||
),
|
||||
theme: LightAppTheme.theme,
|
||||
darkTheme: DarkAppTheme.theme,
|
||||
|
||||
|
||||
home: FutureBuilder<SharedPreferences>(
|
||||
|
Reference in New Issue
Block a user