From 109a3f016d3a1620eded8aa85d6eef06b588ced6 Mon Sep 17 00:00:00 2001 From: Deep Koluguri Date: Thu, 6 Nov 2025 19:36:07 -0500 Subject: [PATCH] sroll issue --- .../manager/combined_draw_dialog.dart | 46 ++++++++++++------- 1 file changed, 30 insertions(+), 16 deletions(-) diff --git a/luckychit/lib/interfaces/manager/combined_draw_dialog.dart b/luckychit/lib/interfaces/manager/combined_draw_dialog.dart index 378e6e9..70b53cc 100644 --- a/luckychit/lib/interfaces/manager/combined_draw_dialog.dart +++ b/luckychit/lib/interfaces/manager/combined_draw_dialog.dart @@ -213,9 +213,13 @@ class _CombinedDrawDialogState extends State showRecordingIndicator: true, child: Dialog( shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(16.r)), + insetPadding: EdgeInsets.symmetric(horizontal: 16.w, vertical: 24.h), child: Container( - width: 500.w, - constraints: BoxConstraints(maxHeight: 0.8.sh), + width: double.infinity, + constraints: BoxConstraints( + maxHeight: 0.9.sh, + maxWidth: 500.w, + ), child: Column( mainAxisSize: MainAxisSize.min, children: [ @@ -269,8 +273,8 @@ class _CombinedDrawDialogState extends State ), ), - // Content - Flexible( + // Content - Scrollable + Expanded( child: SingleChildScrollView( padding: EdgeInsets.all(16.w), child: FadeTransition( @@ -289,23 +293,33 @@ class _CombinedDrawDialogState extends State ), ), - // Action Buttons + // Action Buttons - Always visible at bottom Container( padding: EdgeInsets.all(16.w), + decoration: BoxDecoration( + color: Colors.white, + border: Border( + top: BorderSide(color: Colors.grey.shade200, width: 1), + ), + borderRadius: BorderRadius.only( + bottomLeft: Radius.circular(16.r), + bottomRight: Radius.circular(16.r), + ), + ), child: Row( children: [ Expanded( child: OutlinedButton( onPressed: () => Navigator.of(context).pop(), style: OutlinedButton.styleFrom( - padding: EdgeInsets.symmetric(vertical: 12.h), + padding: EdgeInsets.symmetric(vertical: 14.h), shape: RoundedRectangleBorder( borderRadius: BorderRadius.circular(8.r), ), ), child: Text( - 'Close', - style: TextStyle(fontSize: 14.sp), + 'Cancel', + style: TextStyle(fontSize: 16.sp, fontWeight: FontWeight.w600), ), ), ), @@ -317,7 +331,7 @@ class _CombinedDrawDialogState extends State style: ElevatedButton.styleFrom( backgroundColor: Colors.purple.shade600, foregroundColor: Colors.white, - padding: EdgeInsets.symmetric(vertical: 12.h), + padding: EdgeInsets.symmetric(vertical: 14.h), shape: RoundedRectangleBorder( borderRadius: BorderRadius.circular(8.r), ), @@ -325,11 +339,11 @@ class _CombinedDrawDialogState extends State child: Row( mainAxisAlignment: MainAxisAlignment.center, children: [ - Icon(Icons.play_arrow, size: 18.w), - SizedBox(width: 6.w), + Icon(Icons.play_arrow, size: 20.w), + SizedBox(width: 8.w), Text( 'Start Draw', - style: TextStyle(fontSize: 14.sp), + style: TextStyle(fontSize: 16.sp, fontWeight: FontWeight.w600), ), ], ), @@ -342,7 +356,7 @@ class _CombinedDrawDialogState extends State style: ElevatedButton.styleFrom( backgroundColor: Colors.green.shade600, foregroundColor: Colors.white, - padding: EdgeInsets.symmetric(vertical: 12.h), + padding: EdgeInsets.symmetric(vertical: 14.h), shape: RoundedRectangleBorder( borderRadius: BorderRadius.circular(8.r), ), @@ -350,11 +364,11 @@ class _CombinedDrawDialogState extends State child: Row( mainAxisAlignment: MainAxisAlignment.center, children: [ - Icon(Icons.save, size: 18.w), - SizedBox(width: 6.w), + Icon(Icons.save, size: 20.w), + SizedBox(width: 8.w), Text( 'Save Result', - style: TextStyle(fontSize: 14.sp), + style: TextStyle(fontSize: 16.sp, fontWeight: FontWeight.w600), ), ], ),