Flutter Dio networking

Overview

Networking in Flutter using Dio

This is a sample Flutter app for demonstrating how to perform network requests using the Dio package. For this demo API provided by REQ | RES is used.

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

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

Demonstration

Request Type Demo
GET
POST
PUT
DELETE

Packages

The packages used in this app are as follows:

Add them to your pubspec.yaml file like this:

dependencies:
  dio: ^4.0.0
  json_annotation: ^4.0.1

dev_dependencies:
  json_serializable: ^4.1.3
  build_runner: ^2.0.4

License

Copyright (c) 2021 Souvik Biswas

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

You might also like...

A boilerplate project for Flutter using RiverPod, Dio, auto_route

Flutter Boilerplate A boilerplate project for Flutter using RiverPod, Dio, auto_route, Freezed and generated with very_good_cli. This is a very simple

Dec 9, 2022

flutter dio interceptor

flutter dio interceptor

flutter_interceptor flutter dio interceptor Getting Started dependencies: flutter_interceptor: ^0.0.1 //Initialization _dio.interceptors.add(UiNetIn

Dec 12, 2022

A basic boilerplate template for starting a Flutter GetX project. GetX, Dio, MVVM, get CLI, Localization, Pagination etc are implemented.

A basic boilerplate template for starting a Flutter GetX project. GetX, Dio, MVVM, get CLI, Localization, Pagination etc are implemented.

Flutter GetX Template (GetX, Dio, MVVM) This Flutter Template using GetX package for State management, routing and Dependency Injection (bindings). We

Jan 9, 2023

Complete Flutter Application with Riverpod & Freezed + Dio for API REST

Complete Flutter Application with Riverpod & Freezed + Dio for API REST

Flutter Crypto APP Complete Flutter Application with Riverpod & Freezed + Dio fo

Dec 26, 2022

My boilerplate for flutter with getx & dio environment

flutter_getx_boilerplate A new Flutter project. Getting Started This project is a starting point for a Flutter application. A few resources to get you

Apr 6, 2022

Flutter app using MVVM architecture pattern , dio , provider , intl packages.

Flutter app using MVVM architecture pattern , dio , provider , intl packages.

News App Simple news application using free news API for fetching realtime data from the internet. Features -Used MVVM architecture pattern. Packages

Mar 25, 2022

API call using Dio package and GetX in Flutter.

API call using Dio package and GetX in Flutter.

API call demo This demo is to get API data using Dio package and I have also used GetX package for state management. I have implemented two ways to di

Dec 11, 2022

Flutter GetX Template (GetX, Dio, MVVM)

Flutter GetX Template (GetX, Dio, MVVM)

Flutter GetX Template (GetX, Dio, MVVM) This Flutter Template using GetX package for State management, routing and Dependency Injection (bindings). We

Dec 18, 2022

An easy-to-use flutter http network requests handler with more functionality than http but more simpler than dio.

network_requests An easy-to-use flutter http network requests handler with more functionality than http but more simpler than dio. Platform Supported

Dec 15, 2022
Owner
Souvik Biswas
Android, iOS & Flutter Developer | C++, Java and Dart Programmer | Technical Writer @Medium & @NevercodeHQ | @udacity Secure and Private AI '19 Scholar
Souvik Biswas
Social network - Social networking application with Flutter

Social Network Social networking application with Flutter

Abolfazl Zarei 9 Mar 12, 2022
Api-Call - A basic mobile application for Networking in Flutter(API)

Github Api Call ?? ?? ?? Introduction This project is an basic mobile applicatio

navee-ramesh 5 Nov 11, 2022
Datting-app-client - Social networking apps, FrontEnd written in Flutter

datting_social Social networking apps. FrontEnd written in Flutter. BackEnd writ

Đỗ Viết Hùng 39 Nov 13, 2022
Dating-app-client - Social networking apps written in Flutter

datting_social Social networking apps. FrontEnd written in Flutter. BackEnd writ

Đỗ Viết Hùng 39 Nov 13, 2022
Create different mobile applications such as a social networking application and an online store, as well as a news application using Flutter

Develop-Different-Mobile-Applications Create Different Mobile Applications such as a social networking application and an online store, as well as a n

Ebrahim Mohamed 2 Jul 1, 2022
New version of social networking application

Social Network New Version Light Mode Dark Mode Packages custom_navigation_bar: flutter_staggered_grid_view: flutter_switch: get: flutter_staggered_an

Abolfazl Zarei 6 Nov 4, 2022
Rajagiri connect is a networking platform that enables the students of Rajagiri to form a social network among themselves, enabling them to connect with their seniors, juniors and faculty for sharing of information and resources.

Rajagiri Connect Rajagiri connect is a networking platform that enables the students of Rajagiri to form a social network among themselves, enabling t

Muhammad Amaan 2 Nov 27, 2022
Flutter table with dio and provider - A flutter Application created for Portfolio Page

My LinkedIn https://www.linkedin.com/in/marcelo-augusto-a60b6821a/ Intro This is

Marcelo Augusto 1 Jan 18, 2022
A starter kit for beginner learns with Bloc pattern, RxDart, sqflite, Fluro and Dio to architect a flutter project. This starter kit build an App Store app as a example

Flutter Starter Kit - App Store Example A starter kit for beginner learns with Bloc pattern, RxDart, sqflite, Fluro and Dio to architect a flutter pro

kw101 678 Jan 8, 2023
Flutter Cryptocurrency App with Riverpod & Freezed + Dio for API REST

Flutter Crypto APP Complete Flutter Application with Riverpod & Freezed + Dio for API REST. Features API REST (CryptoWatch) Linear Graph View (Hour, D

Salvador Valverde 312 Jan 2, 2023