An open API service indexing awesome lists of open source software.

https://github.com/sharmadhiraj/flutter_network_call_base

Base StatefulWidget Setup to overcome repetitive boilerplate code in every screen with network call.
https://github.com/sharmadhiraj/flutter_network_call_base

android base flutter flutter-apps http ios network

Last synced: 9 months ago
JSON representation

Base StatefulWidget Setup to overcome repetitive boilerplate code in every screen with network call.

Awesome Lists containing this project

README

          

## Reusable Stateful Widget for Network Calls with Progress & Retry

This project provides a base StatefulWidget setup to streamline repetitive boilerplate code
typically encountered in every screen with network calls.

#### Getting Started

- Copy
the [base.dart](https://github.com/sharmadhiraj/flutter_network_call_base/blob/master/lib/base.dart)
file to your project.
- Extend your StatefulWidget by `BaseStatefulWidget`. Here, `T` represents the data type returned
by the Future.
- Implement the following methods: `getTitle()`, `body(T data)`, `future()`.

API used: [https://reqres.in/](https://reqres.in/)