TF-3764 Add Create filter button in context menu

Signed-off-by: dab246 <tdvu@linagora.com>
This commit is contained in:
dab246
2025-06-12 11:48:20 +07:00
committed by Dat H. Pham
parent bab0331fe0
commit 5068a11524
19 changed files with 172 additions and 74 deletions
@@ -1,9 +1,9 @@
import 'package:flutter/material.dart';
class PopupItemWidgetStyle {
static const double iconSize = 24;
static const double iconSize = 20;
static const double selectedIconSize = 16;
static const double space = 12;
static const double space = 16;
static const double height = 48;
static const double minWidth = 256;
@@ -10,6 +10,7 @@ class PopupItemWidget extends StatelessWidget {
final String nameAction;
final Color? colorIcon;
final double? iconSize;
final double? iconSpace;
final TextStyle? styleName;
final bool? isSelected;
final String? selectedIcon;
@@ -25,6 +26,7 @@ class PopupItemWidget extends StatelessWidget {
this.styleName,
this.isSelected,
this.padding,
this.iconSpace,
this.selectedIcon,
this.onCallbackAction,
}) : super(key: key);
@@ -48,7 +50,7 @@ class PopupItemWidget extends StatelessWidget {
fit: BoxFit.fill,
colorFilter: colorIcon?.asFilter()
),
const SizedBox(width: PopupItemWidgetStyle.space),
SizedBox(width: iconSpace ?? PopupItemWidgetStyle.space),
Expanded(child: Text(
nameAction,
style: styleName ?? PopupItemWidgetStyle.labelTextStyle