Put widget on top of dialogue - flutter

I use one of the Packages (flutter_upayments) and it has webview_flutter in its Dependencies shown through ( showDialog ) but --> barrierDismissible: false, ( So I can't close the dialogue by clicking out or even press back button on android)
My question is is there a possibility to place a widget that appears on top of the dialoge (close button)
thanks

Related

Mobile back button access through flutter

On using onWillPop the flutter app bottomScreen closes for two conditions.
On tapping outside bottom sheet.
On pressing mobile back button.
How to make first condition disable i.e. bottom sheet should only close on clicking mobile back button.
Use isDismissible property of showModalBottomSheet. It works only for outside tap.
showModalBottomSheet(
isDismissible: false,
////other
)

Flutter overlay with unclickable background

i am using overlay in flutter and if the overlay pop up i want to prevent the user from clicking the buttons behind it like this
before click
after click
try to use ignorePointer like this Ignore pointer demo
or you can use Boolean like isShow = true, when alert popup make it isShow =false

How to hide bottom tab navigator (persistent_bottom_nav_bar) when the screen is not the main screens-Flutter

I am currently using persistent_bottom_nav_bar: ^4.0.2 package of flutter which showing 3 screens (A,B,C screens) in the bottom tab navigator. In the first screen I have a button that navigate user to another screen (D screen). The problem is the bottom tab navigator (persistent_bottom_nav_bar) is still showing in D screen, while the main screens are AB,C. Is there a way to hide persistent_bottom_nav_bar when the screen is not one of three main screen ?
can you check persistent_bottom_nav_bar in example code.
onScreenHideButtonPressed: () {
setState(() {
_hideNavBar = !_hideNavBar;
});
},
I think there is a nice feature that comes with the plugin itself (check out the documentation on pub.dev here https://pub.dev/packages/persistent_bottom_nav_bar, it's allowed you to navigate to a new screen without the navbar and when you pop back the navbar will show
try this
PersistentNavBarNavigator.sepushNewScreen();
there are some parameters that are required "screen & context" which is the screen you want to navigate to.
the parameter "withNavBar" it's a bool (optional) when you pass false the navbar will not show on the new screen!
you could try this after importing
PersistentNavBarNavigator.pushNewScreen(
context,
screen: newScreen(),
withNavBar: false,
);

Flutter how to show a list of Button inside a Pop Up on a Button tap

In my flutter app, I want to get a list of buttons inside a popup when a button is tapped. In that list, I wish to have buttons which when clicked should edit a Text widget that I used in my app
Any suggestion for this??
you have to use the dialog
On a button click show dialog as -
showDialog(
context: context,
builder: (_) => Button(),
);
Check this also link

Where is magnifying glass button came from

During inspecting scaffold Flutter project (without any modification) with Flutter Inspector in some cases of toggling widgets in left bottom corner magnifying glass button appear.
Where is it come from and what is its purpose?
Attached screenshots show that this button exists only on Render Tree tab.
This button appears only after you turned on "Select Widget Mode" in Flutter Inspector and selected a first widget to inspect. In order to inspect another widget you first need to tap the magnifier FAB.