Why click event is not added to backdrop in MUI drawer? - material-ui

We have this codesandbox from MUI for drawer.
I changed some functionality of this drawer for my personal usecase.
You can see : changed drawer.
What I change :
If window.innerWidth return greater than 700 :
Left sidebar is open by default.
If window.innerWidth return less than 700 :
Left sidebar is closed by default and it will open only when we click on menu icon.
Left sidebar will open like overlay div. It will not affect the width of right container.
You will see backdrop if you open sidebar. But if we click on backdrop, sidebar is NOT closing.
This is another example related to backdrop on MUI website : https://codesandbox.io/s/fjm22z?file=/demo.tsx
If you click on backdrop, it will close the left sidebar on their example. But I don't know why is it not closing on my changed drawer

Related

Beautiful and responsive "dropdown menu" / "pop-up" flutter

Please see the photos attached for the feature, or simply head to https://www.chrislorenzomusic.com and resize the window until you see the dropdown menu in top right corner appears and click on the menu to see the effect.
I'm not sure what this effect or feature is called, but was wondering what it's called and if it was possible to make something similar in flutter?
Before resizing the window
After resizing window the menu at top right corner appears
When clicking on the menu
When an app or widget behaves differently depending on the screen size or orientation it is considered responsive or has a responsive layout.
https://docs.flutter.dev/development/ui/layout/adaptive-responsive
The Menu itself can be created using a Scaffold with an AppBar and a Drawer. You can configure the AppBar to have the menu icon or the links depending on the size using LayoutBuilder and MediaQuery.of.
AppBar
https://material.io/components/app-bars-top
Drawer
https://material.io/components/navigation-drawer

Material UI Tabs scrollable don't have option to configure that how many tabs will scroll at arrow(left/right) click

I am using material UI v4 tabs with scrollable feature. but when I click on the arrow it scroll all visible tabs .
I want only one tab scroll at once.

Using AlertDialog on a stack widget in flutter

I have a basic layout where I am using a stack widget to hold my other widgets.. I have a side toolbar, inside that I have a pen menu on click of which a popup should appear. When i am clicking the pen menu an alert dialog appears but not in the expected place, what i mean is...
I am expecting a dialog like the one in the below image. Do I need to use any plugin to create a dialog like this with a chevron mark?enter image description here
As you are using Alert dialog, it will by default be aligned in center of your screen. In order to achieve what you are trying to, I would suggest using a plugin like this.

How to expand appbar to show text inside app bar on click of action icon ion flutter?

I am building a app activity which has an app bar which has an icon in the center of the appbar and some text. I want to be able to show the text below t the icon with some transition inside the appbar on click of the icon mentioned before and make it disappear it is already showing.
I tried using sliver but I need the transition to happen with click event not scroll up and down event.

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.