You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
	
	
		
			30 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Dart
		
	
			
		
		
	
	
			30 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Dart
		
	
| import 'package:flutter/material.dart';
 | |
| 
 | |
| import 'colors.dart';
 | |
| 
 | |
| class AppTheme {
 | |
|   static getTheme() => ThemeData(
 | |
|         // This is the theme of your application.
 | |
|         //
 | |
|         // Try running your application with "flutter run". You'll see the
 | |
|         // application has a blue toolbar. Then, without quitting the app, try
 | |
|         // changing the primarySwatch below to Colors.green and then invoke
 | |
|         // "hot reload" (press "r" in the console where you ran "flutter run",
 | |
|         // or simply save your changes to "hot reload" in a Flutter IDE).
 | |
|         // Notice that the counter didn't reset back to zero; the application
 | |
|         // is not restarted.
 | |
|         primaryColor: primaryColor,
 | |
|         primarySwatch: Colors.blue,
 | |
|         backgroundColor: Colors.white,
 | |
|         primaryTextTheme: TextTheme(
 | |
|           headline6: TextStyle(color: Colors.white),
 | |
|         ),
 | |
|       );
 | |
| }
 | |
| 
 | |
| extension ExtendedRevoCheckTheme on TextTheme {
 | |
|   //add custom styles and colors here
 | |
|   //taken from https://medium.com/@crizantlai/flutter-how-to-extend-themedata-b5b987a95bb5
 | |
|   TextStyle get price => const TextStyle(color: Colors.redAccent);
 | |
| }
 |