51 lines
1.3 KiB
Dart
51 lines
1.3 KiB
Dart
import 'dart:ui';
|
|
|
|
import 'package:flutter/material.dart';
|
|
import 'package:flutter/services.dart';
|
|
|
|
class Themes {
|
|
static const _accentColor = Colors.indigoAccent;
|
|
|
|
static final darkTheme = ThemeData(
|
|
brightness: Brightness.dark,
|
|
accentColor: _accentColor,
|
|
scaffoldBackgroundColor: Colors.grey[900],
|
|
buttonColor: _accentColor,
|
|
dialogBackgroundColor: Colors.grey[850],
|
|
toggleableActiveColor: _accentColor,
|
|
tooltipTheme: TooltipThemeData(
|
|
verticalOffset: 32,
|
|
),
|
|
appBarTheme: AppBarTheme(
|
|
textTheme: TextTheme(
|
|
headline6: TextStyle(
|
|
fontSize: 20,
|
|
fontWeight: FontWeight.normal,
|
|
fontFeatures: [FontFeature.enable('smcp')],
|
|
),
|
|
),
|
|
),
|
|
snackBarTheme: SnackBarThemeData(
|
|
backgroundColor: Colors.grey[800],
|
|
contentTextStyle: TextStyle(
|
|
color: Colors.white,
|
|
),
|
|
behavior: SnackBarBehavior.floating,
|
|
),
|
|
elevatedButtonTheme: ElevatedButtonThemeData(
|
|
style: ElevatedButton.styleFrom(
|
|
primary: _accentColor,
|
|
),
|
|
),
|
|
outlinedButtonTheme: OutlinedButtonThemeData(
|
|
style: OutlinedButton.styleFrom(
|
|
primary: _accentColor,
|
|
),
|
|
),
|
|
textButtonTheme: TextButtonThemeData(
|
|
style: TextButton.styleFrom(
|
|
primary: Colors.white,
|
|
),
|
|
),
|
|
);
|
|
}
|