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. |
Answered by
daohoangson
Sep 30, 2021
Replies: 3 comments
|
There is no direct replacement for this. The |
0 replies
but entire HtmlWidget have padding or margin, this make it unstable |
0 replies
|
The recent versions no longer have built-in paddings, I think it should be usable. |
0 replies
Answer selected by
daohoangson
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The recent versions no longer have built-in paddings, I think it should be usable.