|
|
@@ -6,16 +6,16 @@ import 'package:flutter/material.dart';
|
|
|
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
|
|
import 'package:flutter_smart_dialog/flutter_smart_dialog.dart';
|
|
|
|
|
|
-void showCommonPopup(
|
|
|
- Offset offset, Alignment alignment, List<Widget> childWidget,
|
|
|
- {String? tag, BuildContext? context}) {
|
|
|
+void showCommonPopup(BuildContext? targetContext, Offset offset,
|
|
|
+ Alignment alignment, List<Widget> childWidget,
|
|
|
+ {String? tag, BuildContext? bindWidget}) {
|
|
|
SmartDialog.showAttach(
|
|
|
- targetContext: null,
|
|
|
+ targetContext: targetContext,
|
|
|
targetBuilder: (_, __) => offset,
|
|
|
animationType: SmartAnimationType.fade,
|
|
|
clickMaskDismiss: true,
|
|
|
alignment: alignment,
|
|
|
- bindWidget: context,
|
|
|
+ bindWidget: bindWidget,
|
|
|
tag: tag,
|
|
|
maskColor: Colors.transparent,
|
|
|
builder: (_) {
|