title: Flutter ThemeData Primary color not changing from theme when trying to add a primary color
body: <p>Im following the BMI Calculator app from the London App Brewery on LinkedIn Learning.
  when attempting to set the primaryColor to red, my emulator still shows the Light Blue default AppBar even though i am overriding the Primary Color. here's  the code</p>
  <pre><code>    import 'package:flutter/material.dart';
  
  void main() {
    runApp(const MyApp());
  }
  
  class MyApp extends StatelessWidget {
    const MyApp({Key? key}) : super(key: key);
  
    // This widget is the root of your application.
    @override
    Widget build(BuildContext context) {
      return MaterialApp(
        theme: ThemeData(
          primaryColor: Colors.red,
        ),
        home: const InputPage(),
      );
    }
  }
  
  class InputPage extends StatefulWidget {
    const InputPage({Key? key}) : super(key: key);
  
    @override
    _InputPageState createState() =&gt; _InputPageState();
  }
  
  class _InputPageState extends State&lt;InputPage&gt; {
    @override
    Widget build(BuildContext context) {
      return Scaffold(
        appBar: AppBar(
          title: const Text('BMI CALCULATOR'),
        ),
        body: const Center(
          child: Text('Body Text'),
        ),
        floatingActionButton: FloatingActionButton(
          onPressed: () {},
          child: const Icon(Icons.add),
        ),
      );
    }
  }
  </code></pre>