Skip to content

Repository files navigation

DioStageHostSelector

DevTool for define custom stage host url and/or Proxy address in projects with Dio Using shared_preferences as persitent storage

Indicator

Dialog

How to install

dependencies:
dio_stage_host_selector:
git:
url: https://github.com/magdevelopment/DioStageHostSelector.gitref: 3.0.0

How to use

  1. Initialize somewhere in main:
if (kDevBuild) {
awaitStageHostSelectorComponent.init(baseUrl);
}
  1. Put indicator widget somewhere on login page:
final widget =StageHostSelectorComponent.buildIndicator(context);
  1. When creating Dio, configure it by:
if (kDebugMode) {
StageHostSelectorComponent.configureDio(dio);
}

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages