|
|
@ -1,15 +1,16 @@
|
|
|
|
// Flutter imports:
|
|
|
|
// Flutter imports:
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
|
|
|
import 'package:flutter/services.dart';
|
|
|
|
// Package imports:
|
|
|
|
// Package imports:
|
|
|
|
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
|
|
|
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
|
|
|
|
|
|
|
|
|
|
|
class AppTheme {
|
|
|
|
class AppTheme {
|
|
|
|
static ThemeData get themeData {
|
|
|
|
static ThemeData get themeData {
|
|
|
|
return ThemeData(primarySwatch: Colors.blue).copyWith(
|
|
|
|
return ThemeData(primarySwatch: Colors.blue).copyWith(
|
|
|
|
|
|
|
|
progressIndicatorTheme:
|
|
|
|
|
|
|
|
ProgressIndicatorThemeData(color: Color(0xFFFFD000)),
|
|
|
|
primaryColor: Color(0xFFFFD000),
|
|
|
|
primaryColor: Color(0xFFFFD000),
|
|
|
|
accentColor: Color(0xFFFFD000),
|
|
|
|
textTheme: ThemeData.light().textTheme.copyWith(
|
|
|
|
textTheme: TextTheme().copyWith(
|
|
|
|
|
|
|
|
headline3: TextStyle(
|
|
|
|
headline3: TextStyle(
|
|
|
|
fontSize: 40.sp,
|
|
|
|
fontSize: 40.sp,
|
|
|
|
color: Color(0xFF333333),
|
|
|
|
color: Color(0xFF333333),
|
|
|
@ -34,14 +35,24 @@ class AppTheme {
|
|
|
|
appBarTheme: AppBarTheme(
|
|
|
|
appBarTheme: AppBarTheme(
|
|
|
|
elevation: 0,
|
|
|
|
elevation: 0,
|
|
|
|
centerTitle: true,
|
|
|
|
centerTitle: true,
|
|
|
|
brightness: Brightness.light,
|
|
|
|
iconTheme: IconThemeData(
|
|
|
|
textTheme: TextTheme(
|
|
|
|
color: Color(0xFF333333),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
systemOverlayStyle: SystemUiOverlayStyle.dark,
|
|
|
|
|
|
|
|
toolbarTextStyle: TextTheme(
|
|
|
|
headline6: TextStyle(
|
|
|
|
headline6: TextStyle(
|
|
|
|
color: Color(0xFF333333),
|
|
|
|
color: Color(0xFF333333),
|
|
|
|
fontSize: 36.sp,
|
|
|
|
fontSize: 36.sp,
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|
|
|
|
).bodyText2,
|
|
|
|
|
|
|
|
titleTextStyle: TextTheme(
|
|
|
|
|
|
|
|
headline6: TextStyle(
|
|
|
|
|
|
|
|
color: Color(0xFF333333),
|
|
|
|
|
|
|
|
fontSize: 36.sp,
|
|
|
|
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|
|
|
|
).headline6,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
tabBarTheme: TabBarTheme(
|
|
|
|
tabBarTheme: TabBarTheme(
|
|
|
|
labelColor: Color(0xFF333333),
|
|
|
|
labelColor: Color(0xFF333333),
|
|
|
@ -107,6 +118,8 @@ class AppTheme {
|
|
|
|
),
|
|
|
|
),
|
|
|
|
materialTapTargetSize: MaterialTapTargetSize.shrinkWrap,
|
|
|
|
materialTapTargetSize: MaterialTapTargetSize.shrinkWrap,
|
|
|
|
dividerColor: Color(0xFFE8E8E8),
|
|
|
|
dividerColor: Color(0xFFE8E8E8),
|
|
|
|
|
|
|
|
colorScheme:
|
|
|
|
|
|
|
|
ColorScheme.fromSwatch().copyWith(secondary: Color(0xFFFFD000)),
|
|
|
|
);
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|