website icon indicating copy to clipboard operation
website copied to clipboard

[PAGE ISSUE]: 'Write your first Flutter app, part 1'

Open AMDphreak opened this issue 3 years ago • 1 comments

Page URL

https://docs.flutter.dev/get-started/codelab/

Page source

https://github.com/flutter/website/tree/main/src/get-started/codelab.md

Describe the problem

Source code and instructions for Step 2 (using external package) are out of date, and inconsistent with the Hello World code that the user is instructed to copy from Step 1.

  • main dart before wordPair

  • Inserting the Step 2 code after the corresponding lines from the Step 1 code results in an error in the child field. main dart after wordPair

Expected fix

No response

Additional context

No response

AMDphreak avatar Sep 08 '22 23:09 AMDphreak

/cc @domesticmouse

darshankawar avatar Sep 09 '22 09:09 darshankawar

Just remove const from Center. Since Text uses a value which is not a const.

Screenshot at 2022-10-05 02-05-38

Step 2 doesn't have a const either at that line.

piedcipher avatar Oct 04 '22 20:10 piedcipher