Closed rgr closed 3 years ago
This error has nothing to to with the StoreConnector
. The StoreConnector
is just a regular StatefulWidget
that gets some info from the store.state
and passes that info down to another widget.
I suggest you pay attention to the error:
'package:flutter/src/widgets/scroll_activity.dart': Failed assertion: line 464 pos 12: 'lastDetails is DragUpdateDetails': is not true.
I have a crash on iOS (only) with DropdownButtonFormField and I followed the trace back to the StoreConnector Widget.
It does not happen if the list is short and you don't have to scroll. If your emulator or device has a large screen, you might have to add names to the list so it is forced to scroll...
Here is a simple example it happens with
So this does not work. It produces the crash...
and when I remove the StoreConnector widget, it does work...
So I found the origin but I have no idea why it makes it crash...
Logs
``` async_redux: ^13.0.4 ``` ``` flutter: [2021-09-22 09:33:10.527290 | Catcher | INFO] ---------- ERROR ---------- flutter: [2021-09-22 09:33:10.528323 | Catcher | INFO] 'package:flutter/src/widgets/scroll_activity.dart': Failed assertion: line 464 pos 12: 'lastDetails is DragUpdateDetails': is not true. flutter: [2021-09-22 09:33:10.528883 | Catcher | INFO] flutter: [2021-09-22 09:33:10.530365 | Catcher | INFO] ------- STACK TRACE ------- flutter: [2021-09-22 09:33:10.531266 | Catcher | INFO] #0 _AssertionError._doThrowNew (dart:core-patch/errors_patch.dart:46:39) flutter: [2021-09-22 09:33:10.531488 | Catcher | INFO] #1 _AssertionError._throwNew (dart:core-patch/errors_patch.dart:36:5) flutter: [2021-09-22 09:33:10.531685 | Catcher | INFO] #2 DragScrollActivity.dispatchScrollUpdateNotification package:flutter/…/widgets/scroll_activity.dart:464 flutter: [2021-09-22 09:33:10.531920 | Catcher | INFO] #3 ScrollPosition.didUpdateScrollPositionBy package:flutter/…/widgets/scroll_position.dart:899 flutter: [2021-09-22 09:33:10.532291 | Catcher | INFO] #4 RawScrollbarState._maybeTriggerScrollbar.