add providers per page

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

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 =