ByteNote LogoByteNote

Navigation

  • Blog
  • 工具

    © 2025 ByteNote. All rights reserved.

    解决 Flutter type 'Null' is not a subtype of type 'bool'

    Oct 9, 20223 min read
     if (_settingsStorage.get('firstRun') ?? true) {
          return _settingsStorage.get('firstRun') ?? true;
        }
    

    由于null 在dart 不能直接作为 bool的隐式类型 ,需要对对null 类型进行临时转换

    相关文章

    Next.js 自动化部署到VPS的本地Shell 脚本

    该脚本实现了Next.js项目的自动化部署,包括本地提交、推送代码到远程仓库,以及通过SSH远程执行脚本更新和重启应用。

    LibreSSL SSL_connect SSL_ERROR_SYSCALL in connection to 127

    LibreSSL在连接到本地主机时遇到SSL_ERROR_SYSCALL错误,通过升级Homebrew及相关软件后问题解决。

    Flutter ColorScheme.fromSeed 的使用详解

    `ColorScheme.fromSeed` 是一个根据给定主要颜色生成新颜色方案的辅助函数,用于微调并应用到应用程序主题中。

    Chrome Devtools Pause on caught exceptions

    The Chrome Devtools feature allows users to pause execution on caught exceptions for debugging purposes.

    Go 生成 UUID

    该内容描述了如何在Go语言中通过安装依赖`github.com/google/uuid`并使用`uuid.New()`方法生成UUID,其格式为标准UUID字符串。