From 4b716d311a57fddf0ad4335a832826bd4f0baa1b Mon Sep 17 00:00:00 2001 From: Dain Nilsson Date: Mon, 21 Feb 2022 17:07:52 +0100 Subject: [PATCH] Set main green color for more widgets. --- lib/theme.dart | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/theme.dart b/lib/theme.dart index adc9a0bd..eefdc825 100755 --- a/lib/theme.dart +++ b/lib/theme.dart @@ -1,5 +1,7 @@ import 'package:flutter/material.dart'; +const primaryGreen = Color(0xffa8c86c); + class AppTheme { static ThemeData get lightTheme => ThemeData( brightness: Brightness.light, @@ -9,8 +11,10 @@ class AppTheme { brightness: Brightness.dark, colorScheme: ColorScheme.fromSwatch(brightness: Brightness.dark).copyWith( - secondary: const Color(0xffa8c86c), + primary: primaryGreen, + secondary: primaryGreen, ), + toggleableActiveColor: primaryGreen, textTheme: TextTheme( bodyText1: TextStyle( color: Colors.grey.shade400,