颤振在“文本”小组件中显示长文本

时间:2019-03-31 08:53:14

标签: dart flutter flutter-layout

我尝试从$email = $_POST['email']; // sql to create table $sql = "CREATE TABLE IF NOT EXISTS $email( `id` INT(6) UNSIGNED AUTO_INCREMENT PRIMARY KEY, `firstname` VARCHAR(30) NOT NULL, `lastname` VARCHAR(30) NOT NULL, `email` VARCHAR(50), `regdate` TIMESTAMP )"; 获取长文本并显示在API小部件上,但是‍‍ Text小部件的宽度大于屏幕的宽度。

https://github.com/PolymerLabs/books

代码

Text

我尝试用Card( shape: RoundedRectangleBorder( borderRadius: BorderRadius.circular(8.0)), color: Colors.white, elevation: 4.0, child: Container( padding: const EdgeInsets.all(16.0), child: Text( snapshot.data["data"]["content"], textDirection: TextDirection.rtl, style: TextStyle( color: const Color(0xff393030), height: 1.4, fontSize: 12.0), )), ), TextSizedBox包装FittedBox小部件,但是它们都不起作用。还为父级Flexible设置了width

0 个答案:

没有答案
相关问题