This code is useful when you want to change your application theme using Provider and ChangeNotifier package , you can make your own custom theme I made my own you can see in the given code . The given code is responsive you can apply to any device .
This project is a starting point for a Flutter application.
A few resources to get you started if this is your first Flutter project:
For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.