This commit is contained in:
2026-05-14 16:54:32 +00:00
parent 5b2a2e7ddb
commit 15fcbcc9eb
212 changed files with 18586 additions and 10360 deletions
@@ -0,0 +1,28 @@
import 'package:flutter/material.dart';
import '../services/information_service.dart';
class InformationProvider with ChangeNotifier {
final InformationService _service = InformationService();
List<dynamic> _informations = [];
bool _isLoading = false;
String? _error;
List<dynamic> get informations => _informations;
bool get isLoading => _isLoading;
String? get error => _error;
Future<void> fetchInformations() async {
_isLoading = true;
_error = null;
notifyListeners();
try {
_informations = await _service.getInformations();
} catch (e) {
_error = e.toString();
} finally {
_isLoading = false;
notifyListeners();
}
}
}