how to make Text.rich content as much space?

55 views Asked by At

I'm trying to display a page of Quran in one screen by using Text.rich but some text can't appear.How to make Text.rich content as much space? enter image description here

I'm trying to display a page of Quran in one screen by using Text.rich but some text can't appear.How to make Text.rich content as much space?

2

There are 2 answers

1
Ashraful Haque On

Please try to wrap your Text.rich widget with Expanded

Expanded(
  child: Text.rich(
    // your text goes here
  ),
),
2
Gabriel Coelho On

If you want to scroll your page to see the whole content, try to wrap the content of your page in a SingleChildScrollView

SingleChildScrollView(
  child: Text.rich(
    // ...
  ),
)