WallPaper_FSX_Flutter/lib/res/themes/app_themes.dart
2024-05-22 09:26:45 +08:00

23 lines
978 B
Dart
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// Author: fengshengxiong
// Date: 2024/5/7
// Description: 主题
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:now_wallpaper/res/themes/app_colors.dart';
import 'package:now_wallpaper/res/themes/app_sizes.dart';
/// 深色主题
ThemeData darkTheme = ThemeData.dark(useMaterial3: true).copyWith(
colorScheme: ColorScheme.fromSeed(seedColor: seedColor, primary: Colors.white),
scaffoldBackgroundColor: seedColor,
bottomNavigationBarTheme: BottomNavigationBarThemeData(
elevation: 0.0,
backgroundColor: Colors.black,
// selectedFontSize字体默认14会让BottomNavigationBar高度增加56->58因此将大小改为10
selectedLabelStyle: TextStyle(fontSize: 10.sp, fontWeight: FontWeight.w500),
unselectedLabelStyle: TextStyle(fontSize: 10.sp, fontWeight: FontWeight.w500),
selectedItemColor: Colors.white,
unselectedItemColor: Colors.white.withOpacity(0.5),
),
);