I'm new to flutter and am following this tutorial: https://www.raywenderlich.com/24499516-getting-started-with-flutter#toc-anchor-019 Everything else works fine but the primary color in themeData which is specified as green is not working. The simulator still shows blue color. Can someone please help me figure out what I'm doing wrong. I've attached minimal code and the output I am getting
import 'package:flutter/material.dart';
void main() => runApp(const GHFlutterApp());
class GHFlutterApp extends StatelessWidget {
const GHFlutterApp({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'GHFlutter',
// this theme color green is not showing
theme: ThemeData(primaryColor: Colors.green.shade800),
home: Scaffold(
appBar: AppBar(
title: const Text('GHFlutter'),
),
body: const Center(
child: Text('GHFlutter'),
),
),
);
}
}
Output:
