TF-3763 Update style for Has attachment checkbox in advanced search view
Signed-off-by: dab246 <tdvu@linagora.com>
This commit is contained in:
+6
-7
@@ -1,5 +1,5 @@
|
||||
import 'package:core/presentation/extensions/color_extension.dart';
|
||||
import 'package:core/presentation/views/checkbox/labeled_checkbox.dart';
|
||||
import 'package:core/presentation/views/checkbox/default_labeled_checkbox.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:tmail_ui_user/features/base/isolate/background_isolate_binary_messenger/background_isolate_binary_messenger_mobile.dart';
|
||||
import 'package:tmail_ui_user/main/localizations/app_localizations.dart';
|
||||
@@ -8,16 +8,16 @@ typedef OnChangedHasAttachment = void Function(bool? value);
|
||||
|
||||
class CheckBoxHasAttachmentWidget extends StatelessWidget {
|
||||
final bool hasAttachmentValue;
|
||||
final FocusNode? currentFocusNode;
|
||||
final FocusNode currentFocusNode;
|
||||
final FocusNode? nextFocusNode;
|
||||
final OnChangedHasAttachment? onChanged;
|
||||
final OnChangedHasAttachment onChanged;
|
||||
|
||||
const CheckBoxHasAttachmentWidget({
|
||||
super.key,
|
||||
required this.hasAttachmentValue,
|
||||
this.currentFocusNode,
|
||||
required this.currentFocusNode,
|
||||
required this.onChanged,
|
||||
this.nextFocusNode,
|
||||
this.onChanged,
|
||||
});
|
||||
|
||||
@override
|
||||
@@ -29,10 +29,9 @@ class CheckBoxHasAttachmentWidget extends StatelessWidget {
|
||||
nextFocusNode?.requestFocus();
|
||||
}
|
||||
},
|
||||
child: LabeledCheckbox(
|
||||
child: DefaultLabeledCheckbox(
|
||||
label: AppLocalizations.of(context).hasAttachment,
|
||||
focusNode: currentFocusNode,
|
||||
contentPadding: EdgeInsets.zero,
|
||||
value: hasAttachmentValue,
|
||||
activeColor: AppColor.primaryColor,
|
||||
onChanged: onChanged,
|
||||
|
||||
Reference in New Issue
Block a user