TF-537 Add presentation layer for delete a identity

This commit is contained in:
dab246
2022-05-05 15:08:14 +07:00
committed by Dat H. Pham
parent c40be824ff
commit 087a037de5
12 changed files with 342 additions and 35 deletions
@@ -0,0 +1,30 @@
import 'package:flutter/material.dart';
import 'package:flutter_svg/flutter_svg.dart';
mixin PopupMenuWidgetMixin {
Widget popupItem(String iconAction, String nameAction, {
Color? colorIcon,
TextStyle? styleName,
Function? onCallbackAction
}) {
return InkWell(
onTap: () => onCallbackAction?.call(),
child: Padding(
padding: const EdgeInsets.symmetric(horizontal: 20, vertical: 16),
child: SizedBox(
child: Row(children: [
SvgPicture.asset(iconAction, width: 20, height: 20, fit: BoxFit.fill, color: colorIcon),
const SizedBox(width: 12),
Expanded(child: Text(nameAction,
style: styleName ?? const TextStyle(
fontSize: 17,
fontWeight: FontWeight.normal,
color: Colors.black))),
])
),
)
);
}
}