mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2024-11-23 16:00:41 +00:00
unified scaffold background color
This commit is contained in:
parent
5c27f726c5
commit
2a518f0ace
3 changed files with 3 additions and 4 deletions
|
@ -30,7 +30,8 @@ ThemeData themeFrom(Color primaryColor, Brightness brightness) {
|
||||||
colorScheme: scheme,
|
colorScheme: scheme,
|
||||||
appBarTheme: AppBarTheme(
|
appBarTheme: AppBarTheme(
|
||||||
elevation: 4,
|
elevation: 4,
|
||||||
color: scheme.surface,
|
color: scheme.background,
|
||||||
|
foregroundColor: scheme.onBackground,
|
||||||
surfaceTintColor: scheme.surfaceTint,
|
surfaceTintColor: scheme.surfaceTint,
|
||||||
),
|
),
|
||||||
cardTheme: CardTheme(
|
cardTheme: CardTheme(
|
||||||
|
@ -58,7 +59,7 @@ ThemeData themeFrom(Color primaryColor, Brightness brightness) {
|
||||||
iconColor: scheme.onSurface,
|
iconColor: scheme.onSurface,
|
||||||
textColor: scheme.onSurface,
|
textColor: scheme.onSurface,
|
||||||
),
|
),
|
||||||
scaffoldBackgroundColor: scheme.surface,
|
scaffoldBackgroundColor: scheme.background,
|
||||||
);
|
);
|
||||||
return theme.copyWith(
|
return theme.copyWith(
|
||||||
listTileTheme: ListTileThemeData(
|
listTileTheme: ListTileThemeData(
|
||||||
|
|
|
@ -24,7 +24,6 @@ class MeteringScreen extends StatelessWidget {
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return _InheritedListeners(
|
return _InheritedListeners(
|
||||||
child: Scaffold(
|
child: Scaffold(
|
||||||
backgroundColor: Theme.of(context).colorScheme.background,
|
|
||||||
body: Column(
|
body: Column(
|
||||||
children: [
|
children: [
|
||||||
Expanded(
|
Expanded(
|
||||||
|
|
|
@ -66,7 +66,6 @@ class TimerScreenState extends State<TimerScreen> with TickerProviderStateMixin
|
||||||
listenWhen: (previous, current) => previous.runtimeType != current.runtimeType,
|
listenWhen: (previous, current) => previous.runtimeType != current.runtimeType,
|
||||||
listener: (context, state) => _updateAnimations(state),
|
listener: (context, state) => _updateAnimations(state),
|
||||||
child: Scaffold(
|
child: Scaffold(
|
||||||
backgroundColor: Theme.of(context).colorScheme.background,
|
|
||||||
body: Center(
|
body: Center(
|
||||||
child: Column(
|
child: Column(
|
||||||
mainAxisAlignment: MainAxisAlignment.center,
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
|
|
Loading…
Reference in a new issue