ToneSnap_FSX_Flutter/lib/res/themes/app_themes.dart
fengshengxiong 422a3f8802 first commit
2024-06-11 11:53:38 +08:00

19 lines
658 B
Dart

// Author: fengshengxiong
// Date: 2024/5/7
// Description: 主题
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:tone_snap/res/themes/app_colors.dart';
/// 主题
ThemeData appTheme = ThemeData.dark(useMaterial3: true).copyWith(
colorScheme: ColorScheme.fromSeed(seedColor: seedColor, primary: seedColor),
appBarTheme: const AppBarTheme(color: seedColor),
scaffoldBackgroundColor: seedColor,
scrollbarTheme: ScrollbarThemeData(
thumbVisibility: WidgetStateProperty.all(false),
thumbColor: WidgetStateProperty.all(Colors.white),
radius: Radius.circular(8.r),
),
);