Reputation: 10584
It seems text/richtext only support one page, if the content exceed the screen, you can't scroll up/down. Is there an easy way to enable it? Or I have to use the Scrolling Widgets?
Upvotes: 4
Views: 7091
Reputation: 31356
Flutter provide a lot of Scrolling Widgets documentation
Example :SingleChildScrollView
class mytext extends StatelessWidget {
var randomtext="....";
@override
Widget build(BuildContext context) {
return new Container(child: new Scaffold(
appBar: new AppBar(),
body: new SingleChildScrollView(child:
new Text(randomtext,style: new TextStyle(fontSize: 30.0),),),
),);
}
}
Upvotes: 7