2

I am wondering if there is some function that returns size of a string similar to the size of NSString in iOS?

Ex. We need to have some Widget at the bottom of screen where at first we should see only text but after user pulls that widget up, we would see more (something like bottom sheet). That starting height of the widget depends on the string.

Günter Zöchbauer
  • 623,577
  • 216
  • 2,003
  • 1,567
Filip Raj
  • 243
  • 1
  • 3
  • 6

1 Answers1

1

Check out CustomSingleChildLayout it allows that the child get's layed out first then you can position it based on its size

Thomas
  • 8,397
  • 7
  • 29
  • 39