The Shop App with the items of the products, different pages to navigate, possibility to place the order abd all of this are managing by the state management system of the Flutter without managing in the main.dart file.
A few resources to get you started if this is your first Flutter project:
For help getting started with Flutter development, view the online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.