Aidra Connect 10.0.2+16
Aidra Connect Mobile Application
Loading...
Searching...
No Matches
dark_theme.dart
Go to the documentation of this file.
1import 'package:flutter/services.dart';
2
3import '/core/ui/theme/color_palette.dart';
4import 'package:flutter/material.dart';
5import 'package:flutter_screenutil/flutter_screenutil.dart';
6import 'package:google_fonts/google_fonts.dart';
7
8final ThemeData darkTheme = ThemeData(
9 useMaterial3: false,
10 brightness: Brightness.dark,
11 primaryColor: ColorPaletteV2.primaryDark,
12 colorScheme: const ColorScheme(
13 primary: ColorPaletteV2.primaryDark,
14 primaryContainer: ColorPaletteV2.primaryVariantDark,
15 secondary: ColorPaletteV2.secondaryDark,
16 secondaryContainer: ColorPaletteV2.secondaryVariantDark,
17 surface: ColorPaletteV2.surfaceDark,
18 error: ColorPaletteV2.errorDark,
19 onPrimary: Colors.white,
20 onSecondary: Colors.black,
21 onSurface: ColorPaletteV2.textPrimaryDark,
22 onError: Colors.black,
23 brightness: Brightness.dark,
24 ),
25 dividerColor: ColorPaletteV2.textPrimaryDark.withOpacity(0.3),
26 scaffoldBackgroundColor: ColorPaletteV2.backgroundDark,
27 fontFamily: GoogleFonts.poppins().fontFamily,
28 textTheme: TextTheme(
29 displayLarge: TextStyle(
30 fontWeight: FontWeight.bold,
31 color: ColorPaletteV2.textPrimaryDark,
32 fontSize: 26.sp,
33 ),
34 displayMedium: TextStyle(
35 fontWeight: FontWeight.w700,
36 color: ColorPaletteV2.textPrimaryDark,
37 fontSize: 18.sp,
38 ),
39 displaySmall: TextStyle(
40 fontWeight: FontWeight.w500,
41 color: ColorPaletteV2.textPrimaryDark,
42 fontSize: 15.sp,
43 ),
44 bodySmall: TextStyle(
45 fontWeight: FontWeight.w300,
46 color: ColorPaletteV2.textPrimaryDark,
47 fontSize: 12.sp,
48 ),
49 ),
50 elevatedButtonTheme: ElevatedButtonThemeData(
51 style: ElevatedButton.styleFrom(
52 padding: EdgeInsets.symmetric(vertical: 18.sp),
53 shadowColor: ColorPaletteV2.primaryDark.withOpacity(0.11),
54 overlayColor: ColorPaletteV2.secondaryLight,
55 elevation: 0,
56 shape: RoundedRectangleBorder(
57 borderRadius: BorderRadius.circular(10),
58 ),
59 textStyle: TextStyle(
60 fontWeight: FontWeight.bold,
61 fontSize: 14.sp,
62 ),
63 ),
64 ),
65).copyWith(
66 appBarTheme: AppBarTheme(
67 systemOverlayStyle: SystemUiOverlayStyle(
68 statusBarColor: Colors.transparent,
69 statusBarIconBrightness: Brightness.light,
70 statusBarBrightness: Brightness.dark,
71 systemNavigationBarColor: ColorPalette.black,
72 systemNavigationBarIconBrightness: Brightness.light,
73 ),
74 ),
75);
static const black
final EdgeInsets padding
final ThemeData darkTheme
final Color color
Definition failures.dart:1