TF-3005 Apply new design app bar contact view

This commit is contained in:
dab246
2024-09-18 01:16:52 +07:00
committed by Dat H. Pham
parent e584e61521
commit c233ec7a2e
12 changed files with 342 additions and 290 deletions
@@ -4,18 +4,6 @@ import 'package:core/utils/platform_info.dart';
import 'package:flutter/material.dart';
class ContactUtils {
static EdgeInsets getPaddingAppBar(BuildContext context, ResponsiveUtils responsiveUtils) {
if (PlatformInfo.isWeb) {
return const EdgeInsets.symmetric(horizontal: 16);
} else {
if (responsiveUtils.isScreenWithShortestSide(context)) {
return const EdgeInsets.symmetric(horizontal: 10);
} else {
return const EdgeInsets.symmetric(horizontal: 32);
}
}
}
static EdgeInsets getPaddingSearchInputForm(BuildContext context, ResponsiveUtils responsiveUtils) {
if (PlatformInfo.isWeb) {
return const EdgeInsets.symmetric(horizontal: 16, vertical: 10);
@@ -51,19 +39,4 @@ class ContactUtils {
}
}
}
static bool supportAppBarTopBorder(BuildContext context, ResponsiveUtils responsiveUtils) {
if (PlatformInfo.isWeb || responsiveUtils.isLandscapeMobile(context)) {
return false;
}
return true;
}
static double getRadiusBorderAppBarTop(BuildContext context, ResponsiveUtils responsiveUtils) {
if (supportAppBarTopBorder(context, responsiveUtils)) {
return 16;
} else {
return 0;
}
}
}