From 2facc4136aae7b57282163703398dcceb9d43469 Mon Sep 17 00:00:00 2001 From: h7x4abk3g Date: Wed, 22 Jul 2020 13:17:21 +0200 Subject: [PATCH] Add custom theme class --- lib/themes/custom_theme.dart | 27 +++++++++++++++++++++++++++ lib/themes/dark.dart | 5 +++++ 2 files changed, 32 insertions(+) create mode 100644 lib/themes/custom_theme.dart diff --git a/lib/themes/custom_theme.dart b/lib/themes/custom_theme.dart new file mode 100644 index 0000000..c7edb40 --- /dev/null +++ b/lib/themes/custom_theme.dart @@ -0,0 +1,27 @@ +import 'package:flutter/material.dart'; + +class CustomTheme { + final Color primaryColor; + final Color primaryText; + final Color kunyomiColor; + final Color kunyomiText; + final Color onyomiColor; + final Color onyomiText; + final Color meaningColor; + final Color meaningText; + final Color errorColor; + final Color backgroundColor; + + const CustomTheme({ + this.primaryColor, + this.primaryText, + this.kunyomiColor, + this.kunyomiText, + this.onyomiColor, + this.onyomiText, + this.meaningColor, + this.meaningText, + this.errorColor, + this.backgroundColor, + }); +} \ No newline at end of file diff --git a/lib/themes/dark.dart b/lib/themes/dark.dart index e69de29..d4ddbf7 100644 --- a/lib/themes/dark.dart +++ b/lib/themes/dark.dart @@ -0,0 +1,5 @@ +import 'package:flutter/material.dart'; + +final darkTheme = ThemeData( + primaryColor: Color(0x56D926), +);