mirror of
https://github.com/Yubico/yubioath-flutter.git
synced 2024-12-25 03:03:50 +03:00
66 lines
1.9 KiB
Dart
Executable File
66 lines
1.9 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,
|
|
),
|
|
floatingActionButtonTheme: const FloatingActionButtonThemeData(
|
|
backgroundColor: primaryBlue,
|
|
),
|
|
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,
|
|
floatingActionButtonTheme: FloatingActionButtonThemeData(
|
|
foregroundColor: Colors.grey.shade900,
|
|
backgroundColor: primaryGreen,
|
|
),
|
|
textTheme: TextTheme(
|
|
bodyText1: TextStyle(
|
|
color: Colors.grey.shade400,
|
|
),
|
|
bodyText2: TextStyle(
|
|
color: Colors.grey.shade500,
|
|
),
|
|
headline2: TextStyle(
|
|
color: Colors.grey.shade100,
|
|
),
|
|
),
|
|
);
|
|
}
|