当尝试选择选择工具栏显示的部分输入文本时,TextFormField Widget 中出现问题,但通常不会从右侧溢出 3.0 像素!!!有趣的部分是它离开屏幕左侧超过 3.0 像素,它没有居中!!代码在下面....
Container(
height:
MediaQuery.of(context).size.height * 0.25,
margin: EdgeInsets.fromLTRB(marginFixed * 0.5,
0.0, marginFixed * 0.5, marginFixed * 0.5),
child: TextField(
enableInteractiveSelection: true,
expands: true,
controller: _noteController,
style: TextStyle(
color: StyleCustom.txtPrimary,
fontSize: 16.0),
maxLines: null,
minLines: null,
decoration: InputDecoration(
hintStyle: TextStyle(
color: StyleCustom.txtSecondry),
border: InputBorder.none,
hintText: 'write your note here',
),
onChanged: (String value) {
debugPrint(value);
},
),
),
Run Code Online (Sandbox Code Playgroud)
I/flutter ( 5019): ??? EXCEPTION CAUGHT BY RENDERING LIBRARY ??????????????????????????????????????????????????????????
I/flutter ( 5019): The following assertion was …Run Code Online (Sandbox Code Playgroud) 我想知道是否有其他方法可以将离线数据存储在依赖项数据库中而不是使用 sqflite !!如果有人知道 flutter 的任何 SQL 甚至 nosql 库,它不像 sqflite 那样复杂,请提及它!