Skip to content

Commit 42666df

Browse files
authored
Add link to ListTile replacement guide (flutter#59474)
1 parent 1b62b80 commit 42666df

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

packages/flutter/lib/src/material/list_tile.dart

+6-2
Original file line numberDiff line numberDiff line change
@@ -1450,11 +1450,15 @@ class _RenderListTile extends RenderBox {
14501450
final Size trailingSize = _layoutBox(trailing, iconConstraints);
14511451
assert(
14521452
tileWidth != leadingSize.width,
1453-
'Leading widget consumes entire tile width. Please use a sized widget.'
1453+
'Leading widget consumes entire tile width. Please use a sized widget, '
1454+
'or consider replacing ListTile with a custom widget '
1455+
'(see https://api.flutter.dev/flutter/material/ListTile-class.html#material.ListTile.4)'
14541456
);
14551457
assert(
14561458
tileWidth != trailingSize.width,
1457-
'Trailing widget consumes entire tile width. Please use a sized widget.'
1459+
'Trailing widget consumes entire tile width. Please use a sized widget, '
1460+
'or consider replacing ListTile with a custom widget '
1461+
'(see https://api.flutter.dev/flutter/material/ListTile-class.html#material.ListTile.4)'
14581462
);
14591463

14601464
final double titleStart = hasLeading

0 commit comments

Comments
 (0)