Files
flutter/lib/theme/theme.dart
Roland Geider 4d956211dd Update theme
2020-11-27 20:13:02 +01:00

54 lines
1.5 KiB
Dart

import 'package:flutter/material.dart';
const Color wgerPrimaryColor = Color(0xff2a4c7d);
const Color wgerPrimaryButtonColor = Color(0xff266dd3);
const Color wgerSecondaryColor = Color(0xffe63946);
final ThemeData wgerTheme = ThemeData(
/*
* General stuff
*/
primaryColor: wgerPrimaryColor,
accentColor: wgerSecondaryColor,
// This makes the visual density adapt to the platform that you run
// the app on. For desktop platforms, the controls will be smaller and
// closer together (more dense) than on mobile platforms.
visualDensity: VisualDensity.adaptivePlatformDensity,
/*
* Text theme
*/
textTheme: TextTheme(
//headline1: TextStyle(fontSize: 30.0, fontFamily: "OpenSansBold"),
headline2: TextStyle(fontSize: 30.0, fontFamily: "OpenSansBold"),
//headline6: TextStyle(fontSize: 36.0, fontStyle: FontStyle.italic),
),
/*
* Button theme
*/
textButtonTheme: TextButtonThemeData(
style: TextButton.styleFrom(
primary: wgerPrimaryButtonColor,
),
),
outlinedButtonTheme: OutlinedButtonThemeData(
style: OutlinedButton.styleFrom(
primary: wgerPrimaryButtonColor,
),
),
elevatedButtonTheme: ElevatedButtonThemeData(
style: ElevatedButton.styleFrom(
primary: wgerPrimaryButtonColor,
),
),
/*
* Forms, etc.
*/
sliderTheme: SliderThemeData(
activeTrackColor: wgerPrimaryButtonColor,
thumbColor: wgerPrimaryColor,
));