We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ListFieldBloc#updateFieldBlocs
I've tried to use ReorderableListView with ListFieldBloc and found following inconsistency:
ReorderableListView
ListFieldBloc
final shapes = ListFieldBloc<ShapePropertiesBloc, void>();
This one produces incorrect results inconsistently
void reorderShape(int oldIndex, int newIndex) { final blocs = shapes.state.fieldBlocs; final shapeBloc = blocs.removeAt(oldIndex); blocs.insert( oldIndex < newIndex ? newIndex - 1 : newIndex, shapeBloc, ); shapes.updateFieldBlocs(blocs); }
This method produces correct results, but creates a junk frames due to double emit.
void reorderShape(int oldIndex, int newIndex) { shapes ..removeFieldBlocAt(oldIndex) ..insertFieldBloc( shapeBloc, oldIndex < newIndex ? newIndex - 1 : newIndex, ); }
I suspect issue is with order of FormBlocUtils calls, because they are different if I use patch method.
FormBlocUtils
The text was updated successfully, but these errors were encountered:
#312 (comment)
Sorry, something went wrong.
No branches or pull requests
I've tried to use
ReorderableListView
withListFieldBloc
and found following inconsistency:This one produces incorrect results inconsistently
This method produces correct results, but creates a junk frames due to double emit.
I suspect issue is with order of
FormBlocUtils
calls, because they are different if I use patch method.The text was updated successfully, but these errors were encountered: