flutter_paradigm 1.0.4 copy "flutter_paradigm: ^1.0.4" to clipboard
flutter_paradigm: ^1.0.4 copied to clipboard

This package offers a collection of well-structured, predefined utility classes—including networking, shared preferences management, and common architectural patterns—to streamline the foundational se [...]

Features #

A lightweight Flutter/Dart package that provides a reusable singleton wrapper around Dio for making HTTP requests. Helps you quickly set up and manage network communication with features like request timeouts, base URL configuration, and simplified method wrappers (post, get, etc.).

package also contain predefine text, image widget

predefine helper class for shared preferences

Getting started #

  1. Add this package to your pubspec.yaml.

Usage #

// Initialize once

void main()async { Network.init('https://your-api.com'); await AppPreferences.instance.init(); }

// Use anywhere in the app final response = await Network.instance.post('/login', data: { 'email': 'user@example.com', 'password': 'secret', });

print(response.data);

// use it where you want to use directly AppPreferences.instance.setString("email", "user@example.com");

please also refer example

Thanks :)

1
likes
120
points
37
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

This package offers a collection of well-structured, predefined utility classes—including networking, shared preferences management, and common architectural patterns—to streamline the foundational setup of Flutter projects, accelerate development, and promote consistency across codebases.

Homepage

License

unknown (license)

Dependencies

dio, flutter, flutter_bloc, shared_preferences

More

Packages that depend on flutter_paradigm