TF-1427 Implement search mailbox for mobile/tablet

This commit is contained in:
dab246
2023-02-10 03:11:35 +07:00
committed by Dat Vu
parent 181820ed45
commit 07e0401797
11 changed files with 316 additions and 64 deletions
@@ -7,9 +7,9 @@ class SearchMailboxUtils {
return const EdgeInsets.symmetric(vertical: 8, horizontal: 16);
} else {
if (responsiveUtils.isScreenWithShortestSide(context)) {
return const EdgeInsets.symmetric(horizontal: 16, vertical: 8);
return const EdgeInsets.symmetric(horizontal: 12, vertical: 8);
} else {
return const EdgeInsets.symmetric(horizontal: 32, vertical: 8);
return const EdgeInsets.symmetric(horizontal: 28, vertical: 8);
}
}
}
@@ -19,9 +19,9 @@ class SearchMailboxUtils {
return const EdgeInsets.only(left: 5, right: 2);
} else {
if (responsiveUtils.isScreenWithShortestSide(context)) {
return const EdgeInsets.only(left: 10, right: 16);
return const EdgeInsets.only(left: 6, right: 14);
} else {
return const EdgeInsets.only(left: 10, right: 16);
return const EdgeInsets.only(left: 8, right: 16);
}
}
}
@@ -53,4 +53,12 @@ class SearchMailboxUtils {
}
}
}
static EdgeInsets getPaddingItemListView(BuildContext context, ResponsiveUtils responsiveUtils) {
if (responsiveUtils.isWebDesktop(context)) {
return const EdgeInsets.all(8);
} else {
return const EdgeInsets.symmetric(horizontal: 8, vertical: 10);
}
}
}