ByteNote LogoByteNote

Navigation

  • Blog
  • 工具

    © 2025 ByteNote. All rights reserved.

    Flutter change TextField border color on focus

    Jan 19, 20234 min read
    TextField(
      textAlign: TextAlign.center,
      decoration: InputDecoration(
        hintText: "API Key",
        border: OutlineInputBorder(
          borderRadius: BorderRadius.circular(8),
          borderSide: BorderSide(
            color: Colors.grey,
          ),
        ),
        focusedBorder: OutlineInputBorder(
          borderRadius: BorderRadius.circular(8),
          borderSide: const BorderSide(
            color: Colors.grey, width: 2.0),
          // borderRadius: BorderRadius.circular(25.0),
        ),
      ),
    ),
    

    相关文章

    "foo" 和 "bar" 是在计算机科学和编程中常用的元变量(metavariables)

    元变量如"foo"和"bar"常作为程序中的占位符,用于测试、示例等,无需特定含义。

    N1 盒子的基本设备信息

    N1盒子(NanoPi NEO)是一款小型、多接口的微型电脑,配备Allwinner H3四核处理器,支持多种操作系统和外部设备连接。

    QQ zone js publish

    该脚本使用Puppeteer和Cheerio库自动化登录QQ空间并发布带有图片的说说。

    TS 类型声明文件的一般写法

    TS 类型声明文件以 `.d.ts` 结尾,定义如 `math.d.ts` 中所示,用于描述 JavaScript 库的类型信息,并在 `app.ts` 中通过 `import` 使用这些类型定义的功能。

    JS DOM 如何查找DOM , 多种方法

    JS DOM 提供了多种查找 DOM 元素的方法,包括通过 ID、class、标签名、CSS 选择器、属性、父元素和子元素等。