buildReadyView method
Implementation
Widget buildReadyView(BuildContext context, Widget view, Size availableSize) {
return AnimatedSwitcher(
duration: const Duration(milliseconds: 200),
transitionBuilder: (Widget child, Animation<double> animation) {
return FadeTransition(opacity: animation, child: child);
},
child: _isEmbeddedAvailable == true
? SizedBox(
key: ValueKey<bool>(true),
width: widget.parentWidth ?? availableSize.width,
height: widget.parentHeight ?? availableSize.height,
child: view,
)
: SizedBox(key: ValueKey<bool>(false), height: 0),
);
}