-
Notifications
You must be signed in to change notification settings - Fork 170
New issue
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
Leading widget consumes entire tile width. Please use a sized widget. #34
Comments
Please fix the description. This format link |
I am experiencing a similar issue when using Here is the simplified snippet: ReorderableSliverList(
onReorder: _onReorder,
delegate: ReorderableSliverChildBuilderDelegate(
(BuildContext context, int index) {
return ListTile(title: Text(index.toString()));
... After the long press, once the widget gets rebuilt (and before reordering), the following error is thrown:
|
I had this issue and fixed it in #60 |
I'm having same issue. Any solutions ? |
@impure @ariyn97 Could you try v0.3.0? |
Yes, it's working. Not sure if it's the same issue the OP was having though. |
In my case, I was returning a Container (). |
If you're returning Container then put width and height for container.
And this will not
|
This worked for me too. But don't know what will happen when that container os to be shown. |
I used title: for long content and leading:/trailing: for 1 widget only. problem resolved for me. I hope this might help someone :) |
i solve this problem in this way,thanks |
I am creating music player application. In the Queue Songs page I added reorderableSliver list. But whenever I try to drag a list item from it, it throws the blow error. Can you please check this if it is related to control level or did i construct the list in wrong way.
The error:
The Code:
`
return Scaffold(
ScrollController _scrollController =
PrimaryScrollController.of(context) ?? ScrollController();
final _listTiles = playerUtil.songQueue
.map(
(song) => ListTile(
key: UniqueKey(),
title: Text(song.title),
subtitle: Text(song.album),
isThreeLine: false,
leading: SizedBox(
width: 40, // can be whatever value you want
child: Container(
child: Icon(Icons.reorder),
alignment: Alignment.center,
),
),
),
)
.toList();
`
The text was updated successfully, but these errors were encountered: