Learn how to set up and understand the code structure of VideoGPTAI
This is the legacy documentation for our original platform, Cades. Our platform has evolved significantly since then to offer both app and website creation capabilities. Find the new documentation here.
When you generate code from your designs, you get a complete Flutter project structured in a way that’s easy to work with. In the lib folder, we have these main parts:
common: This folder contains shared elements like app constants, which are used throughout the app to maintain consistency and avoid hardcoding values.
pages: This folder contains all our screen designs. Each screen is represented by a Dart file, making it easy to manage and update individual screens.
styles: This folder includes our theme file, which keeps all our design choices consistent across the app. It defines colors, fonts, and other styling elements.
main.dart: This is the entry point of the app, where all the components are connected and the app is initialized.
Now that we understand the structure, let’s start updating our app…
Configure your app’s identity with the following prompt:
The project package name should match with the name of the android app in firebase console. In this case, it is com.videogptai.android.
Copy
Change the name and description of the project in pubspec, and update all imports in main.dart and use the change_app_package_name to update itname in pubspec should be in lowercase and underscoreMy project name is "videogptai"Description: "AI-powered video creation app"My project package name will be "com.videogptai.android"