17
7
DO place Expanded and Flexible widgets inside a Row, Column, or Flex.
Center( child: Expanded( child: Container(), ), )
Row( children: [ Expanded( child: Container(), ), ], )
To enable the proper_expanded_and_flexible rule, add proper_expanded_and_flexible under plugins > pyramid_lint > diagnostics in your analysis_options.yaml file:
proper_expanded_and_flexible
plugins > pyramid_lint > diagnostics
analysis_options.yaml
plugins: pyramid_lint: <version> diagnostics: proper_expanded_and_flexible: true