107 lines
3.3 KiB
Dart
107 lines
3.3 KiB
Dart
import 'package:flutter/material.dart';
|
|
import 'package:flutter/services.dart';
|
|
|
|
class DesignConfig {
|
|
static const backgroundColor = Color(0XFFF8F8FA);
|
|
|
|
static const Color lightPrimaryColor2 = Color(0XFFE6F3FA);
|
|
static const Color lightPrimaryColor3 = Color(0XFFF5FAFC);
|
|
static const Color primaryColor = Color(0XFF007EA7);
|
|
static const Color darkPrimaryColor2 = Color(0XFF1B3C59);
|
|
|
|
static const Color cardBorderColor = Color(0XFFEBEBEB);
|
|
static const Color borderColor = Color(0XFFE0E0E0);
|
|
static const Color hintColor = Color(0XFFE0E0E0);
|
|
static const Color captionColor = Color(0XFF666666);
|
|
|
|
static const Color lightRedColor = Color(0XFFFFF8F8);
|
|
|
|
static final ThemeData lightTheme = ThemeData(
|
|
primaryColor: primaryColor,
|
|
colorScheme: lightColorScheme,
|
|
fontFamily: 'Dana-FA',
|
|
textTheme: const TextTheme(
|
|
bodyText1: body1Text,
|
|
bodyText2: body2Text,
|
|
caption: captionText,
|
|
subtitle2: subtitle2Text,
|
|
subtitle1: subtitle1Text,
|
|
),
|
|
scaffoldBackgroundColor: backgroundColor,
|
|
);
|
|
|
|
static const ColorScheme lightColorScheme = ColorScheme(
|
|
primary: primaryColor,
|
|
primaryVariant: Color(0XFF1B3C59),
|
|
secondary: Color(0XFFD61515),
|
|
secondaryVariant: Color(0XFFA30001),
|
|
surface: Colors.white,
|
|
background: backgroundColor,
|
|
error: Color(0XFFF00505),
|
|
onPrimary: Colors.white,
|
|
onSecondary: Colors.white,
|
|
onSurface: Color(0XFF1F1F1F),
|
|
onBackground: Color(0XFF1F1F1F),
|
|
onError: Colors.white,
|
|
brightness: Brightness.light,
|
|
);
|
|
|
|
static const ColorScheme currentColorScheme = lightColorScheme;
|
|
|
|
static const TextStyle subtitle1Text = TextStyle(
|
|
fontSize: 17,
|
|
fontWeight: FontWeight.w700,
|
|
);
|
|
static const TextStyle subtitle2Text = TextStyle(
|
|
fontSize: 15,
|
|
fontWeight: FontWeight.w700,
|
|
);
|
|
static const TextStyle body1Text = TextStyle(
|
|
fontSize: 15,
|
|
fontWeight: FontWeight.w700,
|
|
);
|
|
static const TextStyle body2Text = TextStyle(
|
|
fontSize: 15,
|
|
fontWeight: FontWeight.w400,
|
|
);
|
|
static const TextStyle captionText = TextStyle(
|
|
fontSize: 13,
|
|
color: captionColor,
|
|
);
|
|
|
|
static const BorderRadius lowBorderRadius = BorderRadius.all(
|
|
Radius.circular(8),
|
|
);
|
|
static const BorderRadius mediumBorderRadius = BorderRadius.all(
|
|
Radius.circular(10),
|
|
);
|
|
static const BorderRadius highBorderRadius = BorderRadius.all(
|
|
Radius.circular(16),
|
|
);
|
|
static final Border lightBorder = Border.all(color: DesignConfig.borderColor);
|
|
static final BoxDecoration actionCardDecoration = BoxDecoration(
|
|
color: lightPrimaryColor3,
|
|
boxShadow: defaultShadow,
|
|
borderRadius: mediumBorderRadius,
|
|
);
|
|
static final List<BoxShadow> defaultShadow = [
|
|
BoxShadow(
|
|
color: currentColorScheme.primaryVariant.withOpacity(0.25),
|
|
blurRadius: 16,
|
|
spreadRadius: 0,
|
|
)
|
|
];
|
|
|
|
static const Duration lowAnimationDuration = Duration(milliseconds: 300);
|
|
static const Duration mediumAnimationDuration = Duration(milliseconds: 600);
|
|
|
|
static final SystemUiOverlayStyle systemUIOverlayStyle = SystemUiOverlayStyle(
|
|
statusBarBrightness: Brightness.dark,
|
|
statusBarIconBrightness: Brightness.dark,
|
|
statusBarColor: Colors.transparent,
|
|
systemNavigationBarColor: currentColorScheme.surface,
|
|
systemNavigationBarDividerColor: Colors.transparent,
|
|
systemNavigationBarIconBrightness: Brightness.dark,
|
|
);
|
|
}
|