Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/finkmoritz/advanced_flutter_template
A new Flutter project with advanced setup
https://github.com/finkmoritz/advanced_flutter_template
app flutter provider template
Last synced: about 1 month ago
JSON representation
A new Flutter project with advanced setup
- Host: GitHub
- URL: https://github.com/finkmoritz/advanced_flutter_template
- Owner: finkmoritz
- License: mit
- Created: 2023-01-12T12:26:56.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2024-06-18T20:35:21.000Z (7 months ago)
- Last Synced: 2024-06-20T02:10:47.461Z (7 months ago)
- Topics: app, flutter, provider, template
- Language: C++
- Homepage:
- Size: 451 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Advanced Flutter Template
A new Flutter project with advanced setup:
- State management (provider)
- Routing (go_router)
- Theming (Flex color scheme, Google fonts, Font Awesome icons)
- Internationalization
- Launcher and splash icon
- Test case with Provider mocks## Getting Started
### Setup
Before you start, follow these steps:
1. Execute ```flutter pub get``` to pull dependencies
2. Execute ```flutter gen-l10n``` to generate translations### Run
Execute ```flutter run``` or use the respective Flutter plugin for your IDE.### Test
Execute ```flutter test test``` to run the test cases.## Customization
### Package Name
Change the package name of this app by executing
```
dart run change_app_package_name:main com.new.package.name
```
(uses [change_app_package_name](https://pub.dev/packages/change_app_package_name))### Routing
Add and remove routes in [my_router_config](lib/router/my_router_config.dart) in order to
implement your custom navigation logic
(see also [go_router](https://pub.dev/packages/go_router)).### Theme
If you want to change the app's theme, have a look at the
[ThemeProviderImpl](lib/providers/theme/theme_provider_impl.dart).
Here you can change color schemes and fonts according to your needs.
(see also [flex_color_scheme](https://pub.dev/packages/flex_color_scheme))### Custom Icon
You can customize launcher and splash icons by
1. Replacing [icon.png](assets/icon.png) with your custom image
2. Executing ```dart run flutter_launcher_icons``` (uses [flutter_launcher_icons](https://pub.dev/packages/flutter_launcher_icons))
3. Executing ```dart run flutter_native_splash:create``` (uses [flutter_native_splash](https://pub.dev/packages/flutter_native_splash))### Internationalization
In order to add a new language, just add a new file with translations to the
[l10n](lib/l10n) folder and execute ```flutter gen-l10n```.
For more details see also the [official documentation](https://docs.flutter.dev/development/accessibility-and-localization/internationalization).