environment_widget 1.1.0 environment_widget: ^1.1.0 copied to clipboard
Flutter package to set environment.
Environment Widget #
Easily environment implementation
How to use #
Create your files that represents your environments. Than confiure like bellow.
Environment(
bannerColor: Colors.orange,
bannerTag: 'Dev',
baseUrl: 'https://dev.foo.bar',
)
Environment(
bannerColor: Colors.purple,
bannerTag: 'Hmg',
baseUrl: 'https://hmg.foo.bar',
bannerLocation: BannerLocation.bottomEnd,
)
Environment(
isRelease: true,
baseUrl: 'https://foo.bar',
)
For more details see example project on Github.