https://dart-lang.github.io/linter/lints/no_logic_in_create_state.html page lacks of advices #58647
Labels
analyzer-linter
Issues with the analyzer's support for the linter package
area-analyzer
Use area-analyzer for Dart analyzer issues, including the analysis server and code completion.
linter-set-flutter
P3
A lower priority bug or feature request
type-documentation
A request to add or improve documentation
Describe the issue
When a newbie falls on linter check no_logic_in_create_state (#1875) and goes to that page, he can't realise how to write a workaround instead of bad code.
To Reproduce
Write code like https://github.com/aliyigitbireroglu/flutter-image-sequence-animator/blob/877234de33f6a6dea42ff762e8610360927b92db/image_sequence_animator/lib/image_sequence_animator.dart#L122, obtain linter warning and go to the documentation on page https://dart-lang.github.io/linter/lints/no_logic_in_create_state.html
Try to find a workaround. Miss them...
Expected behaviour
A clear and concise description of what you can do instead of using State's constructor arguments. Mentions of https://api.flutter.dev/flutter/widgets/State-class.html with links to initState and didChangeDependencies would be helpful there.
The text was updated successfully, but these errors were encountered: