sroll issue
This commit is contained in:
parent
a56c3e0922
commit
109a3f016d
|
|
@ -213,9 +213,13 @@ class _CombinedDrawDialogState extends State<CombinedDrawDialog>
|
|||
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<CombinedDrawDialog>
|
|||
),
|
||||
),
|
||||
|
||||
// Content
|
||||
Flexible(
|
||||
// Content - Scrollable
|
||||
Expanded(
|
||||
child: SingleChildScrollView(
|
||||
padding: EdgeInsets.all(16.w),
|
||||
child: FadeTransition(
|
||||
|
|
@ -289,23 +293,33 @@ class _CombinedDrawDialogState extends State<CombinedDrawDialog>
|
|||
),
|
||||
),
|
||||
|
||||
// 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<CombinedDrawDialog>
|
|||
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<CombinedDrawDialog>
|
|||
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<CombinedDrawDialog>
|
|||
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<CombinedDrawDialog>
|
|||
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),
|
||||
),
|
||||
],
|
||||
),
|
||||
|
|
|
|||
Loading…
Reference in New Issue