Flutter 可选择的Text

      Column(
        mainAxisAlignment: MainAxisAlignment.center,
        crossAxisAlignment: CrossAxisAlignment.center,
        children: <Widget>[
          TextField(
              controller: TextEditingController(text: 'initial value'),
              readOnly: true,
              maxLines: null,
              decoration: null),
          SizedBox(height: 20),
          SelectableText('home page'),
        ],
      ),
posted @ 2019-07-12 22:33  Ajanuw  阅读(523)  评论(0编辑  收藏  举报