wrap_with_expanded

Wrap the selected widget with an Expanded.

This assist is only available when the selected widget is a direct child of a Flex widget.
This assist is only available when the selected widget is not an Expanded, Flexible or Spacer.
Before
Widget build(BuildContext context) {
  return const Column(
    children: [
      Text('Hello'),
  //  ^^^^
      Text('World'),
    ],
  );
}
After
Widget build(BuildContext context) {
  return const Column(
    children: [
      Expanded(
        child: Text('Hello'),
      ),
      Text('World'),
    ],
  );
}

wrap_with_expanded