TF-3759 Update style popup context menu for composer view

Signed-off-by: dab246 <tdvu@linagora.com>
This commit is contained in:
dab246
2025-06-13 16:59:24 +07:00
committed by Dat H. Pham
parent 3e4ff52cd3
commit b90d84741a
11 changed files with 225 additions and 139 deletions
+30 -25
View File
@@ -40,32 +40,37 @@ class PopupItemWidget extends StatelessWidget {
onTap: onCallbackAction,
child: Container(
height: PopupItemWidgetStyle.height,
constraints: const BoxConstraints(minWidth: PopupItemWidgetStyle.minWidth),
constraints: const BoxConstraints(
maxWidth: PopupItemWidgetStyle.maxWidth,
),
padding: padding,
child: Row(children: [
SvgPicture.asset(
iconAction,
width: iconSize ?? PopupItemWidgetStyle.iconSize,
height: iconSize ?? PopupItemWidgetStyle.iconSize,
fit: BoxFit.fill,
colorFilter: colorIcon?.asFilter()
),
SizedBox(width: iconSpace ?? PopupItemWidgetStyle.space),
Expanded(child: Text(
nameAction,
style: styleName ?? PopupItemWidgetStyle.labelTextStyle
)),
if (isSelected == true && selectedIcon != null)
Padding(
padding: PopupItemWidgetStyle.iconSelectedPadding,
child: SvgPicture.asset(
selectedIcon!,
width: PopupItemWidgetStyle.selectedIconSize,
height: PopupItemWidgetStyle.selectedIconSize,
fit: BoxFit.fill
),
)
]),
child: Row(
mainAxisSize: MainAxisSize.min,
children: [
SvgPicture.asset(
iconAction,
width: iconSize ?? PopupItemWidgetStyle.iconSize,
height: iconSize ?? PopupItemWidgetStyle.iconSize,
fit: BoxFit.fill,
colorFilter: colorIcon?.asFilter()
),
SizedBox(width: iconSpace ?? PopupItemWidgetStyle.space),
Expanded(child: Text(
nameAction,
style: styleName ?? PopupItemWidgetStyle.labelTextStyle
)),
if (isSelected == true && selectedIcon != null)
Padding(
padding: PopupItemWidgetStyle.iconSelectedPadding,
child: SvgPicture.asset(
selectedIcon!,
width: PopupItemWidgetStyle.selectedIconSize,
height: PopupItemWidgetStyle.selectedIconSize,
fit: BoxFit.fill,
),
)
],
),
)
),
),