add providers per page

show only 10 packages
new page for all packages
This commit is contained in:
lukas committed 2024-01-19 20:00:10 +01:00
1 parent 920e11abcc
commit bb34e56be0
13 files changed
+462 -384

No files matched your search

+3 -2
View File
@@ -2,8 +2,9 @@ import '../models/package.dart';
import 'api_client.dart';
extension PackagesAPI on ApiClient {
Future<List<Package>> listPackages() async {
final resp = await getRawClient().get("/packages/list");
Future<List<Package>> listPackages({int? limit}) async {
final resp = await getRawClient()
.get("/packages/list", queryParameters: {'limit': limit});
final responseObject = resp.data as List;
final List<Package> packages =