improvement

main_design2.1
Sikander Saleem 1 year ago
parent 78e68e4e84
commit a34580f51d

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

@ -109,7 +109,7 @@ class _SwipeViewState extends State<SwipeView> {
mainAxisSize: MainAxisSize.min, mainAxisSize: MainAxisSize.min,
children: [ children: [
Column( Column(
mainAxisSize: MainAxisSize.min, mainAxisSize: MainAxisSize.min,crossAxisAlignment: CrossAxisAlignment.start,
children: [ children: [
Text( Text(
context.translation.welcome, context.translation.welcome,
@ -121,7 +121,6 @@ class _SwipeViewState extends State<SwipeView> {
), ),
], ],
).paddingOnly(start: 16, end: 16, top: 8, bottom: 4), ).paddingOnly(start: 16, end: 16, top: 8, bottom: 4),
SwipeHistoryView(showAppBar: false).expanded, SwipeHistoryView(showAppBar: false).expanded,
], ],
), ),

Loading…
Cancel
Save