Closed vedartm closed 3 years ago
When some prefixText is added, textfield area is smaller by the width of prefixText data. In the below example, the textfield is 1 character smaller (because of the dollar symbol prefix text).
prefixText
AutoSizeTextField( fullwidth: false, controller: _priceController, onChanged: _cubit.priceChanged, keyboardType: TextInputType.number, decoration: InputDecoration( prefixText: '\$', contentPadding: EdgeInsets.zero, ), )
When some
prefixText
is added, textfield area is smaller by the width of prefixText data. In the below example, the textfield is 1 character smaller (because of the dollar symbol prefix text).