Added darkmode for chat view
This commit is contained in:
39
lib/theming/darkAppTheme.dart
Normal file
39
lib/theming/darkAppTheme.dart
Normal file
@ -0,0 +1,39 @@
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class DarkAppTheme {
|
||||
static const Color marianumRed = Color.fromARGB(255, 153, 51, 51);
|
||||
|
||||
static final theme = ThemeData(
|
||||
brightness: Brightness.dark,
|
||||
primaryColor: marianumRed,
|
||||
hintColor: marianumRed,
|
||||
colorScheme: const ColorScheme(
|
||||
brightness: Brightness.dark,
|
||||
|
||||
surface: Colors.black,
|
||||
onSurface: Colors.white,
|
||||
|
||||
primary: Colors.black,
|
||||
onPrimary: Colors.white,
|
||||
|
||||
secondary: Colors.grey,
|
||||
onSecondary: Colors.white,
|
||||
|
||||
background: Colors.black26,
|
||||
onBackground: Colors.white,
|
||||
|
||||
error: marianumRed,
|
||||
onError: marianumRed,
|
||||
),
|
||||
inputDecorationTheme: const InputDecorationTheme(
|
||||
border: UnderlineInputBorder(borderSide: BorderSide(color: marianumRed)),
|
||||
),
|
||||
appBarTheme: const AppBarTheme(
|
||||
backgroundColor: marianumRed,
|
||||
),
|
||||
progressIndicatorTheme: const ProgressIndicatorThemeData(
|
||||
color: marianumRed,
|
||||
),
|
||||
|
||||
);
|
||||
}
|
39
lib/theming/lightAppTheme.dart
Normal file
39
lib/theming/lightAppTheme.dart
Normal file
@ -0,0 +1,39 @@
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class LightAppTheme {
|
||||
static const Color marianumRed = Color.fromARGB(255, 153, 51, 51);
|
||||
|
||||
static final theme = ThemeData(
|
||||
brightness: Brightness.light,
|
||||
primaryColor: marianumRed,
|
||||
|
||||
colorScheme: const ColorScheme(
|
||||
brightness: Brightness.light,
|
||||
|
||||
surface: Colors.white,
|
||||
onSurface: Colors.black,
|
||||
|
||||
secondary: Colors.grey,
|
||||
onSecondary: Colors.white,
|
||||
|
||||
primary: marianumRed,
|
||||
onPrimary: Colors.white,
|
||||
|
||||
background: Colors.white,
|
||||
onBackground: Colors.black,
|
||||
|
||||
error: marianumRed,
|
||||
onError: marianumRed,
|
||||
),
|
||||
inputDecorationTheme: const InputDecorationTheme(
|
||||
border: UnderlineInputBorder(borderSide: BorderSide(color: marianumRed)),
|
||||
),
|
||||
appBarTheme: const AppBarTheme(
|
||||
backgroundColor: marianumRed,
|
||||
),
|
||||
progressIndicatorTheme: const ProgressIndicatorThemeData(
|
||||
color: marianumRed,
|
||||
),
|
||||
|
||||
);
|
||||
}
|
Reference in New Issue
Block a user