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.
20 lines
677 B
Dart
20 lines
677 B
Dart
import 'package:flutter/material.dart';
|
|
|
|
import 'colors.dart';
|
|
|
|
class AppTheme {
|
|
static getTheme(isArabic) => ThemeData(
|
|
fontFamily: !isArabic ? "Poppins" : null,
|
|
primaryColor: primaryColor,
|
|
primaryTextTheme: const TextTheme(
|
|
titleLarge: TextStyle(color: Colors.white),
|
|
), colorScheme: ColorScheme.fromSwatch(primarySwatch: Colors.orange).copyWith(background: 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);
|
|
}
|