mirror of
https://github.com/Yubico/yubioath-flutter.git
synced 2024-11-29 23:20:03 +03:00
59 lines
1.7 KiB
Dart
Executable File
59 lines
1.7 KiB
Dart
Executable File
import 'package:flutter/material.dart';
|
|
|
|
const primaryGreen = Color(0xffa8c86c);
|
|
const accentGreen = Color(0xff9aca3c);
|
|
const primaryBlue = Color(0xff325f74);
|
|
|
|
class AppTheme {
|
|
static ThemeData get lightTheme => ThemeData(
|
|
useMaterial3: true,
|
|
brightness: Brightness.light,
|
|
colorScheme:
|
|
ColorScheme.fromSwatch(brightness: Brightness.light).copyWith(
|
|
primary: primaryBlue,
|
|
secondary: accentGreen,
|
|
background: Colors.grey.shade200,
|
|
),
|
|
backgroundColor: Colors.white,
|
|
toggleableActiveColor: accentGreen,
|
|
appBarTheme: AppBarTheme(
|
|
elevation: 0.5,
|
|
backgroundColor: Colors.white,
|
|
foregroundColor: Colors.grey.shade800,
|
|
),
|
|
textTheme: TextTheme(
|
|
bodyText1: TextStyle(
|
|
color: Colors.grey.shade600,
|
|
),
|
|
bodyText2: TextStyle(
|
|
color: Colors.grey.shade800,
|
|
),
|
|
headline2: TextStyle(
|
|
color: Colors.grey.shade800,
|
|
),
|
|
),
|
|
);
|
|
|
|
static ThemeData get darkTheme => ThemeData(
|
|
useMaterial3: true,
|
|
brightness: Brightness.dark,
|
|
colorScheme:
|
|
ColorScheme.fromSwatch(brightness: Brightness.dark).copyWith(
|
|
primary: primaryGreen,
|
|
secondary: primaryGreen,
|
|
),
|
|
toggleableActiveColor: primaryGreen,
|
|
textTheme: TextTheme(
|
|
bodyText1: TextStyle(
|
|
color: Colors.grey.shade400,
|
|
),
|
|
bodyText2: TextStyle(
|
|
color: Colors.grey.shade500,
|
|
),
|
|
headline2: TextStyle(
|
|
color: Colors.grey.shade100,
|
|
),
|
|
),
|
|
);
|
|
}
|