效果图:
JhPopMenus1.jpg
JhPopMenus3.jpg
JhPopMenus2.jpg
Examples
// 带分割线不带背景
JhPopMenus.showLinePop(context, clickCallback: (index, selText) {
print('选中index: ${index}');
print('选中text: ${selText}');
if (selText == '扫一扫') {
// 延时执行
Future.delayed(Duration(milliseconds: 400), () {
JhQrCodeUtils.scan().then((value) => () {
print(value);
});
});
}
});
JhPopMenus.show(context, clickCallback: (index, selText) {
print('选中index: ${index}');
print('选中text: ${selText}');
});
JhPopMenus.showLinePop(context, isShowBg: true,
clickCallback: (index, selText) {
print('选中index: ${index}');
print('选中text: ${selText}');
});
网友评论