zoukankan      html  css  js  c++  java
  • flutter TextField 外边框颜色

    Container(
                                  child: TextField(
                                    controller: activeCodeEditer,
                                    keyboardType: TextInputType.number,
                                    focusNode: _nodeText3,
    //                                style: TextStyle(fontSize: 14, color: Color(0xff9e51ff)),
                                    maxLength: 8,
                                    decoration: InputDecoration(
                                      hintText: '请输入激活码',
                                      counterText: "",
    //                                icon: Image.asset('assets/images/icons-login-mobile.png', height: 25),
                                      hintStyle: TextStyle(color: Color(0xff9e51ff)),
                                      contentPadding: EdgeInsets.only(left: 10,top: ScreenUtil().setHeight(10)),
                                      border: OutlineInputBorder(
                                          borderRadius: BorderRadius.circular(5.0),
                                          borderSide: BorderSide(color: Color(0xff9e51ff),), //这个不生效
                                      ),
                                      enabledBorder: OutlineInputBorder( //未选中时候的颜色
                                        borderRadius: BorderRadius.circular(5.0),
                                        borderSide: BorderSide(color: Color(0xff9e51ff),),
                                      ),
                                      focusedBorder: OutlineInputBorder( //选中时外边框颜色
                                        borderRadius: BorderRadius.circular(5.0),
                                        borderSide: BorderSide(color: Color(0xff9e51ff),),
                                      ),
    //                                  focusedBorder: UnderlineInputBorder(  //选中时下边框颜色 
    //                                    borderSide: BorderSide(color: Colors.red),
    //                                  ),
                                    ),
                                  ),
                                   ScreenUtil().setHeight(278),
                                  height: ScreenUtil().setHeight(67),
                                )
  • 相关阅读:
    【测试方法】之模拟cpu/mem/io使用率
    【数据库原理】之clickhouse学习笔记
    python每日一练
    栈的压入、弹出序列
    包含min函数的栈
    顺时针打印矩阵
    二叉树的镜像
    树的子结构*
    调整数组顺序使奇数位于偶数前面
    在O(1)时间内删除链表节点
  • 原文地址:https://www.cnblogs.com/wupeng88/p/12525335.html
Copyright © 2011-2022 走看看