From d6a0e7803164a33c013f72c7ff4de71602e13a55 Mon Sep 17 00:00:00 2001 From: sBubshait Date: Sun, 3 Aug 2025 10:51:20 +0300 Subject: [PATCH] feat: signin page keyboard on IOS --- frontend/lib/main.dart | 35 +++++++++++++++++++---------------- 1 file changed, 19 insertions(+), 16 deletions(-) diff --git a/frontend/lib/main.dart b/frontend/lib/main.dart index b1b9a74..e55cf3d 100644 --- a/frontend/lib/main.dart +++ b/frontend/lib/main.dart @@ -407,6 +407,7 @@ class _SignInPageState extends State { return PopScope( canPop: false, // Prevent back navigation from sign in page child: Scaffold( + resizeToAvoidBottomInset: false, body: Container( decoration: BoxDecoration( gradient: LinearGradient( @@ -442,21 +443,22 @@ class _SignInPageState extends State { // Content Expanded( - child: Container( - margin: EdgeInsets.all(16), - padding: EdgeInsets.all(24), - decoration: BoxDecoration( - color: Colors.white, - borderRadius: BorderRadius.circular(16), - boxShadow: [ - BoxShadow( - color: Colors.black.withOpacity(0.1), - blurRadius: 20, - offset: Offset(0, 5), - ), - ], - ), - child: Form( + child: SingleChildScrollView( + child: Container( + margin: EdgeInsets.all(16), + padding: EdgeInsets.all(24), + decoration: BoxDecoration( + color: Colors.white, + borderRadius: BorderRadius.circular(16), + boxShadow: [ + BoxShadow( + color: Colors.black.withOpacity(0.1), + blurRadius: 20, + offset: Offset(0, 5), + ), + ], + ), + child: Form( key: _formKey, child: Column( crossAxisAlignment: CrossAxisAlignment.stretch, @@ -643,9 +645,10 @@ class _SignInPageState extends State { ], ), - Spacer(), + SizedBox(height: 40), ], ), + ), ), ), ),