Flutter显示IOS底部ActionSheet

 

Flutter显示IOS底部ActionSheet_第1张图片

showCupertinoModalPopup(
        context: context,
        builder: (context) {
          return CupertinoActionSheet(
            actions: [
              CupertinoActionSheetAction(
              child: Text('保存图片'),
              onPressed: () {

              },
              isDefaultAction: true,
              ),
            ],
            cancelButton: CupertinoActionSheetAction(
              child: Text('取消'),
              onPressed: () {
                Navigator.of(context).pop();
              },
            ),
          );
        }

 

你可能感兴趣的:(Flutter显示IOS底部ActionSheet)