ByteNote LogoByteNote

Navigation

  • Blog
  • 工具

    © 2025 ByteNote. All rights reserved.

    Flutter 判断当前操作系统平台

    Jun 17, 20224 min read
    import 'dart:io' show Platform;
    
    if (Platform.isAndroid) {
      // Android-specific code
    } else if (Platform.isIOS) {
      // iOS-specific code
    }
    

    All options include:

    Platform.isAndroid
    Platform.isFuchsia
    Platform.isIOS
    Platform.isLinux
    Platform.isMacOS
    Platform.isWindows
    

    相关文章

    VMware 最新系列产品的其他激活码

    VMware 最新系列产品包括 Workstation 17、Fusion 13 Pro 和 Workstation Player 17 的多个激活码,分为个人和批量许可证。

    借助AI来自动生成和翻译字幕

    N46Whisper 是一个基于 Google Colab 的应用,用于提高日语视频字幕制作效率,通过 AI 语音识别和 ChatGPT API 自动翻译,最终生成可直接使用的字幕文件。

    Vue3 样式scoped 的原理

    Vue3 中 `scoped` 样式通过给组件根元素添加唯一属性/类名 `data-v-[hash]` 来限定样式作用范围,防止样式冲突并增强封装性。

    Github Actions 每天 20:00-23:00 中间 间隔 20分钟的 例子

    GitHub Actions使用cron表达式`0/20 20-23 * * *`在每天晚上8点到11点之间每隔20分钟执行一次任务。

    Vercel Edge Function 反向代理的代码示范

    该代码示例展示了一个Vercel Edge Function,用于通过传入的URL进行反向代理,成功时返回状态码和文本响应,失败时返回500错误和错误消息,并提供了部署步骤和测试方法。