TF-1487 Apply linter rule
This commit is contained in:
+3
-3
@@ -6,7 +6,7 @@ import 'package:tmail_ui_user/features/mailbox_dashboard/presentation/widgets/ad
|
||||
import 'package:tmail_ui_user/main/localizations/app_localizations.dart';
|
||||
|
||||
Future<void> showAdvancedSearchFilterBottomSheet(BuildContext context) async {
|
||||
final ImagePaths _imagePaths = Get.find<ImagePaths>();
|
||||
final ImagePaths imagePaths = Get.find<ImagePaths>();
|
||||
|
||||
await FullScreenActionSheetBuilder(
|
||||
context: context,
|
||||
@@ -19,8 +19,8 @@ Future<void> showAdvancedSearchFilterBottomSheet(BuildContext context) async {
|
||||
cancelWidget: Padding(
|
||||
padding: const EdgeInsets.only(right: 16),
|
||||
child: SvgPicture.asset(
|
||||
_imagePaths.icCloseAdvancedSearch,
|
||||
color: AppColor.colorHintSearchBar,
|
||||
imagePaths.icCloseAdvancedSearch,
|
||||
colorFilter: AppColor.colorHintSearchBar.asFilter(),
|
||||
width: 24,
|
||||
height: 24,
|
||||
),
|
||||
|
||||
+6
-6
@@ -18,15 +18,15 @@ class AdvancedSearchFilterFormBottomView extends GetWidget<AdvancedFilterControl
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final _responsiveUtils = Get.find<ResponsiveUtils>();
|
||||
final responsiveUtils = Get.find<ResponsiveUtils>();
|
||||
|
||||
return Padding(
|
||||
padding: EdgeInsets.only(
|
||||
top: _isMobileAndLandscapeTablet(context, _responsiveUtils) ? 8 : 20),
|
||||
top: _isMobileAndLandscapeTablet(context, responsiveUtils) ? 8 : 20),
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
if (_isMobileAndLandscapeTablet(context, _responsiveUtils))
|
||||
if (_isMobileAndLandscapeTablet(context, responsiveUtils))
|
||||
...[
|
||||
_buildCheckboxHasAttachment(
|
||||
context,
|
||||
@@ -35,17 +35,17 @@ class AdvancedSearchFilterFormBottomView extends GetWidget<AdvancedFilterControl
|
||||
const SizedBox(height: 24)
|
||||
],
|
||||
Row(
|
||||
mainAxisAlignment: _isMobileAndLandscapeTablet(context, _responsiveUtils)
|
||||
mainAxisAlignment: _isMobileAndLandscapeTablet(context, responsiveUtils)
|
||||
? MainAxisAlignment.spaceEvenly
|
||||
: MainAxisAlignment.center,
|
||||
crossAxisAlignment: CrossAxisAlignment.center,
|
||||
children: [
|
||||
if (!_isMobileAndLandscapeTablet(context, _responsiveUtils))
|
||||
if (!_isMobileAndLandscapeTablet(context, responsiveUtils))
|
||||
Expanded(child: _buildCheckboxHasAttachment(
|
||||
context,
|
||||
currentFocusNode: focusManager?.attachmentCheckboxFocusNode,
|
||||
nextFocusNode: focusManager?.searchButtonFocusNode)),
|
||||
..._buildListButton(context, _responsiveUtils),
|
||||
..._buildListButton(context, responsiveUtils),
|
||||
],
|
||||
),
|
||||
],
|
||||
|
||||
+2
-2
@@ -42,7 +42,7 @@ Widget _buildDropDownButton<T>({
|
||||
DateTime? startDate,
|
||||
DateTime? endDate
|
||||
}) {
|
||||
final ImagePaths _imagePaths = Get.find<ImagePaths>();
|
||||
final ImagePaths imagePaths = Get.find<ImagePaths>();
|
||||
|
||||
return DropdownButtonHideUnderline(
|
||||
child: DropdownButton2<T>(
|
||||
@@ -68,7 +68,7 @@ Widget _buildDropDownButton<T>({
|
||||
.toList(),
|
||||
value: itemSelected,
|
||||
onChanged: onChanged,
|
||||
icon: SvgPicture.asset(_imagePaths.icDropDown),
|
||||
icon: SvgPicture.asset(imagePaths.icDropDown),
|
||||
buttonPadding: const EdgeInsets.symmetric(horizontal: 12),
|
||||
buttonDecoration: BoxDecoration(
|
||||
borderRadius: BorderRadius.circular(10),
|
||||
|
||||
+3
-3
@@ -28,9 +28,9 @@ class IconOpenAdvancedSearchWidget extends StatelessWidget {
|
||||
minSize: 40,
|
||||
iconPadding: const EdgeInsets.only(right: 2),
|
||||
icon: SvgPicture.asset(_imagePaths.icFilterAdvanced,
|
||||
color: searchController.isAdvancedSearchViewOpen.isTrue || searchController.advancedSearchIsActivated.isTrue
|
||||
? AppColor.colorFilterMessageEnabled
|
||||
: AppColor.colorFilterMessageDisabled,
|
||||
colorFilter: searchController.isAdvancedSearchViewOpen.isTrue || searchController.advancedSearchIsActivated.isTrue
|
||||
? AppColor.colorFilterMessageEnabled.asFilter()
|
||||
: AppColor.colorFilterMessageDisabled.asFilter(),
|
||||
width: 16,
|
||||
height: 16),
|
||||
onTap: () {
|
||||
|
||||
Reference in New Issue
Block a user