Colour wont change for Widgets

I’m working through the Flutter apprentice chapter 1. My Widget colour wont change from blue to grey in the IOS simulator. does anyone know why?

import ‘package:flutter/material.dart’;

void main() {
runApp(Recipieapp());
}

class Recipieapp extends StatelessWidget {
// This widget is the root of your application.
// 1
@override
Widget build(BuildContext context) {
// 2
final ThemeData theme = ThemeData();
// 3
return MaterialApp(
// 4
title: ‘Recipe Calculator’,
// 5
theme: theme.copyWith(
colorScheme: theme.colorScheme.copyWith(
primary: Colors.grey,
secondary: Colors.black,
),
),
// 6
home: MyHomePage(title: ‘Recipe Calculator’),
);
}

}

@nedlington91 did you manage to get it to work? What you have there looks fine!

You can also check out the final project to see if you did anything wrong.

Yeah It’s interesting. The only thing that differs is I had to remove the const from line

home: const MyHomePage(title: ‘Recipe Calculator’)

the other interesting thing is the colours in the script change to grey and black but when run on the simulator it remains as blue. it stays blue even is I hot reload, restart or fully shut down and restart everything

@nedlington91 maybe this forum post may help?