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 _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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue