Implemented Theme class in every dart file
This commit is contained in:
@@ -1,34 +1,36 @@
|
||||
import 'package:flutter/cupertino.dart';
|
||||
|
||||
Color white = CupertinoColors.white;
|
||||
Color primaryColor = CupertinoColors.systemGreen;
|
||||
Color backgroundColor = const Color(0xFF101010);
|
||||
Color backgroundTintColor = CupertinoColors.darkBackgroundGray;
|
||||
class Theme {
|
||||
static Color white = CupertinoColors.white;
|
||||
static Color primaryColor = CupertinoColors.systemGreen;
|
||||
static Color backgroundColor = const Color(0xFF101010);
|
||||
static Color backgroundTintColor = CupertinoColors.darkBackgroundGray;
|
||||
|
||||
TextStyle modeTitle = TextStyle(
|
||||
color: primaryColor,
|
||||
fontSize: 20,
|
||||
fontWeight: FontWeight.bold,
|
||||
);
|
||||
static TextStyle modeTitle = TextStyle(
|
||||
color: primaryColor,
|
||||
fontSize: 20,
|
||||
fontWeight: FontWeight.bold,
|
||||
);
|
||||
|
||||
const TextStyle modeDescription = TextStyle(
|
||||
fontSize: 16,
|
||||
);
|
||||
static const TextStyle modeDescription = TextStyle(
|
||||
fontSize: 16,
|
||||
);
|
||||
|
||||
TextStyle createGameTitle = TextStyle(
|
||||
fontSize: 20,
|
||||
color: primaryColor,
|
||||
fontWeight: FontWeight.bold,
|
||||
);
|
||||
static TextStyle createGameTitle = TextStyle(
|
||||
fontSize: 20,
|
||||
color: primaryColor,
|
||||
fontWeight: FontWeight.bold,
|
||||
);
|
||||
|
||||
TextStyle roundTitle = const TextStyle(
|
||||
fontSize: 60,
|
||||
color: CupertinoColors.white,
|
||||
fontWeight: FontWeight.bold,
|
||||
);
|
||||
static TextStyle roundTitle = TextStyle(
|
||||
fontSize: 60,
|
||||
color: white,
|
||||
fontWeight: FontWeight.bold,
|
||||
);
|
||||
|
||||
TextStyle roundPlayers = const TextStyle(
|
||||
fontSize: 20,
|
||||
color: CupertinoColors.white,
|
||||
fontWeight: FontWeight.bold,
|
||||
);
|
||||
static TextStyle roundPlayers = TextStyle(
|
||||
fontSize: 20,
|
||||
color: white,
|
||||
fontWeight: FontWeight.bold,
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user