Files
tongxunruanjian/mobile-next/lib/company/brand/app_theme.dart
T

38 lines
1009 B
Dart

import 'package:flutter/material.dart';
import 'app_tokens.dart';
ThemeData buildCompanyTheme() {
return ThemeData(
useMaterial3: true,
fontFamily: 'Noto Sans SC',
primaryColor: AppColors.primary,
scaffoldBackgroundColor: AppColors.pageBg,
colorScheme: const ColorScheme.light(
primary: AppColors.primary,
onPrimary: AppColors.pageBg,
error: AppColors.danger,
surface: AppColors.pageBg,
onSurface: AppColors.textPrimary,
),
appBarTheme: const AppBarTheme(
backgroundColor: AppColors.pageBg,
foregroundColor: AppColors.textPrimary,
elevation: 0,
scrolledUnderElevation: 0,
centerTitle: true,
titleTextStyle: TextStyle(
color: AppColors.textPrimary,
fontSize: AppFont.title,
fontWeight: FontWeight.w600,
),
),
dividerTheme: const DividerThemeData(
color: AppColors.divider,
thickness: 0.5,
space: 0,
),
splashFactory: NoSplash.splashFactory,
);
}