wrap_with_layout_builder
Wrap the selected widget with a LayoutBuilder.
Before
Widget build(BuildContext context) {
return const Placeholder();
// ^^^^^^^^^^^^^^^^^
}
After
Widget build(BuildContext context) {
return LayoutBuilder(
builder: (context, constraints) {
return const Placeholder();
},
);
}