-
-
Save joukhar/42320e54f94a23512e7c97b3bff9b2dd to your computer and use it in GitHub Desktop.
Create custom themes for your flutter app
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Themes { | |
static const MaterialColor darkBlue = const MaterialColor( | |
_bluePrimaryValue, | |
const <int, Color>{ | |
50: const Color(0xFFECEFF1), | |
100: const Color(0xFFCFD8DC), | |
200: const Color(0xFFB0BEC5), | |
300: const Color(0xFF90A4AE), | |
400: const Color(0xFF78909C), | |
500: const Color(_bluePrimaryValue), | |
600: const Color(0xFF546E7A), | |
700: const Color(0xFF455A64), | |
800: const Color(0xFF37474F), | |
900: const Color(0xFF263238), | |
}, | |
); | |
static const int _bluePrimaryValue = 0xFF607D8B; | |
static ThemeData kIOSTheme = new ThemeData( | |
primarySwatch: darkBlue, | |
accentColor: const Color(0xFF03a9f4), | |
primaryColorDark: const Color(0xFF455A64), | |
primaryColor: const Color(0xFF607D8B), | |
); | |
static ThemeData kDefaultTheme = new ThemeData( | |
primarySwatch: darkBlue, | |
accentColor: const Color(0xFF03a9f4), | |
primaryColorDark: const Color(0xFF455A64), | |
primaryColor: const Color(0xFF607D8B), | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment