added pagination to group and batch detail screens

This commit is contained in:
2026-06-24 23:19:45 +02:00
parent 263c10d2bb
commit a31e38765d
4 changed files with 1119 additions and 210 deletions

View File

@@ -8,6 +8,7 @@ import 'package:qpay/screens/groups/models/recipient_group_model.dart';
class GroupScreenModel {
List<RecipientGroup> groups = [];
List<RecipientGroupMember> members = [];
PageableModel? membersPage;
bool isLoading = false;
bool isLoadingMore = false;
String? errorMessage;
@@ -141,6 +142,7 @@ class GroupController extends ChangeNotifier {
'/recipient-groups/members?recipientGroupId=$groupId',
);
final response = _unwrap(raw);
model.membersPage = PageableModel.fromJson(response);
final List<dynamic> content;
if (response is List) {
content = response;