You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
797 B
Dart
25 lines
797 B
Dart
import 'package:flutter/material.dart';
|
|
import 'package:mc_common_app/classes/consts.dart';
|
|
|
|
import 'colors.dart';
|
|
|
|
class AppTheme {
|
|
static getTheme({required isArabic}) {
|
|
return ThemeData(
|
|
fontFamily: !isArabic ? MyFonts.poppinsFont : MyFonts.gessTwoFont,
|
|
primaryColor: primaryColor,
|
|
useMaterial3: false,
|
|
primaryTextTheme: const TextTheme(
|
|
titleLarge: TextStyle(color: Colors.white),
|
|
),
|
|
colorScheme: ColorScheme.fromSwatch(primarySwatch: Colors.orange).copyWith(surface: Colors.white),
|
|
);
|
|
}
|
|
}
|
|
|
|
extension ExtendedRevoCheckTheme on TextTheme {
|
|
//add custom styles and colors here
|
|
//taken from https://medium.com/@crizantlai/flutter-how-to-extend-themedata-b5b987a95bb5
|
|
TextStyle get price => const TextStyle(color: Colors.redAccent);
|
|
}
|