mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00
Add link to ListTile replacement guide (#59474)
This commit is contained in:
parent
1b62b805ca
commit
42666df9b7
@ -1450,11 +1450,15 @@ class _RenderListTile extends RenderBox {
|
||||
final Size trailingSize = _layoutBox(trailing, iconConstraints);
|
||||
assert(
|
||||
tileWidth != leadingSize.width,
|
||||
'Leading widget consumes entire tile width. Please use a sized widget.'
|
||||
'Leading widget consumes entire tile width. Please use a sized widget, '
|
||||
'or consider replacing ListTile with a custom widget '
|
||||
'(see https://api.flutter.dev/flutter/material/ListTile-class.html#material.ListTile.4)'
|
||||
);
|
||||
assert(
|
||||
tileWidth != trailingSize.width,
|
||||
'Trailing widget consumes entire tile width. Please use a sized widget.'
|
||||
'Trailing widget consumes entire tile width. Please use a sized widget, '
|
||||
'or consider replacing ListTile with a custom widget '
|
||||
'(see https://api.flutter.dev/flutter/material/ListTile-class.html#material.ListTile.4)'
|
||||
);
|
||||
|
||||
final double titleStart = hasLeading
|
||||
|
Loading…
Reference in New Issue
Block a user