Aidra Driver 1.3.5+68
Aidra Driver - Your path to green energy
Loading...
Searching...
No Matches
light_theme.dart
Go to the documentation of this file.
1import 'package:flutter/material.dart';
2import 'package:flutter_screenutil/flutter_screenutil.dart';
3import 'package:google_fonts/google_fonts.dart';
4
5import 'color_palette.dart';
6
7ThemeData get lightTheme => ThemeData(
8 brightness: Brightness.light,
9 useMaterial3: false,
10 visualDensity: VisualDensity.adaptivePlatformDensity,
11 scaffoldBackgroundColor: ColorPalette.white,
12 fontFamily: GoogleFonts.poppins().fontFamily,
13 textTheme: TextTheme(
14 displayLarge: TextStyle(
15 fontWeight: FontWeight.bold,
17 fontSize: 26.sp,
18 ),
19 displayMedium: TextStyle(
20 fontWeight: FontWeight.w700,
22 fontSize: 18.sp,
23 ),
24 displaySmall: TextStyle(
25 fontWeight: FontWeight.w500,
27 fontSize: 15.sp,
28 ),
29 bodySmall: TextStyle(
30 fontWeight: FontWeight.w300,
32 fontSize: 12.sp,
33 ),
34 ),
35 appBarTheme: const AppBarTheme(
36 centerTitle: true,
37 backgroundColor: ColorPalette.white,
38 foregroundColor: ColorPalette.black,
39 elevation: 0,
40 ),
41 primaryColor: ColorPalette.lightGreen,
42 colorScheme: const ColorScheme.light(
43 primary: ColorPalette.lightGreen,
44 secondary: ColorPalette.darkGreen,
45 error: ColorPalette.red,
46 ),
47 elevatedButtonTheme: ElevatedButtonThemeData(
48 style: ElevatedButton.styleFrom(
49 padding: EdgeInsets.symmetric(vertical: 18.sp),
50 backgroundColor: ColorPalette.lightGreen,
51 foregroundColor: ColorPalette.white,
52 elevation: 0,
53 shape: RoundedRectangleBorder(
54 borderRadius: BorderRadius.circular(10),
55 ),
56 shadowColor: ColorPalette.lightGreen.withValues(alpha:0.2),
57 textStyle: TextStyle(
58 fontWeight: FontWeight.normal,
60 fontSize: 17.sp,
61 ),
62 ),
63 ),
64 outlinedButtonTheme: OutlinedButtonThemeData(
65 style: OutlinedButton.styleFrom(
66 side: BorderSide.none,
67 padding: EdgeInsets.all(10.sp),
68 minimumSize: Size(40.sp, 0),
69 tapTargetSize: MaterialTapTargetSize.shrinkWrap,
70 foregroundColor: ColorPalette.black,
71 overlayColor: ColorPalette.lightGreen,
72 shape: RoundedRectangleBorder(
73 borderRadius: BorderRadius.circular(200.0),
74 ),
75 ),
76 ),
77);
static const lightGreen
static const black
static const red
static const white
static const darkGreen
final EdgeInsets padding
String get(String locale)
final Color color
Definition failures.dart:1
ThemeData get lightTheme