2021年5月4日星期二

How to hide positionWigdet when keyboard is open at indexedStack Flutter

I used IndexedStack in my main.dart, I am using 3 different pages here. Like x.dart, y.dart, z.dart.

I have such a banner on page X. Bottom 0 is coming. Appears when the keyboard is on. I want to hide this when the keyboard is open. But since indexedstack is in main.dart, I cannot control keyboard open / not on x.dart page.

How can I hide this while the keyboard is on? I would appreciate it if you could help.

Banner code here.

  return Positioned(              width: _bannerAd.size.width.toDouble(),              height: _bannerAd.size.height.toDouble(),              child: Align(                child: Container(                  width: _bannerAd.size.width.toDouble(),                  height: _bannerAd.size.height.toDouble(),                  color: Colors.transparent,                  child: child,                ),              ));    
https://stackoverflow.com/questions/67390674/how-to-hide-positionwigdet-when-keyboard-is-open-at-indexedstack-flutter May 05, 2021 at 03:02AM

没有评论:

发表评论