A library for Flutter developers.
fappconfiguration's a package that help you configure your application for dynamic content, example white label, flavors, server side rendering and routing.
Application configuration allow you to provide dynamic routing, dynamic theming, dynamic localization, dynamic widget and more.
1- You can specify theme for light and dark mode #
2- You can specify different languages supported by the app, see Application configuration.
3- You can change specific widget dynamically on the fly, see Application configuration and also Dynamic Widget Provider.
Look at the button on the right end of the screen, even if the screen code and behavior did not change but the widget did. #
4- You can override or provide new routes for every Application configuration
For example we want to provide different about page for both yellow white label and green white label but without change the home page code.
5- You can also specify DI dependencies for an Application configuration.
This is possible by leveraging the Provider package and providing your dependency using the dependencies field of your application configuration. #
6- You can easily update the application configuration on the fly using FAppConfigurationApplication update method.
There's more that you can do, please see the example project.
The library currently provide two out of the box App widget that support application configuration: #
For Material design DefaultMaterialApplication.
For Cupertino design DefaultCupertinoApplication.
If you want to create your own, just extend the FAppConfigurationApplication.
For any feature request or bug please create a github issue
[0.0.1] - 25/08/2019.
- First release: Added application configuration.
[0.0.2] - 26/08/2019.
Changed localizationsDelegate field name to localizationsDelegates.
Changed type of property from single delegate to list of localization delegates. This allow an application configuration to provide multiple localization delegates
[1.0.0] - 27/11/2019.
Added support for dependencies inside of ApplicationConfiguration. This allow you to specify the dependency that an application configuration is depending on, those dependency will be provided using provider library.
Added possibility to update current application configuration on the fly, using FAppConfigurationApplication.update method.
Added FAppConfigurationApplication class and FAppConfigurationApplicationState class to allow custom implementation of application widget without loosing update the functionality.
[1.1.0] - 02/01/2020
Changed Application configuration properties to methods, for better composition.
Upgraded the provider library version to 4.0.1
Updated the example to showcase using multiple application configuration.
A example project for fappconfiguration library.
Getting Started #
This project is a starting point for a Flutter application.
A few resources to get you started if this is your first Flutter project:
For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.
Use this package as a library
1. Depend on it
Add this to your package's pubspec.yaml file:
dependencies: fappconfiguration: ^1.1.0
2. Install it
You can install packages from the command line:
$ flutter pub get
Alternatively, your editor might support
flutter pub get.
Check the docs for your editor to learn more.
3. Import it
Now in your Dart code, you can use:
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
We analyzed this package on Jan 16, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:
- Dart: 2.7.0
- pana: 0.13.4
- Flutter: 1.12.13+hotfix.5
|Dart SDK||>=2.2.2 <3.0.0|