码农知识堂 - 1000bd
  •   Python
  •   PHP
  •   JS/TS
  •   JAVA
  •   C/C++
  •   C#
  •   GO
  •   Kotlin
  •   Swift
  • Flutter TextField示例


    带边框效果

    TextField(
      controller: _passWordController,
      autofocus: true,
      obscureText: true,
      maxLength: 20,
      decoration: InputDecoration(
        contentPadding: const EdgeInsets.all( 10),
        label: const Text(Strings.password),
        hintText: Strings.inputPassword,
        border: OutlineInputBorder(
          borderRadius: BorderRadius.circular(5),//圆角
          borderSide: BorderSide.merge( //边框宽度
            const BorderSide(width: 1, color: Colors.grey),
            const BorderSide(width: 1, color: Colors.grey),
          ),
        ),
      ),
    )
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 9
    • 10
    • 11
    • 12
    • 13
    • 14
    • 15
    • 16
    • 17
    • 18

    在这里插入图片描述
    在这里插入图片描述

    不带边框效果

    TextField(
      controller: _userNameController,
      autofocus: true,
      decoration: InputDecoration(
        prefixIcon: const Icon(Icons.account_circle_outlined
    • 1
    • 2
    • 3
    • 4
  • 相关阅读:
    猿创征文 | 组件的定义及复用性,局部组件和全局组件(2)
    sass、vue(v-model、v-text、v-html、v-for、v-if、v-show、v-on、修饰符)
    JS 数据结构:链表
    >>数据管理:DAMA简介
    深入理解Linux网络笔记(五):深度理解本机网络IO
    如何使用 Node.js 发送电子邮件全解和相关工具推荐
    【Algorithm】GPLT L3-020 至多删三个字符
    第一篇】 - XiaoZaiMultiAutoAiDevices框架开源啦
    C++基于Qt中QOpenGLWidget模块实现的画图板源码+可执行文件
    React-hooks
  • 原文地址:https://blog.csdn.net/xiaopihair123/article/details/125601984
  • 最新文章
  • C# 内存安全性的重大演进:重新定义 unsafe 关键字
    [MAF的Agent管道详解-05]对话历史的持久化和输入输出的增强
    一行代码干翻 Java 反射?EggG 流式反射调用让反射优雅到不可思议
    vibe coding(二)Where you go:一个微型 windows 桌面覆盖工具
    [送码] 用 AI Coding 做了一个 App,谈谈 AI Coding 的真实体验
    面试官:说一下 Agent 的常见范式,如何选型?
    CAD子系统,是自研还是外包?
    polygon出题教程
    Manim物理模拟:别自己写欧拉了!
    AI 学习笔记:Agent 的应用演示
  • 热门文章
  • 十款代码表白小特效 一个比一个浪漫 赶紧收藏起来吧!!!
    奉劝各位学弟学妹们,该打造你的技术影响力了!
    五年了,我在 CSDN 的两个一百万。
    Java俄罗斯方块,老程序员花了一个周末,连接中学年代!
    面试官都震惊,你这网络基础可以啊!
    你真的会用百度吗?我不信 — 那些不为人知的搜索引擎语法
    心情不好的时候,用 Python 画棵樱花树送给自己吧
    通宵一晚做出来的一款类似CS的第一人称射击游戏Demo!原来做游戏也不是很难,连憨憨学妹都学会了!
    13 万字 C 语言从入门到精通保姆级教程2021 年版
    10行代码集2000张美女图,Python爬虫120例,再上征途
小工具 小游戏
Copyright © 2022 侵权请联系2656653265@qq.com    京ICP备2022015340号-1

京公网安备 11010502049817号