How to make custom widget responsive

I am trying to build an app that can render educational text i.e maths and scientific text dynamically, I know that i can make a custom widget with flutter_tex, or Latex or Catex to create a custom widget, but custom widgets require width and height as a requirement, in my app, i need the widget to be responsive to the text and not have a fix width or length. how can i make the widget respond to text rendered at run time.

I need to know how to get around the fixed width and height requirement of custom widgets.

3
7 replies