ByteNote LogoByteNote

Navigation

  • Blog
  • 工具

    © 2025 ByteNote. All rights reserved.

    Flutter OutlinedButton 设置圆角样式

    Jun 15, 20223 min read

    Flutter OutlinedButton 设置圆角样式

    OutlinedButton(
      child: Text('Woolha.com'),
      style: OutlinedButton.styleFrom(
        primary: Colors.white,
        backgroundColor: Colors.teal,
        shape: const RoundedRectangleBorder(borderRadius: BorderRadius.all(Radius.circular(10))),
      ),
    )
    

    相关文章

    Node Puppeteer 使用环境变量来切换 Puppeteer 的配置

    使用环境变量通过命令行或代码中的 `process.env` 来动态切换 Puppeteer 的配置。

    JS 生产指定长度的随机数

    JS 通过 `Array.from` 和 `Math.floor(Math.random() * 400)` 生成指定长度(24)的随机数数组。

    使用纯JavaScript读取PDF文件的简单方法是什么?

    使用纯JavaScript读取PDF文件的方法包括通过File API获取二进制数据,了解PDF结构并实现解析器,以及可能的渲染步骤,但建议使用成熟的PDF库以简化过程。

    puppeteer 确定页面跳转完成

    Puppeteer使用`networkidle0`选项确保页面跳转在网络连接停止至少500毫秒后完成。

    Go 为什么给翻译成围棋了?

    为了避免混淆和利用围棋的普及度,编程语言 Go 通常被翻译成围棋。