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