Apply new design for recover deleted emails
Signed-off-by: dab246 <tdvu@linagora.com>
This commit is contained in:
@@ -245,6 +245,7 @@ extension AppColor on Color {
|
||||
static const blue400 = Color(0xFF80BDFF);
|
||||
static const blue900 = Color(0xFF0F76E7);
|
||||
static const m3Tertiary = Color(0xFF8C9CAF);
|
||||
static const m3Tertiary60 = Color(0xFFD8E1EB);
|
||||
static const m3Neutral70 = Color(0xFFAEAAAE);
|
||||
static const m3Neutral90 = Color(0xFFE6E1E5);
|
||||
static const grayBackgroundColor = Color(0xFFF3F6F9);
|
||||
|
||||
@@ -287,7 +287,7 @@ class ThemeUtils {
|
||||
static const TextStyle textStyleM3BodyLarge = TextStyle(
|
||||
fontFamily: ConstantsUI.fontApp,
|
||||
fontWeight: FontWeight.w500,
|
||||
letterSpacing: 00.15,
|
||||
letterSpacing: -0.15,
|
||||
fontSize: 17,
|
||||
height: 24 / 17,
|
||||
color: AppColor.m3SurfaceBackground,
|
||||
|
||||
@@ -18,6 +18,7 @@ class CustomIconLabeledCheckbox extends LabeledCheckbox {
|
||||
required this.focusNode,
|
||||
super.value,
|
||||
super.gap = 16.0,
|
||||
super.padding,
|
||||
});
|
||||
|
||||
@override
|
||||
|
||||
@@ -11,6 +11,7 @@ class LabeledCheckbox extends StatelessWidget {
|
||||
this.value = false,
|
||||
this.gap = 4.0,
|
||||
this.textStyle,
|
||||
this.padding,
|
||||
}) : super(key: key);
|
||||
|
||||
final String label;
|
||||
@@ -18,10 +19,11 @@ class LabeledCheckbox extends StatelessWidget {
|
||||
final OnChangedAction onChanged;
|
||||
final double gap;
|
||||
final TextStyle? textStyle;
|
||||
final EdgeInsetsGeometry? padding;
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return InkWell(
|
||||
final bodyWidget = InkWell(
|
||||
onTap: () => onChanged(!(value)),
|
||||
child: Row(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
@@ -32,6 +34,12 @@ class LabeledCheckbox extends StatelessWidget {
|
||||
],
|
||||
),
|
||||
);
|
||||
|
||||
if (padding != null) {
|
||||
return Padding(padding: padding!, child: bodyWidget);
|
||||
} else {
|
||||
return bodyWidget;
|
||||
}
|
||||
}
|
||||
|
||||
Widget get buildCheckboxWidget => Checkbox(
|
||||
|
||||
Reference in New Issue
Block a user