Skip to content

How to wrap real html child after remove buildAsyncBuilder #591

@ykrank

Description

@ykrank

Use case

Before, 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.
How can i do this like before?

Metadata

Metadata

Assignees

Labels

questionFurther information is requested

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions