# Chapter 2, 2nd, ed question

**URL:** <https://forums.kodeco.com/t/chapter-2-2nd-ed-question/161448>\
**Category:** Flutter Apprentice\
**Created:** [January 1, 2022, 7:25pm UTC](https://forums.kodeco.com/t/chapter-2-2nd-ed-question/161448 "2022-01-01T19:25:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![naplesdave](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/naplesdave/32/108827_2.png) [@naplesdave](https://forums.kodeco.com/u/naplesdave)\
**Post date:** [January 1, 2022, 7:25pm UTC](https://forums.kodeco.com/t/chapter-2-2nd-ed-question/161448/1 "2022-01-01T19:25:37Z")

</div>

I am following along and in Chapter 2 it instructs me to replace some code in the BUILD section. I did that. But my App Bar Text is left aligned now, not centered as shown in the screen pic? What is wrong here? Here is my code block.

```auto
  @override
  Widget build(BuildContext context) {
    final ThemeData theme = ThemeData();
    return MaterialApp(
      title: 'Recipe Calculator',
      theme: theme.copyWith(
        colorScheme: theme.colorScheme.copyWith(
          primary: Colors.grey,
          secondary: Colors.black,
        ),
      ),
      home: const MyHomePage(title: 'Recipe Calculator'),
    );
  }

```

---

<div class="post-metadata">

**Author:** ![mkatz](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/mkatz/32/108269_2.png) [@mkatz](https://forums.kodeco.com/u/mkatz)\
**Post date:** [January 6, 2022, 10:11pm UTC](https://forums.kodeco.com/t/chapter-2-2nd-ed-question/161448/2 "2022-01-06T22:11:56Z")

</div>

Sorry for the delayed reply. I looks like you got that answered for Chapter 3 as well, but this is an iOS vs Android difference. The screenshots are representative of the iOS version.
