progress on batches

This commit is contained in:
2026-06-05 20:25:20 +02:00
parent eab2368331
commit 2dd790fe6e
23 changed files with 9112 additions and 74 deletions

View File

@@ -20,14 +20,14 @@ class RecipientModel {
@freezed
abstract class Recipient with _$Recipient {
const factory Recipient({
String? uid,
String? name,
String? email,
String? phoneNumber,
String? address,
String? account,
String? initials,
String? latestProviderLabel,
@JsonKey(includeIfNull: false) String? uid,
@JsonKey(includeIfNull: false) String? name,
@JsonKey(includeIfNull: false) String? email,
@JsonKey(includeIfNull: false) String? phoneNumber,
@JsonKey(includeIfNull: false) String? address,
@JsonKey(includeIfNull: false) String? account,
@JsonKey(includeIfNull: false) String? initials,
@JsonKey(includeIfNull: false) String? latestProviderLabel,
}) = _Recipient;
factory Recipient.fromJson(Map<String, dynamic> json) =>
@@ -40,14 +40,15 @@ class RecipientsController extends ChangeNotifier {
BuildContext context;
RecipientsController(this.context) {
model.selectedProvider =
Provider.of<TransactionController>(
context,
listen: false,
).model.selectedProvider;
model.selectedProvider = Provider.of<TransactionController>(
context,
listen: false,
).model.selectedProvider;
}
Future<ApiResponse<List<Recipient>>> getRecipients([Map<String, String>? params]) async {
Future<ApiResponse<List<Recipient>>> getRecipients([
Map<String, String>? params,
]) async {
model.errorMessage = null;
model.isLoading = true;
model.recipients = getDummyRecipients();