PegasisForever / keep_keyboard_popup_menu

A Flutter popup menu that will keep keyboard open.
https://pub.dev/packages/keep_keyboard_popup_menu
Do What The F*ck You Want To Public License
5 stars 13 forks source link

'package:flutter/src/rendering/layer.dart': Failed assertion: line 335 pos 12: '!_debugDisposed': is not true. #9

Open DhirenBasra opened 2 years ago

DhirenBasra commented 2 years ago

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.

cjjlovedsn commented 11 months 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,
            ),
          );
        },
      ),
    );
  }