Spaces:
Running
Running
File size: 1,439 Bytes
afe1e75 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 | import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
class AppTheme {
static CupertinoThemeData lightTheme = const CupertinoThemeData(
brightness: Brightness.light,
primaryColor: CupertinoColors.activeOrange,
scaffoldBackgroundColor: CupertinoColors.systemGroupedBackground,
textTheme: CupertinoTextThemeData(
navTitleTextStyle: TextStyle(
fontSize: 17,
fontWeight: FontWeight.w600,
color: CupertinoColors.black,
),
),
);
static CupertinoThemeData darkTheme = const CupertinoThemeData(
brightness: Brightness.dark,
primaryColor: CupertinoColors.activeOrange,
scaffoldBackgroundColor: CupertinoColors.black,
textTheme: CupertinoTextThemeData(
navTitleTextStyle: TextStyle(
fontSize: 17,
fontWeight: FontWeight.w600,
color: CupertinoColors.white,
),
),
);
// Material dla komponentów Material (Charts itp)
static ThemeData materialLight = ThemeData(
useMaterial3: true,
brightness: Brightness.light,
colorScheme: ColorScheme.fromSeed(
seedColor: CupertinoColors.activeOrange,
brightness: Brightness.light,
),
);
static ThemeData materialDark = ThemeData(
useMaterial3: true,
brightness: Brightness.dark,
colorScheme: ColorScheme.fromSeed(
seedColor: CupertinoColors.activeOrange,
brightness: Brightness.dark,
),
);
} |