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
- 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 :)