ByteNote LogoByteNote

Navigation

  • Blog
  • 工具

    © 2025 ByteNote. All rights reserved.

    Flutter CupertinoAlertDialog

    Dec 1, 20224 min read
    RaisedButton(
      child: Text('切换'),
      onPressed: () {
        showCupertinoDialog(
            context: context,
            builder: (context) {
              return CupertinoAlertDialog(
                title: Text('提示'),
                content: Text('确认删除吗?'),
                actions: <Widget>[
                  CupertinoDialogAction(child: Text('取消'),onPressed: (){},),
                  CupertinoDialogAction(child: Text('确认'),onPressed: (){},),
                ],
              );
            });
      },
    )
    
    

    CupertinoAlertDialog.md

    相关文章

    Go context.CancelFunc 的代码使用案例

    该Go代码示例展示了如何使用context.CancelFunc来控制后台任务worker的启动和停止,通过context.WithCancel创建上下文并调用cancel函数来终止任务。

    Go 操作 sqlite

    该Go代码示例展示了如何使用gorm库操作SQLite数据库,包括数据库的创建、迁移和关闭,以及数据库文件的删除。

    什么是Large Contentful Paint (LCP)?

    LCP是衡量网页加载速度的关键性能指标,特指页面上最大可见内容元素加载时间,小于2.5秒为优秀,是Google Page Experience度量的重要组成部分。

    什么是SELinux?

    SELinux是一种增强的Linux操作系统,通过基于安全策略的访问控制、强制访问控制、多级安全和支持日志审计等特性,提供强大的安全保护机制,有效防止恶意程序攻击。

    Go seek 光标位置 os包

    该内容介绍了Go语言中os包的Seek函数,用于移动文件光标位置,涉及offset和whence参数的定义和用法。