Closed zein1016 closed 1 week ago
Hello!
I wasn’t able to replicate the issue on my end. Could you please generate a Bug Report Code from the widget where you're experiencing the problem? This will help us investigate further.
To generate the Bug Report Code, simply right-click on the widget and select the option from the menu.
Thank you! Let us know if you have any questions about this process.
Closing this issue since we haven't heard back from you. If you are still facing the problem please submit a new issue. Have a great day!
Can we access your project?
Current Behavior
When there are multiple paramters in the action callback parameters, it is only taking the first one. The other ones are not being passing. so when i select let's say the 3rd option, it is taking the first option.
Expected Behavior
Pass the selected parameter
Steps to Reproduce
create a custom widget with 3 callback action parameters, try to pass the 2nd or 3rd option.
Reproducible from Blank
Bug Report Code (Required)
Column( mainAxisSize: MainAxisSize.max, children: [ Container( width: MediaQuery.sizeOf(context).width, height: MediaQuery.sizeOf(context).height 1, child: custom_widgets.CombinedMetricsAndCards( width: MediaQuery.sizeOf(context).width, height: MediaQuery.sizeOf(context).height 1, onMetricsTap: (id) async { await showModalBottomSheet( isScrollControlled: true, backgroundColor: Colors.transparent, enableDrag: false, useSafeArea: true, context: context, builder: (context) { return GestureDetector( onTap: () => FocusScope.of(context).unfocus(), child: Padding( padding: MediaQuery.viewInsetsOf(context), child: Container( height: MediaQuery.sizeOf(context).height 0.8, child: LogtheweightDetailsWidget(), ), ), ); }, ).then((value) => safeSetState(() {})); }, onMetricsMoreTap: (id) async { await showModalBottomSheet( isScrollControlled: true, backgroundColor: Colors.transparent, enableDrag: false, useSafeArea: true, context: context, builder: (context) { return GestureDetector( onTap: () => FocusScope.of(context).unfocus(), child: Padding( padding: MediaQuery.viewInsetsOf(context), child: Container( height: MediaQuery.sizeOf(context).height 0.8, child: NewWeightMetricsCardWidget(), ), ), ); }, ).then((value) => safeSetState(() {})); }, onCardTap: (id, title, cardType) async { await showModalBottomSheet( isScrollControlled: true, backgroundColor: Colors.transparent, enableDrag: false, context: context, builder: (context) { return GestureDetector( onTap: () => FocusScope.of(context).unfocus(), child: Padding( padding: MediaQuery.viewInsetsOf(context), child: Container( height: MediaQuery.sizeOf(context).height 0.8, child: ExerciselogsWidget( exerciseID: id, ), ), ), ); }, ).then((value) => safeSetState(() {})); }, onCardMoreTap: (id, title, cardType) async { await showModalBottomSheet( isScrollControlled: true, backgroundColor: Colors.transparent, enableDrag: false, context: context, builder: (context) { return GestureDetector( onTap: () => FocusScope.of(context).unfocus(), child: Padding( padding: MediaQuery.viewInsetsOf(context), child: Container( height: MediaQuery.sizeOf(context).height 0.8, child: CardActionSheetWidget( cardId: id, cardType: id, ), ), ), ); }, ).then((value) => safeSetState(() {})); }, ), ), ], )
Visual documentation
Environment
Additional Information
No response