aurcache/frontend/lib/providers/packages_provider.dart
lukas-heiligenbrunner bb34e56be0 add providers per page
show only 10 packages
new page for all packages
2024-01-19 20:00:10 +01:00

19 lines
413 B
Dart

import 'package:aurcache/api/packages.dart';
import 'package:aurcache/providers/BaseProvider.dart';
import '../api/API.dart';
import '../models/package.dart';
class PackagesDTO {
final int limit;
PackagesDTO({required this.limit});
}
class PackagesProvider extends BaseProvider<List<Package>, PackagesDTO> {
@override
loadFuture(context, {dto}) {
data = API.listPackages(limit: dto?.limit);
}
}