Flutter Starter Kit is a simple starter app that provides a solid foundation for building Flutter applications. It includes core functionalities such as state management, theme changing, localization, and AdMob integration.
Follow the steps below to set up the Flutter Starter Kit on your local machine.
To clone Flutter Starter Kit, follow these steps:
- Open the folder that you want to clone the repo.
- Run Terminal in the folder.
- Run this command in
Terminal:
git clone https://github.com/harundemir918/flutter_starter_kit.git [enter your app name]
.
To change Git origin of Flutter Starter Kit, follow these steps:
- Open the folder of your project.
- Run a Terminal and run this
command:
git remote add origin https://github.com/[your GitHub username]/[your GitHub repository].git
.
To change the package name of the Flutter Starter Kit, follow these steps:
- Run this command in Terminal:
flutter pub global activate rename
. - Then run these commands one-by-one:
flutter pub global run rename --bundleId [your package name]
flutter pub global run rename --appname "[your app name]"
flutter pub global run rename --appname [your app name] --target ios
flutter pub global run rename --appname [your app name] --target android
flutter pub global run rename --appname [your app name] --target web
flutter pub global run rename --appname [your app name] --target macOS
flutter pub global run rename --appname [your app name] --target windows
- Open the file
android/app/src/main/res/values/api_keys.xml
. - Replace the test AdMob ID with your own AdMob ID.
- Copy the file
lib/core/config/config_example.dart
aslib/core/config/config.dart
, and change the IDs with your own IDs. You can add new ones if you wish.
To change the app name in Flutter Starter Kit, follow these steps:
- Replace the default app name with your own name. The texts are located
at
lib/core/constants/string_constants.dart
. - You can add or edit texts according to your needs.
- Use them in your app.
To change the app icon in Flutter Starter Kit, follow these steps:
- Replace the default app icon with your own icon file. The default app icon is located
at
assets/images/logo.png
. - Open the terminal and navigate to the project directory.
- Run the command
dart run flutter_launcher_icons
to apply the changed app icon.
To translate the app into different languages, follow these steps:
- Open the file
lib/core/translations/translation_keys.dart
. - Describe the translation keys you want to use in your app.
- Go to the
lib/core/translations/langs
folder. - Update the translation files according to the desired language. You can add new ones if you wish.
- If you added new language files, register them in
lib/core/translations/languages.dart
. - Define the recently added languages in
lib/core/data/languages_list.dart
.
To add new controllers to app, follow these steps:
- Controllers are in
lib/core/controllers/
folder. Open the folder. - Create your controller (e.g.
SettingsController
) in a new folder (e.g.settings
). - Register your controller in
lib/main.dart
withGet.put()
. - Define your controller in
lib/core/base/base_controller.dart
withGet.find()
. - You can use it like
BaseController.settingsController
.
To customize app theme, follow these steps:
- Theme file is in
lib/core/constants/theme_constants.dart
. Open the file. - There are settings for dark and light theme. You can add new properties (e.g.
textTheme
), or edit existing properties. - You can use them in your app with
Theme.of(context)
.
- State management using Get.
- Theme changing functionality.
- Localization support.
- AdMob integration for showing ads.
- Comparing versions in app markets.
Contributions to Flutter Starter Kit are welcome! If you find any issues or have suggestions for improvements, please submit a pull request or open an issue on the GitHub repository.
Flutter Starter Kit is released under the MIT License. You are free to use, modify, and distribute this starter kit.
For any further questions or inquiries, you can open a pull request. Thanks!