sharmadhiraj / flutter_network_call_base

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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 file to your project.
  • Extend your StatefulWidget by BaseStatefulWidget<T>. Here, T represents the data type returned by the Future.
  • Implement the following methods: getTitle(), body<T>(T data), future<T>().

API used: https://reqres.in/

About

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


Languages

Language:Dart 76.8%Language:Objective-C 11.6%Language:Shell 9.2%Language:Java 2.4%