ByteNote LogoByteNote

Navigation

  • Blog
  • 工具

    © 2025 ByteNote. All rights reserved.

    Flutter 设置 TextField 焦点:底部颜色

    May 30, 20222 min read
    decoration: InputDecoration(        
      enabledBorder: UnderlineInputBorder(      
        borderSide: BorderSide(color: theColor),   
      ),  
      focusedBorder: UnderlineInputBorder(
        borderSide: BorderSide(color: theColor),
      ),
      border: UnderlineInputBorder(
        borderSide: BorderSide(color: theColor),
      ),
    )
    

    相关文章

    Flutter 设置 TextField 焦点:底部颜色

    在Flutter中,通过设置`InputDecoration`的`enabledBorder`、`focusedBorder`和`border`属性,使用`UnderlineInputBorder`和`BorderSide`来定义`TextField`的底部边框颜色。

    HTML字符实体是什么?如何在代码中添加版权符号?

    HTML字符实体是用于在网页中显示特殊字符的代码,如版权符号可通过插入©实体来显示。

    Swift 如何为类型取别名

    Swift 使用 `typealias` 关键字为类型取别名,以便于代码的可读性和简化复杂类型的使用。

    Nodejs PM2 配置小抄

    PM2是一个Node.js进程管理工具,提供性能监控、自动重启、负载均衡等功能,通过简单的命令行操作即可实现应用的启动、更新、监控和配置管理。

    Flutter 创建可滚动的TextView 视图

    使用Flutter的SingleChildScrollView和Container创建一个高度为200的可滚动TextView。