Skip to content

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

Notifications You must be signed in to change notification settings

sharmadhiraj/flutter_network_call_base

Repository files navigation

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.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published