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.
- Host: GitHub
- URL: https://github.com/sharmadhiraj/flutter_network_call_base
- Owner: sharmadhiraj
- Created: 2018-08-03T11:32:33.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2024-02-29T05:29:58.000Z (about 2 years ago)
- Last Synced: 2025-03-28T21:38:58.686Z (about 1 year ago)
- Topics: android, base, flutter, flutter-apps, http, ios, network
- Language: Dart
- Size: 121 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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/)