add padd transition but its commented out to get tcustome theme later
This commit is contained in:
parent
29c5ed6bac
commit
069f787ace
1 changed files with 15 additions and 0 deletions
|
|
@ -7,6 +7,7 @@ class MyTheme {
|
||||||
late int _succColor;
|
late int _succColor;
|
||||||
late int _mesColor;
|
late int _mesColor;
|
||||||
late String mode;
|
late String mode;
|
||||||
|
late String screenType;
|
||||||
late AssetImage loading;
|
late AssetImage loading;
|
||||||
|
|
||||||
// Options:-
|
// Options:-
|
||||||
|
|
@ -31,6 +32,12 @@ class MyTheme {
|
||||||
return ThemeData(
|
return ThemeData(
|
||||||
fontFamily: 'Segoe UI',
|
fontFamily: 'Segoe UI',
|
||||||
scaffoldBackgroundColor: primaryColor(),
|
scaffoldBackgroundColor: primaryColor(),
|
||||||
|
// pageTransitionsTheme: PageTransitionsTheme(
|
||||||
|
// builders: Map<TargetPlatform, PageTransitionsBuilder>.fromIterable(
|
||||||
|
// TargetPlatform.values,
|
||||||
|
// value: (dynamic _) => const FadeUpwardsPageTransitionsBuilder(),
|
||||||
|
// ),
|
||||||
|
// ),
|
||||||
colorScheme: ColorScheme(
|
colorScheme: ColorScheme(
|
||||||
brightness: getBritness(),
|
brightness: getBritness(),
|
||||||
primary: secondaryColor(),
|
primary: secondaryColor(),
|
||||||
|
|
@ -177,6 +184,14 @@ class MyTheme {
|
||||||
return loading;
|
return loading;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void setScreenType(double width) {
|
||||||
|
if (width <= 420) {
|
||||||
|
screenType = "mobile";
|
||||||
|
} else {
|
||||||
|
screenType = "desktop";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Color primaryColor() {
|
Color primaryColor() {
|
||||||
if (mode == "Dark") {
|
if (mode == "Dark") {
|
||||||
_mainColor = 0XFF3A4454;
|
_mainColor = 0XFF3A4454;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue