Skip to content

An example app for best networking practices with dio in a flutter.

License

Notifications You must be signed in to change notification settings

kishan-dhankecha/Networking-Dio-Flutter

Repository files navigation

Networking Dio Flutter

An example app for Best networking practices with dio in flutter.

The functionalities of Dio showcased in this app are as follows:

  • GET request
  • POST request
  • PUT request
  • DELETE request
  • Base options
  • Uploading files
  • Interceptors

Getting Started

  1. Install Flutter
  2. Clone the repo
  3. Run flutter pub get && flutter pub run build_runner build.
  4. To keep the code generator running in a server flutter pub run build_runner serve --delete-conflicting-outputs

The --delete-conflicting-outputs flag helps to regenerate a part of the generated class if any conflicts are found.

  1. Run flutter run (make sure to have an emulator running).
  • For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

Original Source

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT