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

A plugin for dynamically changing 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());
7
likes
0
points
35
downloads

Publisher

verified publisherlanars.com

Weekly Downloads

A plugin for dynamically changing the base URL in requests

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

dio, flutter, shared_preferences

More

Packages that depend on dynamic_environment