Unverified Commit 42666df9 authored by Michael Joseph Rosenthal's avatar Michael Joseph Rosenthal Committed by GitHub

Add link to ListTile replacement guide (#59474)

parent 1b62b805
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment