Open DhirenBasra opened 2 years ago
/lib/src/animated_popup_menu.dart
@override
Widget build(BuildContext context) {
return AnimatedBuilder(
animation: _exitAnimation,
builder: (BuildContext context, child) {
return Opacity(
opacity: exitOpacityTween.evaluate(_exitAnimation),
child: child!,
);
},
child: AnimatedBuilder(
animation: _enterAnimation,
builder: (BuildContext context, _) {
return Opacity(
opacity: enterOpacityTween.evaluate(_enterAnimation),
child: widget.backgroundBuilder(
context,
// PercentageSize(
// sizePercentage: enterSizeTween.evaluate(_enterAnimation),
// child: widget.child,
// ),
widget.child,
),
);
},
),
);
}
PopUp open and washout with white color, and below error displayed in console. 'package:flutter/src/rendering/layer.dart': Failed assertion: line 335 pos 12: '!_debugDisposed': is not true.