|
|
|
|
@ -10,7 +10,6 @@ import 'package:test_sa/new_views/app_style/app_color.dart';
|
|
|
|
|
import 'package:test_sa/new_views/common_widgets/app_filled_button.dart';
|
|
|
|
|
import 'package:test_sa/new_views/common_widgets/default_app_bar.dart';
|
|
|
|
|
import 'package:test_sa/views/widgets/date_and_time/date_picker.dart';
|
|
|
|
|
import 'package:test_sa/views/widgets/loaders/no_item_found.dart';
|
|
|
|
|
|
|
|
|
|
import 'models/swipe_transaction_history.dart';
|
|
|
|
|
|
|
|
|
|
@ -56,7 +55,6 @@ class _SwipeHistoryViewState extends State<SwipeHistoryView> {
|
|
|
|
|
children: [
|
|
|
|
|
ADatePicker(
|
|
|
|
|
label: context.translation.from,
|
|
|
|
|
showDateOnly: true,
|
|
|
|
|
date: dateFrom,
|
|
|
|
|
from: DateTime(DateTime.now().year - 5, DateTime.now().month, DateTime.now().day),
|
|
|
|
|
formatDateWithTime: false,
|
|
|
|
|
@ -158,10 +156,11 @@ class SwipeHistoryList extends StatelessWidget {
|
|
|
|
|
shrinkWrap: true,
|
|
|
|
|
padding: EdgeInsets.only(top: 12.toScreenHeight),
|
|
|
|
|
itemBuilder: (cxt, index) {
|
|
|
|
|
if (isLoading)
|
|
|
|
|
if (isLoading) {
|
|
|
|
|
return const SizedBox(
|
|
|
|
|
height: 20,
|
|
|
|
|
).toRequestShimmer(cxt, isLoading);
|
|
|
|
|
}
|
|
|
|
|
return SwipeHistoryCard(list[index]);
|
|
|
|
|
},
|
|
|
|
|
separatorBuilder: (cxt, index) => 12.height,
|
|
|
|
|
|