dynamic_environment 0.0.3 copy "dynamic_environment: ^0.0.3" to clipboard
dynamic_environment: ^0.0.3 copied to clipboard

Dynamic environment package was created for convenient way to change the base URL in requests.

dynamic-environment #

A plugin for dynamically changing the base URL in requests

Getting Started #

In order to show a dialog for changing the URL you need to call a requestDialog function. Optionally you can provide baseUrl to display it in dialogue.

requestDialog(
    context,
    baseUrl: 'https://example.com/',
);

The next step is to add DynamicEnvironmentInterceptor to the Dio instance.

dio.interceptors.add(DynamicEnvironmentInterceptor());
6
likes
120
pub points
0%
popularity

Publisher

verified publisherlanars.com

Dynamic environment package was created for convenient way to change the base URL in requests.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-2-Clause (LICENSE)

Dependencies

dio, flutter, shared_preferences

More

Packages that depend on dynamic_environment