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.
23 lines
594 B
Dart
23 lines
594 B
Dart
// ignore_for_file: invalid_annotation_target
|
|
|
|
import 'package:freezed_annotation/freezed_annotation.dart';
|
|
|
|
part 'meta.freezed.dart';
|
|
part 'meta.g.dart';
|
|
|
|
@freezed
|
|
abstract class Meta with _$Meta {
|
|
const factory Meta({
|
|
required int? limit,
|
|
required int? offset,
|
|
required int? page,
|
|
required int? pages,
|
|
required int? total,
|
|
@JsonKey(name: 'has_more') bool? hasMore,
|
|
@JsonKey(name: 'next_cursor') String? nextCursor,
|
|
@JsonKey(name: 'prev_cursor') String? prevCursor,
|
|
}) = _Meta;
|
|
|
|
factory Meta.fromJson(Map<String, dynamic> json) => _$MetaFromJson(json);
|
|
}
|