Comments (8)
I found a workaround : just assign a new ScrollController to the scrollController parameter :
ReorderableColumn( scrollController: ScrollController() )
from reorderables.
@hanshengchiu Still happening on 56578ad even after #48
from reorderables.
Unfortunately I will not take the time to make a pull request, if that's what you were waiting for, I'll wait for your bugfix.
Thanks
from reorderables.
@Nico04 Thank you for explaining this. Waiting for the pull request to get merged
from reorderables.
I've got the same issue (with ReorderableColumn) with a more complexe project, but I found out that it occurs only when there are other scroll widget in the tree.
Weither it's a ListView, a SingleChildScrollView...
I've edited the end of your ColumnExample2 to help you fix this issue :
return Material(
child: Card(
child: Column(
children: <Widget>[
reorderableColumn,
SingleChildScrollView(
child: Text('r'),
)
],
)
),
elevation: 6.0,
color: Colors.transparent,
borderRadius: BorderRadius.zero,
);
from reorderables.
I've juste realized that the same error (ScrollController attached to multiple scroll views) happens in the same way with Flutter/ReorderableListView.
This may help you resolve it
flutter/flutter#31666
from reorderables.
This error occured again on a new project, but this time in the 3 levels deep nested list.
My workaround works fine for level 2.
Without the workaround, it doesn't work at all on level 3, and with it it works most of the time for in some undefined cases it crash again...
Any clues ?
from reorderables.
I found a workaround : just assign a new ScrollController to the scrollController parameter :
ReorderableColumn( scrollController: ScrollController() )
thanks this works for me
from reorderables.
Related Issues (20)
- Build warning on Flutter 3.0.0 HOT 3
- Build warnings with Flutter 3.0.0 HOT 1
- Widget changes after adding to ReorderableColumn ignored HOT 1
- Reordering when widget is rebuilding crashes HOT 1
- Why The app run in release mode(debug no problem), will lose data and cause elements not to be displayed
- Not able to drag to end of Wrap HOT 1
- Original state got rendered after finish reordering HOT 1
- Decoration of dragging item HOT 1
- dragging elevation HOT 2
- RTL issues HOT 1
- PrimaryScrollController.of() was called with a context that does not contain a PrimaryScrollController widget thrown after flutter upgrade HOT 2
- How to create custom widget
- Expanded children alignment in ReorderableWrap
- ReorderableRow Index HOT 1
- Q: How to define min/maxMainAxisCount per selected rows?
- Add support for drag handles (only allow drag on certain parts of child widget) HOT 4
- How to Horizontal Group and Horizontal Group items?
- Scrollable.of() was called with a context that does not contain a Scrollable widget. HOT 7
- ReorderableWrap cannot scroll when inside a CustomScrollView
- custom widget for placeholder in original position
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from reorderables.