nice2dev_flutter_erp_adapter 1.0.2
nice2dev_flutter_erp_adapter: ^1.0.2 copied to clipboard
Adapter layer connecting OmniVerk .NET backend with nice2dev_flutter_ui widgets. REST CRUD, JWT auth, file upload, server-side export, SignalR real-time.
nice2dev_flutter_erp_adapter #
Adapter layer connecting OmniVerk .NET backend with nice2dev_flutter_ui widgets.
Features #
- REST CRUD Operations: Full CRUD support for OmniVerk entities
- JWT Authentication: Secure token-based authentication
- File Upload: Multi-part file upload with progress tracking
- Server-side Export: Excel, PDF, CSV export via backend
- SignalR Real-time: Live updates and notifications
Getting Started #
Add the dependency to your pubspec.yaml:
dependencies:
nice2dev_flutter_erp_adapter: ^0.1.0
Usage #
import 'package:nice2dev_flutter_erp_adapter/nice2dev_flutter_erp_adapter.dart';
// Initialize the adapter
final adapter = OmniVerkAdapter(
baseUrl: 'https://api.omniverk.com',
authToken: 'your-jwt-token',
);
// Fetch data
final products = await adapter.getProducts();
// Create entity
final newProduct = await adapter.createProduct({
'name': 'New Product',
'price': 19.99,
});
// Real-time updates
adapter.onProductUpdated.listen((product) {
print('Product updated: ${product.name}');
});
API Reference #
OmniVerkAdapter #
Main adapter class for connecting to OmniVerk backend.
OmniVerkAuth #
Handles JWT authentication and token refresh.
OmniVerkRealtime #
SignalR-based real-time communication.
License #
MIT License - see the LICENSE file for details.