When you create a new project in Flutter v3.19, it creates a default app in /lib/main.dart
/lib/main.dart contains three classes:
class MyApp extends StatelessWidget
class MyHomePage extends StatefulWidget
class _MyHomePageState extends State<MyHomePage>
What is the best way to organize the file structure of the project so that those classes can be in separate folders/files? This will be for a small project.
Is there an example of what main.dart should look like so that it can import those classes? I couldn't find an example in the Flutter docs about this.
I tried to find an example of this, but couldn't. I would expect either simple docs from Flutter that explain this or the sample project to be setup with this in mind.
I found examples of folder structure, but nothing specifically for the sample project that comes with Flutter.



