Set main green color for more widgets.

This commit is contained in:
Dain Nilsson 2022-02-21 17:07:52 +01:00
parent 6b841f4a88
commit 4b716d311a
No known key found for this signature in database
GPG Key ID: F04367096FBA95E8

View File

@ -1,5 +1,7 @@
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
const primaryGreen = Color(0xffa8c86c);
class AppTheme { class AppTheme {
static ThemeData get lightTheme => ThemeData( static ThemeData get lightTheme => ThemeData(
brightness: Brightness.light, brightness: Brightness.light,
@ -9,8 +11,10 @@ class AppTheme {
brightness: Brightness.dark, brightness: Brightness.dark,
colorScheme: colorScheme:
ColorScheme.fromSwatch(brightness: Brightness.dark).copyWith( ColorScheme.fromSwatch(brightness: Brightness.dark).copyWith(
secondary: const Color(0xffa8c86c), primary: primaryGreen,
secondary: primaryGreen,
), ),
toggleableActiveColor: primaryGreen,
textTheme: TextTheme( textTheme: TextTheme(
bodyText1: TextStyle( bodyText1: TextStyle(
color: Colors.grey.shade400, color: Colors.grey.shade400,