2022年12月12日星期一

add Done button over numeric keyboard on iOS App

 TextField(

keyboardType: const TextInputType.numberWithOptions(
signed: true,
decimal: true),
maxLength: 10,
inputFormatters: [FilteringTextInputFormatter.digitsOnly],
),



2022年12月4日星期日

text min Lines

 Adding minLines to Text is currently an open feature request. You can track it here

For now, a suggested workaround is to use:

str = 'example'; 

Text(
  str + '\n',
  maxLines: 2,
)