feat: integrate unified payment and wallet refunds

This commit is contained in:
2026-08-02 23:24:32 +08:00
parent f0b8af0bc8
commit 82a2106a97
64 changed files with 1519 additions and 254 deletions

View File

@@ -1,6 +1,7 @@
import 'package:flutter/material.dart';
import '../../core/widgets.dart';
import '../../../domain/models/client_models.dart';
import 'record_list_view_model.dart';
class RecordListPage extends StatefulWidget {
@@ -10,6 +11,7 @@ class RecordListPage extends StatefulWidget {
required this.viewModel,
this.description,
this.floatingActionButton,
this.onRecordTap,
super.key,
});
@@ -18,6 +20,7 @@ class RecordListPage extends StatefulWidget {
final String? description;
final RecordListViewModel viewModel;
final Widget? floatingActionButton;
final ValueChanged<ClientRecord>? onRecordTap;
@override
State<RecordListPage> createState() => _RecordListPageState();
@@ -74,7 +77,10 @@ class _RecordListPageState extends State<RecordListPage> {
else
SliverList.builder(
itemCount: state.records.length,
itemBuilder: (context, index) => RecordCard(record: state.records[index]),
itemBuilder: (context, index) => RecordCard(
record: state.records[index],
onTap: widget.onRecordTap == null ? null : () => widget.onRecordTap!(state.records[index]),
),
),
const SliverPadding(padding: EdgeInsets.only(bottom: 24)),
],