2020-11-29 21:07:46 +01:00
|
|
|
import 'package:flutter/material.dart';
|
2020-11-30 11:03:55 +01:00
|
|
|
import 'package:selfprivacy/config/text_themes.dart';
|
2020-11-29 21:07:46 +01:00
|
|
|
|
2022-06-05 22:36:32 +03:00
|
|
|
import 'package:selfprivacy/config/brand_colors.dart';
|
2020-11-29 21:07:46 +01:00
|
|
|
|
2022-06-05 22:36:32 +03:00
|
|
|
final ThemeData lightTheme = ThemeData(
|
2022-05-03 13:45:10 +03:00
|
|
|
useMaterial3: true,
|
2020-11-29 21:07:46 +01:00
|
|
|
primaryColor: BrandColors.primary,
|
2021-03-18 01:55:38 +01:00
|
|
|
fontFamily: 'Inter',
|
2020-11-29 21:07:46 +01:00
|
|
|
brightness: Brightness.light,
|
|
|
|
scaffoldBackgroundColor: BrandColors.scaffoldBackground,
|
2022-05-24 21:55:39 +03:00
|
|
|
inputDecorationTheme: const InputDecorationTheme(
|
2020-12-03 17:52:53 +01:00
|
|
|
border: InputBorder.none,
|
|
|
|
contentPadding: EdgeInsets.all(16),
|
|
|
|
enabledBorder: OutlineInputBorder(
|
|
|
|
borderRadius: BorderRadius.all(Radius.circular(4)),
|
|
|
|
borderSide: BorderSide(color: BrandColors.inputInactive),
|
|
|
|
),
|
|
|
|
focusedBorder: OutlineInputBorder(
|
|
|
|
borderRadius: BorderRadius.all(Radius.circular(4)),
|
|
|
|
borderSide: BorderSide(color: BrandColors.blue),
|
|
|
|
),
|
2020-12-10 21:33:19 +01:00
|
|
|
errorBorder: OutlineInputBorder(
|
|
|
|
borderRadius: BorderRadius.all(Radius.circular(4)),
|
|
|
|
borderSide: BorderSide(
|
|
|
|
width: 1,
|
2021-01-06 18:35:57 +01:00
|
|
|
color: BrandColors.red1,
|
2020-12-10 21:33:19 +01:00
|
|
|
),
|
|
|
|
),
|
|
|
|
focusedErrorBorder: OutlineInputBorder(
|
|
|
|
borderRadius: BorderRadius.all(Radius.circular(4)),
|
|
|
|
borderSide: BorderSide(
|
|
|
|
width: 1,
|
2021-01-06 18:35:57 +01:00
|
|
|
color: BrandColors.red1,
|
2020-12-10 21:33:19 +01:00
|
|
|
),
|
|
|
|
),
|
2021-03-18 01:55:38 +01:00
|
|
|
errorStyle: TextStyle(
|
|
|
|
fontSize: 12,
|
|
|
|
color: BrandColors.red1,
|
2020-12-10 21:33:19 +01:00
|
|
|
),
|
2020-12-03 17:52:53 +01:00
|
|
|
),
|
2022-05-24 21:55:39 +03:00
|
|
|
listTileTheme: const ListTileThemeData(
|
2022-02-16 10:01:05 +03:00
|
|
|
minLeadingWidth: 24.0,
|
|
|
|
),
|
2021-03-18 01:55:38 +01:00
|
|
|
textTheme: TextTheme(
|
|
|
|
headline1: headline1Style,
|
|
|
|
headline2: headline2Style,
|
2022-02-16 10:01:05 +03:00
|
|
|
headline3: headline3Style,
|
|
|
|
headline4: headline4Style,
|
2021-03-18 01:55:38 +01:00
|
|
|
bodyText1: body1Style,
|
2022-05-24 21:55:39 +03:00
|
|
|
subtitle1: const TextStyle(fontSize: 15, height: 1.6), // text input style
|
2020-11-29 21:07:46 +01:00
|
|
|
),
|
|
|
|
);
|
2020-12-01 20:08:19 +01:00
|
|
|
|
2022-06-05 22:36:32 +03:00
|
|
|
ThemeData darkTheme = lightTheme.copyWith(
|
2020-12-08 20:26:51 +01:00
|
|
|
brightness: Brightness.dark,
|
2022-05-24 21:55:39 +03:00
|
|
|
scaffoldBackgroundColor: const Color(0xFF202120),
|
|
|
|
iconTheme: const IconThemeData(color: BrandColors.gray3),
|
2020-12-08 20:26:51 +01:00
|
|
|
cardColor: BrandColors.gray1,
|
2022-05-24 21:55:39 +03:00
|
|
|
dialogBackgroundColor: const Color(0xFF202120),
|
2021-03-18 01:55:38 +01:00
|
|
|
textTheme: TextTheme(
|
|
|
|
headline1: headline1Style.copyWith(color: BrandColors.white),
|
|
|
|
headline2: headline2Style.copyWith(color: BrandColors.white),
|
2022-02-16 10:01:05 +03:00
|
|
|
headline3: headline3Style.copyWith(color: BrandColors.white),
|
|
|
|
headline4: headline4Style.copyWith(color: BrandColors.white),
|
2021-03-18 01:55:38 +01:00
|
|
|
bodyText1: body1Style.copyWith(color: BrandColors.white),
|
2022-05-24 21:55:39 +03:00
|
|
|
subtitle1: const TextStyle(fontSize: 15, height: 1.6), // text input style
|
2020-12-08 20:26:51 +01:00
|
|
|
),
|
2022-05-24 21:55:39 +03:00
|
|
|
inputDecorationTheme: const InputDecorationTheme(
|
2020-12-08 20:26:51 +01:00
|
|
|
labelStyle: TextStyle(color: BrandColors.white),
|
|
|
|
hintStyle: TextStyle(color: BrandColors.white),
|
|
|
|
border: OutlineInputBorder(
|
|
|
|
borderSide: BorderSide(
|
|
|
|
color: BrandColors.white,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
enabledBorder: OutlineInputBorder(
|
|
|
|
borderSide: BorderSide(
|
|
|
|
color: BrandColors.white,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
);
|
|
|
|
|
2022-06-10 00:13:06 +03:00
|
|
|
const EdgeInsets paddingH15V30 =
|
|
|
|
EdgeInsets.symmetric(horizontal: 15, vertical: 30);
|
2020-12-02 10:16:23 +01:00
|
|
|
|
2022-06-05 22:36:32 +03:00
|
|
|
const EdgeInsets paddingH15V0 = EdgeInsets.symmetric(horizontal: 15);
|