A simple structure of a Flutter project that uses bloc architecture to help you maintain your source code easily with a clean and scalable architecture.
Follow these steps to launch your project:
- Extract the archive release file and open the folder with your Editor (Android studio, VS Code,...)
- Go to
assets/imagesand replace thelogo.jpgfile with your own (it must have the same name and the same extension) - In flutter console, go to project folder then run these two commands:
flutter pub get flutter pub run flutter_launcher_icons:main - Open
lib/presentation/languages/l10n/intl_en.arband replaceapp_titlefield with your app title - In
lib/utils/constants.dartupdatecolorHexconstant with your main app color and colorSecondary with your secondary color - (Optional) In
lib/presentation/styles/styles.dartyou can edit other style properties of your app.
- In
android/app/build.gradlelook fornamespaceinandroidblock and change its value with your package name - In
android/app/build.gradlelook forapplicationIdindefaultConfigblock and change its value with your package name - In
android/app/src/main/kotlin/dev/lyabs/structure/MainActivity.ktreplacedev.lyabs.structurewith your package name - In
android/app/src/main/AndroidManifest.xmlreplace the value ofandroid:labelwith your app name
- In
ios/Runner/Info.plistreplace value ofCFBundleNamewith your own (only lower case letters separated by '_' allowed) - In
ios/Runner/Info.plistreplace value ofCFBundleDisplayNamewith your app name - Review XCode project settings:
- In Xcode, open
Runner.xcworkspacein your app’siosfolder - To view your app’s settings, select the Runner project in the Xcode project navigator. Then, in the main view sidebar, select the Runner target
- Select the
Generaltab and replaceBundle Identifierby your own value - Select the
Signing & Capabilitiestab and replaceBundle Identifierby your own value
- In Xcode, open
- In
web/index.htmlreplace the value oftitletag with your web app name - In
web/index.htmlreplace the value of meta description content with a description of your app<meta name="description" content="YOUR_APP_DESCRIPTION"> - In
web/manifest.jsonreplace values ofname, short_name, theme_color, description,with your own
Enjoy Developing with IT! 😊