Group Group Group Group Group Group Group Group Group

Flutter Apprentice Chapter 6.12 Row is missing

Hello.

I found an omission in the code.
So,I will share it with you.

Place : Chapter 6.12 “Adding the first row” Replacing TODO 22

“//1” and Row are missing.

Please confirm it.

Sincerely.

1 Like

In the text,

// 2
Container(width: 5.0, color: item.color),
// 3
const SizedBox(width: 16.0),
// 4
Column(
  mainAxisAlignment: MainAxisAlignment.center,
  crossAxisAlignment: CrossAxisAlignment.start,
  children: [
    // 5
    Text(
      item.name,
      style: GoogleFonts.lato(
        decoration: textDecoration,
        fontSize: 21.0,
        fontWeight: FontWeight.bold),
    ),
    const SizedBox(height: 4.0),
    buildDate(),
    const SizedBox(height: 4.0),
    buildImportance(),
 ],
),

I think

//1
Row(
  children:[
    // 2
    Container(width: 5.0, color: item.color),
    // 3
    const SizedBox(width: 16.0),
    // 4
    Column(
      mainAxisAlignment: MainAxisAlignment.center,
      crossAxisAlignment: CrossAxisAlignment.start,
      children: [
        // 5
        Text(
          item.name,
          style: GoogleFonts.lato(
            decoration: textDecoration,
            fontSize: 21.0,
            fontWeight: FontWeight.bold),
        ),
        const SizedBox(height: 4.0),
        buildDate(),
        const SizedBox(height: 4.0),
        buildImportance(),
      ],
    ),
  ],
),

Thanks for spotting this. We’ll fix it in the release.
In the meantime you can use the final project as a reference in case something is unclear in a specific instruction.