ae08b946f6
- Updated TendersRepository and TendersService to support cursor-based pagination. - Modified TendersViewModel to manage pagination state and handle API responses more effectively. - Replaced existing pagination UI components with a new WindowedPagination widget across desktop, mobile, and tablet views. - Improved notification handling in the UI to reflect the presence of notifications dynamically. - Adjusted main tenders slider to ensure proper rendering based on the current page index.
30 lines
976 B
Dart
30 lines
976 B
Dart
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
|
|
part of 'meta.dart';
|
|
|
|
// **************************************************************************
|
|
// JsonSerializableGenerator
|
|
// **************************************************************************
|
|
|
|
_Meta _$MetaFromJson(Map<String, dynamic> json) => _Meta(
|
|
limit: (json['limit'] as num?)?.toInt(),
|
|
offset: (json['offset'] as num?)?.toInt(),
|
|
page: (json['page'] as num?)?.toInt(),
|
|
pages: (json['pages'] as num?)?.toInt(),
|
|
total: (json['total'] as num?)?.toInt(),
|
|
hasMore: json['has_more'] as bool?,
|
|
nextCursor: json['next_cursor'] as String?,
|
|
prevCursor: json['prev_cursor'] as String?,
|
|
);
|
|
|
|
Map<String, dynamic> _$MetaToJson(_Meta instance) => <String, dynamic>{
|
|
'limit': instance.limit,
|
|
'offset': instance.offset,
|
|
'page': instance.page,
|
|
'pages': instance.pages,
|
|
'total': instance.total,
|
|
'has_more': instance.hasMore,
|
|
'next_cursor': instance.nextCursor,
|
|
'prev_cursor': instance.prevCursor,
|
|
};
|