|
|
|
|
@ -128,9 +128,7 @@ class _SwipeHistoryViewState extends State<SwipeHistoryView> {
|
|
|
|
|
12.height,
|
|
|
|
|
AppFilledButton(label: context.translation.search, maxWidth: false, onPressed: getSwipeHistory),
|
|
|
|
|
8.height,
|
|
|
|
|
const Divider(
|
|
|
|
|
thickness: 2,
|
|
|
|
|
),
|
|
|
|
|
const Divider(thickness: 2),
|
|
|
|
|
Consumer<UserProvider>(builder: (context, snapshot, child) {
|
|
|
|
|
return SwipeHistoryList(snapshot.swipeHistory ?? [], snapshot.isLoading);
|
|
|
|
|
}),
|
|
|
|
|
@ -150,7 +148,7 @@ class SwipeHistoryList extends StatelessWidget {
|
|
|
|
|
@override
|
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
|
return (list.isEmpty && !isLoading)
|
|
|
|
|
? context.translation.noDataFound.heading5(context).custom(color: context.isDark ? AppColor.neutral10 : AppColor.neutral50).center
|
|
|
|
|
? context.translation.noDataFound.heading5(context).custom(color: context.isDark ? AppColor.neutral10 : AppColor.neutral50).center.paddingOnly(top: 50)
|
|
|
|
|
: ListView.separated(
|
|
|
|
|
physics: const NeverScrollableScrollPhysics(),
|
|
|
|
|
shrinkWrap: true,
|
|
|
|
|
|