设置“enable: false”后,如果文本超过 9 行,我将看不到其他行。我需要设置“enable:false”,因为我不希望用户在此文本字段中编辑文本。我尝试使用 SigleChildScrollView,但它不起作用......
Container(
child: SingleChildScrollView(
child: TextField(
enabled: false,
keyboardType: TextInputType.multiline,
maxLines: 9,
controller: chatController,
decoration: InputDecoration(
hintText: "Chat...",
border: OutlineInputBorder(
borderRadius: BorderRadius.circular(15.0),
),
),
),
),
),
Run Code Online (Sandbox Code Playgroud) 为什么当我运行命令时
docker run ubuntu
Run Code Online (Sandbox Code Playgroud)
如果没有选项“-it”,即使使用 -a -i 选项运行命令启动,也无法与创建的容器交互
docker start -a -i CONTAINER_ID
Run Code Online (Sandbox Code Playgroud)
或者当我跑步时
docker start CONTAINER_ID
Run Code Online (Sandbox Code Playgroud)
只是容器的状态为“4 秒前退出 (0)”
但当我跑步时
docker run -it ubuntu
Run Code Online (Sandbox Code Playgroud)
我可以使用 'docker start -a -i' 来使用 ubuntu 的 bash shell