Open rfm4j opened 3 years ago
Consider the following piece of code:
AutoSizeTextField( controller: this.testController, expands: false, maxLines: 1, fullwidth: false, textAlign: TextAlign.left, style: TextStyle( fontFamily: 'RobotoMono', fontSize: 17, ), decoration: InputDecoration( contentPadding: EdgeInsets.all(0), isDense: true, isCollapsed: false, border: InputBorder.none, focusedBorder: InputBorder.none, enabledBorder: InputBorder.none, errorBorder: InputBorder.none, disabledBorder: InputBorder.none, suffixText: "sufitText ", suffixStyle: TextStyle( fontFamily: 'RobotoMono', //fontWeight: FontWeight.bold, fontSize: 13, ), ),),
This simple example will result in some strange whitespaces between the end of the text and the suffix text:
However, when removing this suffixStyle, the problem disappears:
AutoSizeTextField( controller: this.testController, expands: false, maxLines: 1, fullwidth: false, textAlign: TextAlign.left, style: TextStyle( fontFamily: 'RobotoMono', fontSize: 17, ), decoration: InputDecoration( contentPadding: EdgeInsets.all(0), isDense: true, isCollapsed: false, border: InputBorder.none, focusedBorder: InputBorder.none, enabledBorder: InputBorder.none, errorBorder: InputBorder.none, disabledBorder: InputBorder.none, suffixText: "sufitText ", ),),
Consider the following piece of code:
This simple example will result in some strange whitespaces between the end of the text and the suffix text:
However, when removing this suffixStyle, the problem disappears: