mirror of
https://github.com/Yubico/yubioath-flutter.git
synced 2024-11-22 16:32:01 +03:00
Set main green color for more widgets.
This commit is contained in:
parent
6b841f4a88
commit
4b716d311a
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user