forked from yaso_meth/mih-project
add padd transition but its commented out to get tcustome theme later
This commit is contained in:
@@ -7,6 +7,7 @@ class MyTheme {
|
||||
late int _succColor;
|
||||
late int _mesColor;
|
||||
late String mode;
|
||||
late String screenType;
|
||||
late AssetImage loading;
|
||||
|
||||
// Options:-
|
||||
@@ -31,6 +32,12 @@ class MyTheme {
|
||||
return ThemeData(
|
||||
fontFamily: 'Segoe UI',
|
||||
scaffoldBackgroundColor: primaryColor(),
|
||||
// pageTransitionsTheme: PageTransitionsTheme(
|
||||
// builders: Map<TargetPlatform, PageTransitionsBuilder>.fromIterable(
|
||||
// TargetPlatform.values,
|
||||
// value: (dynamic _) => const FadeUpwardsPageTransitionsBuilder(),
|
||||
// ),
|
||||
// ),
|
||||
colorScheme: ColorScheme(
|
||||
brightness: getBritness(),
|
||||
primary: secondaryColor(),
|
||||
@@ -177,6 +184,14 @@ class MyTheme {
|
||||
return loading;
|
||||
}
|
||||
|
||||
void setScreenType(double width) {
|
||||
if (width <= 420) {
|
||||
screenType = "mobile";
|
||||
} else {
|
||||
screenType = "desktop";
|
||||
}
|
||||
}
|
||||
|
||||
Color primaryColor() {
|
||||
if (mode == "Dark") {
|
||||
_mainColor = 0XFF3A4454;
|
||||
|
||||
Reference in New Issue
Block a user