2020-03-28 09:39:59 +01:00
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
|
|
|
const Color RASPBERRY = Color(0xFFea0367);
|
|
|
|
const Color TURQUOISE = Color(0xFF30d8f3);
|
|
|
|
const Color CRAYOLA = Color(0xfffde189);
|
|
|
|
const Color PINEAPPLE = Color(0xff56365e);
|
|
|
|
const Color MIDNIGHT = Color(0xff622371);
|
|
|
|
const Color MIDDLE_RED_PURPLE = Color(0xff0f0127);
|
|
|
|
|
2020-05-09 19:46:06 +02:00
|
|
|
const Color DARK1 = Color(0xff0c1a20);
|
|
|
|
const Color DARK2 = Color(0xff0f2020);
|
|
|
|
const Color DARK3 = Color(0xff142a35);
|
|
|
|
const Color LIGHT1 = Color(0xff57af99);
|
|
|
|
const Color LIGHT2 = Color(0xfff28396);
|
|
|
|
|
2020-03-28 09:39:59 +01:00
|
|
|
ThemeData theme() => ThemeData(
|
|
|
|
brightness: Brightness.dark,
|
2020-05-09 19:46:06 +02:00
|
|
|
primaryColor: DARK1,
|
|
|
|
primaryColorBrightness: Brightness.dark,
|
|
|
|
primaryColorLight: DARK2,
|
|
|
|
accentColor: LIGHT1,
|
2020-08-28 11:28:58 +02:00
|
|
|
highlightColor: TURQUOISE,
|
2020-05-09 19:46:06 +02:00
|
|
|
scaffoldBackgroundColor: DARK2,
|
2020-03-28 09:39:59 +01:00
|
|
|
// https://api.flutter.dev/flutter/material/TextTheme-class.html
|
2020-04-05 12:22:40 +02:00
|
|
|
textTheme: const TextTheme(
|
2020-12-08 22:22:31 +01:00
|
|
|
headline1: TextStyle(
|
|
|
|
fontSize: 28.0,
|
|
|
|
fontWeight: FontWeight.w900,
|
|
|
|
color: LIGHT1,
|
|
|
|
),
|
|
|
|
headline2: TextStyle(
|
|
|
|
fontSize: 24.0,
|
|
|
|
fontWeight: FontWeight.w900,
|
|
|
|
color: Colors.white,
|
|
|
|
),
|
|
|
|
headline3: TextStyle(
|
|
|
|
fontSize: 20.0,
|
|
|
|
fontWeight: FontWeight.w900,
|
|
|
|
color: Colors.white,
|
|
|
|
),
|
|
|
|
headline4: TextStyle(
|
|
|
|
fontSize: 18.0,
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
color: Colors.white,
|
|
|
|
),
|
|
|
|
headline5: TextStyle(
|
|
|
|
fontSize: 18.0,
|
|
|
|
fontWeight: FontWeight.w400,
|
|
|
|
color: Colors.white70,
|
|
|
|
),
|
2020-08-28 11:28:58 +02:00
|
|
|
headline6: TextStyle(fontSize: 18.0),
|
2020-03-28 11:08:43 +01:00
|
|
|
),
|
2020-08-12 20:59:00 +02:00
|
|
|
tabBarTheme: const TabBarTheme(
|
2020-03-28 11:08:43 +01:00
|
|
|
labelColor: Colors.white,
|
2020-03-28 09:39:59 +01:00
|
|
|
),
|
2020-08-12 20:59:00 +02:00
|
|
|
iconTheme: const IconThemeData(
|
2020-04-16 08:04:34 +02:00
|
|
|
color: Colors.white,
|
|
|
|
),
|
2020-05-09 19:46:06 +02:00
|
|
|
cardColor: DARK3,
|
2020-03-28 09:39:59 +01:00
|
|
|
);
|
2020-12-08 22:22:31 +01:00
|
|
|
|
|
|
|
const TextStyle TEXT_HEADER = TextStyle(
|
|
|
|
fontSize: 18.0,
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
);
|
|
|
|
|
|
|
|
const TextStyle TEXT_BIG = TextStyle(
|
|
|
|
fontSize: 22.0,
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
);
|
|
|
|
|
|
|
|
const TextStyle TEXT_SUBTITLE = TextStyle(
|
|
|
|
fontSize: 18.0,
|
|
|
|
fontWeight: FontWeight.w300,
|
|
|
|
);
|
|
|
|
|
|
|
|
const TextStyle TEXT_SMALL_HEADLINE = TextStyle(
|
|
|
|
fontSize: 12.0,
|
|
|
|
fontWeight: FontWeight.normal,
|
|
|
|
);
|
|
|
|
|
|
|
|
const TextStyle TEXT_SMALL_SUBTITLE = TextStyle(
|
|
|
|
fontSize: 12.0,
|
|
|
|
fontWeight: FontWeight.w300,
|
|
|
|
);
|