flutter / flutter

Flutter makes it easy and fast to build beautiful apps for mobile and beyond
https://flutter.dev
BSD 3-Clause "New" or "Revised" License
165.09k stars 27.22k forks source link

Issue from website page AnimatedList #88420

Closed cryptoweb3eth closed 3 years ago

cryptoweb3eth commented 3 years ago

From URL: https://www.flutterchina.club/catalog/samples/animated_list.md codeblock line 15 ListModel _list; Non-nullable instance field '_list' must be initialized. (Documentation) Try adding an initializer expression, or a generative constructor that initializes it, or mark it 'late'.

The analyzer produces this diagnostic when a field is declared and has all these characteristics: Has a type that’s potentially non-nullable Doesn’t have an initializer Isn’t marked as late

darshankawar commented 3 years ago

@Songggao You'll need to report this here: https://github.com/flutterchina/website/issues Closing from here.

github-actions[bot] commented 3 years ago

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.