TF-1915 Sync set padding for multiple platform

(cherry picked from commit 2dca49df4242119b7debbaf4d6fd12697d6955c9)
This commit is contained in:
dab246
2023-06-08 15:19:13 +07:00
committed by Dat Vu
parent 8194d34b4c
commit e6e028f380
6 changed files with 160 additions and 109 deletions
@@ -774,9 +774,9 @@ class ComposerView extends GetWidget<ComposerController>
}
int _getMaxItemRowListAttachment(BuildContext context, BoxConstraints constraints) {
if (constraints.maxWidth < responsiveUtils.minTabletWidth) {
if (constraints.maxWidth < ResponsiveUtils.minTabletWidth) {
return 2;
} else if (constraints.maxWidth < responsiveUtils.minTabletLargeWidth) {
} else if (constraints.maxWidth < ResponsiveUtils.minTabletLargeWidth) {
return 3;
} else {
return 4;
@@ -929,9 +929,9 @@ class ComposerView extends GetWidget<ComposerController>
}
int _getMaxItemRowListAttachment(BuildContext context, BoxConstraints constraints) {
if (constraints.maxWidth < responsiveUtils.minTabletWidth) {
if (constraints.maxWidth < ResponsiveUtils.minTabletWidth) {
return 2;
} else if (constraints.maxWidth < responsiveUtils.minTabletLargeWidth) {
} else if (constraints.maxWidth < ResponsiveUtils.minTabletLargeWidth) {
return 3;
} else {
return 4;