CAKE-304 | upgraded project to flutter 2.x.x, upgraded packages and resolved problems

This commit is contained in:
OleksandrSobol
2021-04-02 20:43:06 +03:00
parent c0a12c6026
commit 0cd4bd46f7
10 changed files with 127 additions and 135 deletions
+1 -1
View File
@@ -142,7 +142,7 @@ class AuthPageState extends State<AuthPage> {
: Container(),
backgroundColor: Theme.of(context).backgroundColor,
border: null),
resizeToAvoidBottomPadding: false,
resizeToAvoidBottomInset: false,
body: PinCode((pin, _) => widget.authViewModel.auth(password: pin),
(_) => null, widget.authViewModel.pinLength, false, _pinCodeKey));
}
+2 -2
View File
@@ -28,7 +28,7 @@ abstract class BasePage extends StatelessWidget {
Color get titleColor => null;
bool get resizeToAvoidBottomPadding => true;
bool get resizeToAvoidBottomInset => true;
bool get extendBodyBehindAppBar => false;
@@ -138,7 +138,7 @@ abstract class BasePage extends StatelessWidget {
final root = Scaffold(
key: _scaffoldKey,
backgroundColor: _backgroundColor,
resizeToAvoidBottomPadding: resizeToAvoidBottomPadding,
resizeToAvoidBottomInset: resizeToAvoidBottomInset,
extendBodyBehindAppBar: extendBodyBehindAppBar,
endDrawer: endDrawer,
appBar: appBar(context),
@@ -101,7 +101,7 @@ class PinCodeState<T extends PinCodeWidget> extends State<T> {
@override
Widget build(BuildContext context) => Scaffold(
key: _key, body: body(context), resizeToAvoidBottomPadding: false);
key: _key, body: body(context), resizeToAvoidBottomInset: false);
Widget body(BuildContext context) {
final deleteIconImage = Image.asset(
+1 -1
View File
@@ -16,7 +16,7 @@ class WelcomePage extends BasePage {
backgroundColor: Theme
.of(context)
.backgroundColor,
resizeToAvoidBottomPadding: false,
resizeToAvoidBottomInset: false,
body: body(context));
}