fix scrolling
This commit is contained in:
parent
0b106f63b8
commit
4af1179a23
|
|
@ -4,7 +4,6 @@ import 'package:flutter_screenutil/flutter_screenutil.dart';
|
||||||
import 'dart:math' as math;
|
import 'dart:math' as math;
|
||||||
import '../../core/services/chit_group_service.dart';
|
import '../../core/services/chit_group_service.dart';
|
||||||
import '../../core/models/chit_group.dart';
|
import '../../core/models/chit_group.dart';
|
||||||
import '../../shared/widgets/draw_animation_selector.dart';
|
|
||||||
import '../../shared/widgets/recording_overlay.dart';
|
import '../../shared/widgets/recording_overlay.dart';
|
||||||
import '../../core/services/screen_recording_service.dart';
|
import '../../core/services/screen_recording_service.dart';
|
||||||
import 'draw_animation_page.dart';
|
import 'draw_animation_page.dart';
|
||||||
|
|
@ -529,42 +528,8 @@ class _CombinedDrawDialogState extends State<CombinedDrawDialog>
|
||||||
}
|
}
|
||||||
|
|
||||||
Widget _buildDrawInProgress() {
|
Widget _buildDrawInProgress() {
|
||||||
return Column(
|
// This method is no longer used - we navigate to full screen immediately
|
||||||
children: [
|
return const SizedBox.shrink();
|
||||||
Text(
|
|
||||||
'Choose Your Draw Animation',
|
|
||||||
style: TextStyle(
|
|
||||||
fontSize: 20.sp,
|
|
||||||
fontWeight: FontWeight.bold,
|
|
||||||
color: Colors.purple.shade700,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
SizedBox(height: 16.h),
|
|
||||||
Text(
|
|
||||||
'Select the animation type that works best for your group size',
|
|
||||||
textAlign: TextAlign.center,
|
|
||||||
style: TextStyle(
|
|
||||||
fontSize: 14.sp,
|
|
||||||
color: Colors.grey.shade600,
|
|
||||||
height: 1.4,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
SizedBox(height: 24.h),
|
|
||||||
Center(
|
|
||||||
child: DrawAnimationSelector(
|
|
||||||
members: _eligibleMembers,
|
|
||||||
onDrawComplete: (winnerId) {
|
|
||||||
final winner = _eligibleMembers.firstWhere((m) => m['id'] == winnerId);
|
|
||||||
_onDrawComplete(winnerId, winner);
|
|
||||||
},
|
|
||||||
serverSeed: _serverSeed,
|
|
||||||
clientSeed: null,
|
|
||||||
nonce: _nonce,
|
|
||||||
animationDuration: const Duration(seconds: 4),
|
|
||||||
),
|
|
||||||
),
|
|
||||||
],
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Widget _buildDrawResult() {
|
Widget _buildDrawResult() {
|
||||||
|
|
|
||||||
|
|
@ -167,10 +167,12 @@ class _DrawAnimationSelectorState extends State<DrawAnimationSelector> {
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
child: Row(
|
child: Row(
|
||||||
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
children: [
|
children: [
|
||||||
Container(
|
Container(
|
||||||
width: 24.w,
|
width: 24.w,
|
||||||
height: 24.w,
|
height: 24.w,
|
||||||
|
margin: EdgeInsets.only(top: 2.h),
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
color: isSelected ? Colors.purple.shade600 : Colors.grey.shade400,
|
color: isSelected ? Colors.purple.shade600 : Colors.grey.shade400,
|
||||||
shape: BoxShape.circle,
|
shape: BoxShape.circle,
|
||||||
|
|
@ -179,23 +181,27 @@ class _DrawAnimationSelectorState extends State<DrawAnimationSelector> {
|
||||||
? Icon(Icons.check, color: Colors.white, size: 16.w)
|
? Icon(Icons.check, color: Colors.white, size: 16.w)
|
||||||
: null,
|
: null,
|
||||||
),
|
),
|
||||||
SizedBox(width: 16.w),
|
SizedBox(width: 12.w),
|
||||||
Expanded(
|
Expanded(
|
||||||
child: Column(
|
child: Column(
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
children: [
|
children: [
|
||||||
Row(
|
Row(
|
||||||
children: [
|
children: [
|
||||||
Text(
|
Flexible(
|
||||||
|
child: Text(
|
||||||
_getAnimationName(type),
|
_getAnimationName(type),
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
fontSize: 16.sp,
|
fontSize: 16.sp,
|
||||||
fontWeight: FontWeight.w600,
|
fontWeight: FontWeight.w600,
|
||||||
color: isSelected ? Colors.purple.shade800 : Colors.grey.shade800,
|
color: isSelected ? Colors.purple.shade800 : Colors.grey.shade800,
|
||||||
),
|
),
|
||||||
|
maxLines: 1,
|
||||||
|
overflow: TextOverflow.ellipsis,
|
||||||
|
),
|
||||||
),
|
),
|
||||||
if (isRecommended) ...[
|
if (isRecommended) ...[
|
||||||
SizedBox(width: 8.w),
|
SizedBox(width: 6.w),
|
||||||
Container(
|
Container(
|
||||||
padding: EdgeInsets.symmetric(horizontal: 8.w, vertical: 2.h),
|
padding: EdgeInsets.symmetric(horizontal: 8.w, vertical: 2.h),
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
|
|
@ -214,21 +220,25 @@ class _DrawAnimationSelectorState extends State<DrawAnimationSelector> {
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
SizedBox(height: 4.h),
|
SizedBox(height: 6.h),
|
||||||
Text(
|
Text(
|
||||||
_getAnimationDescription(type),
|
_getAnimationDescription(type),
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
fontSize: 12.sp,
|
fontSize: 12.sp,
|
||||||
color: Colors.grey.shade600,
|
color: Colors.grey.shade600,
|
||||||
|
height: 1.3,
|
||||||
),
|
),
|
||||||
|
maxLines: 2,
|
||||||
|
overflow: TextOverflow.ellipsis,
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
SizedBox(width: 12.w),
|
||||||
Icon(
|
Icon(
|
||||||
_getAnimationIcon(type),
|
_getAnimationIcon(type),
|
||||||
color: isSelected ? Colors.purple.shade600 : Colors.grey.shade400,
|
color: isSelected ? Colors.purple.shade600 : Colors.grey.shade400,
|
||||||
size: 24.w,
|
size: 28.w,
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue