Blame view

lib/common/dialogs/show_dialog.dart 986 Bytes
99571208   liangchengyou   feat:弹窗
1
2
3
4
5
  import 'package:flutter/material.dart';
  import 'package:wow_english/route/route.dart';
  
  import 'customer_dialog.dart';
  
210d15e0   Key   fixed: 账户注销接口
6
7
  void showOneActionDialog(String title, String ensureTitle, String content, GestureTapCallback ensureTap,
      {bool? barrierDismissible}) {
99571208   liangchengyou   feat:弹窗
8
9
    showDialog<CustomerOneActionDialog>(
        context: AppRouter.context,
210d15e0   Key   fixed: 账户注销接口
10
11
        barrierDismissible: barrierDismissible ?? true,
        builder: (BuildContext context) {
99571208   liangchengyou   feat:弹窗
12
13
14
15
          return CustomerOneActionDialog(title, ensureTitle, content, ensureTap);
        });
  }
  
3840b7fe   liangchengyou   feat:更新设置页面
16
17
18
  void showTwoActionDialog(String title, String leftTitle, String rightTitle, String content,
      {GestureTapCallback? leftTap,
        GestureTapCallback? rightTap,bool? barrierDismissible}) {
99571208   liangchengyou   feat:弹窗
19
20
    showDialog<CustomerTwoActionDialog>(
        context: AppRouter.context,
68dd7ba8   liangchengyou   feat:首页主题颜色+已知问题修改
21
        barrierDismissible: barrierDismissible ?? true,
210d15e0   Key   fixed: 账户注销接口
22
23
        builder: (BuildContext context) {
          return CustomerTwoActionDialog(title, leftTitle, rightTitle, content, leftTap, rightTap);
99571208   liangchengyou   feat:弹窗
24
        });
210d15e0   Key   fixed: 账户注销接口
25
  }