Fix advanced search form
Signed-off-by: dab246 <tdvu@linagora.com> (cherry picked from commit 59aee3f5023dc9722bd6f4f74abb19ea6bf39980)
This commit is contained in:
+3
-6
@@ -1,5 +1,4 @@
|
||||
import 'package:core/presentation/extensions/color_extension.dart';
|
||||
import 'package:core/presentation/utils/responsive_utils.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:get/get.dart';
|
||||
import 'package:pointer_interceptor/pointer_interceptor.dart';
|
||||
@@ -11,14 +10,12 @@ class AdvancedSearchFilterOverlay extends StatelessWidget {
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final responsiveUtils = Get.find<ResponsiveUtils>();
|
||||
|
||||
return PointerInterceptor(
|
||||
child: GestureDetector(
|
||||
onTap: () => FocusManager.instance.primaryFocus?.unfocus(),
|
||||
child: Container(
|
||||
constraints: BoxConstraints(
|
||||
maxHeight: _getHeightOverlay(context, responsiveUtils),
|
||||
maxHeight: _getHeightOverlay(context),
|
||||
),
|
||||
margin: const EdgeInsetsDirectional.only(top: 4, bottom: 16, end: 22),
|
||||
padding: const EdgeInsets.symmetric(horizontal: 8),
|
||||
@@ -45,10 +42,10 @@ class AdvancedSearchFilterOverlay extends StatelessWidget {
|
||||
);
|
||||
}
|
||||
|
||||
double _getHeightOverlay(BuildContext context, ResponsiveUtils responsiveUtils) {
|
||||
double _getHeightOverlay(BuildContext context) {
|
||||
const double maxHeightTopBar = 80;
|
||||
const double paddingBottom = 16;
|
||||
final currentHeight = responsiveUtils.getSizeScreenHeight(context);
|
||||
final currentHeight = context.height;
|
||||
double maxHeightForm = currentHeight - maxHeightTopBar - paddingBottom;
|
||||
return maxHeightForm;
|
||||
}
|
||||
|
||||
+2
-1
@@ -70,6 +70,7 @@ class AutoCompleteTagItemWidgetWeb extends StatelessWidget {
|
||||
_imagePaths.icClose,
|
||||
fit: BoxFit.fill,
|
||||
),
|
||||
padding: EdgeInsets.zero,
|
||||
labelStyle: AutoCompleteTagItemWebStyle.labelTextStyle,
|
||||
backgroundColor: _getTagBackgroundColor(),
|
||||
shape: RoundedRectangleBorder(
|
||||
@@ -111,7 +112,7 @@ class AutoCompleteTagItemWidgetWeb extends StatelessWidget {
|
||||
if (isLatestTagFocused && isLatestEmail) {
|
||||
return const BorderSide(width: 1, color: AppColor.primaryColor);
|
||||
} else {
|
||||
return BorderSide.none;
|
||||
return const BorderSide(width: 0, color: AppColor.colorEmailAddressTag);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+2
@@ -1,5 +1,6 @@
|
||||
import 'dart:async';
|
||||
import 'dart:math';
|
||||
|
||||
import 'package:collection/collection.dart';
|
||||
import 'package:core/presentation/extensions/color_extension.dart';
|
||||
import 'package:core/presentation/utils/responsive_utils.dart';
|
||||
@@ -111,6 +112,7 @@ class _TextFieldAutocompleteEmailAddressWebState extends State<TextFieldAutocomp
|
||||
focusNodeKeyboard: widget.focusNode,
|
||||
keyboardType: TextInputType.emailAddress,
|
||||
textInputAction: TextInputAction.done,
|
||||
cursorColor: TextFieldAutoCompleteEmailAddressWebStyles.cursorColor,
|
||||
debounceDuration: TextFieldAutoCompleteEmailAddressWebStyles.debounceDuration,
|
||||
inputDecoration: InputDecoration(
|
||||
filled: true,
|
||||
|
||||
Reference in New Issue
Block a user