How to wrap real html child after remove buildAsyncBuilder #595
-
Use caseBefore, i use buildAsyncBuilder to get real html height, like: buildAsyncBuilder: (context, snapshot) => isDebug && snapshot.hasError
? Container(
child: Text(snapshot.error.toString()),
)
: snapshot.hasData
? MeasureSize(
onChange: (Size? size) {
// print('size ${size?.height}');
if (size != null) _post.extraCache.measureHeight = size.height;
},
child: snapshot.data)
: Container(
height: _post.extraCache.measureHeight,
child: Loading(),
), but now i can't find a entrypoint to do this. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
There is no direct replacement for this. The |
Beta Was this translation helpful? Give feedback.
-
but entire HtmlWidget have padding or margin, this make it unstable |
Beta Was this translation helpful? Give feedback.
-
The recent versions no longer have built-in paddings, I think it should be usable. |
Beta Was this translation helpful? Give feedback.
The recent versions no longer have built-in paddings, I think it should be usable.