Flutter 调整输入框的文本显示位置以及输入框的背景色

decoration: InputDecoration(
                  contentPadding: EdgeInsets.only(left: 20,top: 2),
                  fillColor: kBlackColor5,
                  filled: true,
border: OutlineInputBorder(
                      borderRadius: BorderRadius.circular(4),
                      borderSide: BorderSide.none),),

 

你可能感兴趣的:(Flutter)