flutter_paradigm 1.0.0
flutter_paradigm: ^1.0.0 copied to clipboard
A skeleton classes for projects.
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.).
Getting started #
- Add this package to your
pubspec.yaml.
Usage #
void main() { Network.init('https://your-api.com'); }
// Initialize once Network.init('https://api.example.com');
// Use anywhere in the app final response = await Network.instance.post('/login', data: { 'email': 'user@example.com', 'password': 'secret', });
print(response.data);