TF-3005 Apply new design search result list contact view
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
|
||||
import 'package:core/presentation/extensions/color_extension.dart';
|
||||
import 'package:core/presentation/utils/responsive_utils.dart';
|
||||
import 'package:core/utils/platform_info.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class ContactItemWidgetStyle {
|
||||
static const TextStyle nameAddressTextStyle = TextStyle(
|
||||
color: Colors.black,
|
||||
fontSize: 15,
|
||||
fontWeight: FontWeight.w600
|
||||
);
|
||||
|
||||
static const TextStyle emailAddressTextStyle = TextStyle(
|
||||
color: AppColor.colorSubtitle,
|
||||
fontSize: 13,
|
||||
fontWeight: FontWeight.w400
|
||||
);
|
||||
|
||||
static EdgeInsetsGeometry getItemPadding(
|
||||
BuildContext context,
|
||||
ResponsiveUtils responsiveUtils
|
||||
) {
|
||||
if (PlatformInfo.isWeb || responsiveUtils.isScreenWithShortestSide(context)) {
|
||||
return const EdgeInsets.symmetric(horizontal: 16, vertical: 10);
|
||||
} else {
|
||||
return const EdgeInsets.symmetric(horizontal: 32, vertical: 10);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -75,7 +75,7 @@ class ContactViewStyle {
|
||||
|
||||
static EdgeInsetsGeometry getSearchInputFormMargin(
|
||||
BuildContext context,
|
||||
ResponsiveUtils responsiveUtils
|
||||
ResponsiveUtils responsiveUtils,
|
||||
) {
|
||||
if (PlatformInfo.isWeb || responsiveUtils.isScreenWithShortestSide(context)) {
|
||||
return const EdgeInsets.symmetric(horizontal: 16, vertical: 10);
|
||||
@@ -83,4 +83,15 @@ class ContactViewStyle {
|
||||
return const EdgeInsets.symmetric(horizontal: 32, vertical: 10);
|
||||
}
|
||||
}
|
||||
|
||||
static EdgeInsets getDividerSearchResultListPadding(
|
||||
BuildContext context,
|
||||
ResponsiveUtils responsiveUtils
|
||||
) {
|
||||
if (PlatformInfo.isWeb || responsiveUtils.isScreenWithShortestSide(context)) {
|
||||
return const EdgeInsets.symmetric(horizontal: 16);
|
||||
} else {
|
||||
return const EdgeInsets.symmetric(horizontal: 32);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user