Reputation: 253
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.
Upvotes: 2
Views: 662
Reputation: 9257
Check out CustomSingleChildLayout
it allows that the child get's layed out first then you can position it based on its size
Upvotes: 1