zoukankan      html  css  js  c++  java
  • 02-10 flutter hintText和光标不对齐

    Expanded(
                          child: Container(
                            margin: EdgeInsets.fromLTRB(10, 5, 10, 5),
                            padding: EdgeInsets.only(left: 5),
                            decoration: BoxDecoration(
                                color: Colors.white,
                                borderRadius: BorderRadius.circular(4)),
                             double.infinity,
                            child: TextField(
                              controller: shoCodeTextField,
                              toolbarOptions: ToolbarOptions(),
                              maxLines: 1,
    
                              decoration: InputDecoration(
                                fillColor: Colors.red,
                                hintText: "请输入门店号",
                                hintStyle: TextStyle(
                                  fontSize: 12 ,
                                  height: 1.8,
                                  textBaseline: TextBaseline.alphabetic, //用于提示文字对齐
                                ),
                                contentPadding: EdgeInsets.all(0),
                                border: OutlineInputBorder(
                                  borderSide: BorderSide.none
                                )
                              ),
                              style: TextStyle(
                                fontSize: 12 ,
                                textBaseline: TextBaseline.alphabetic, //用于提示文字对齐
                              ),
    
    
                            ),
                          ),
                        ),
    
    child: CupertinoTextField(
        controller: telephoneController,
        keyboardType: TextInputType.number,
        textInputAction: TextInputAction.done,
      style:  TextStyle(
        fontSize: 12,
        height: 1.2,
        textBaseline: TextBaseline.alphabetic,
      ),
    ),
    
  • 相关阅读:
    2月24日-寒假进度24
    2月23日-寒假学习进度23
    2月22日-寒假学习进度22
    2月21日-寒假学习进度21
    第一周冲刺意见汇总
    团队绩效评估
    团队工作第七天
    团队工作第六天
    团队工作第五天
    团队工作第四天
  • 原文地址:https://www.cnblogs.com/xiaowuqing/p/14028051.html
Copyright © 2011-2022 走看看