zoukankan      html  css  js  c++  java
  • Flutter组件 底部ios弹框

    需要写在事件中

               onTap: () {
                    showCupertinoModalPopup(
                      context: context,
                      builder: (context) {
                        return CupertinoActionSheet(
    //                      title: Text('', style: TextStyle(fontSize: AppConfig.screenUtil(val: 35, val2: 20)),), //标题
    //                      message: Text('麻烦抽出几分钟对该软件进行评价,谢谢!'), //提示内容
                          actions: <Widget>[ //操作按钮集合
                            CupertinoActionSheetAction(
                              onPressed:  () {
                                NavigatorUtil.pushNamedWithParam(
                                    context, Routes.addressedit, val['id'])
                                    .then((v) {
                                  resetData();
                                });
                              },
                              child: Text('编辑', style: TextStyle(fontSize: AppConfig.screenUtil(val: 30, val2: 20)),),
                            ),
                            CupertinoActionSheetAction(
                              onPressed:  () {
                                AppUtils.delDataById(val['id'], "address", () {
                                  resetData();
                                });
                              },
                              child: Text('删除', style: TextStyle(fontSize: AppConfig.screenUtil(val: 30, val2: 20)),),
                            ),
                          ],
                          cancelButton: CupertinoActionSheetAction( //取消按钮
                            onPressed: () {
                              Navigator.pop(context);
                            },
                            child: Text('取消', style: TextStyle(fontSize: AppConfig.screenUtil(val: 30, val2: 20)),),
                          ),
                        );
                      },
                    );

  • 相关阅读:
    toj 2975 Encription
    poj 1797 Heavy Transportation
    toj 2971 Rotating Numbers
    zoj 2281 Way to Freedom
    toj 2483 Nasty Hacks
    toj 2972 MOVING DHAKA
    toj 2696 Collecting Beepers
    toj 2970 Hackle Number
    toj 2485 Card Tric
    js页面定位,相关几个属性
  • 原文地址:https://www.cnblogs.com/lude1994/p/15195287.html
Copyright © 2011-2022 走看看