How to implement the flying left or right animation for nested menu in flutter? I have a bottom sheet like the below one. I want the bottom sheet content (not the bottom sheet itself) to flying left, and new content will fly in from the right side when clicking the item "select your address type". This is common behaviour in web for nested menu.
I found a working solution by using stack and AnimatedPositioned. The tricky part is to calculate all nested menu's left position(you may use the right position as well). It's similar to how a image carousel works.
Related
I am trying to create a popup menu that can be shown on top of all the other widgets I have on the screen, not something like the dialog but, I need the menu to show on top of a bottom panel of a sliding panel widget.
right now it shows underneath it and clearly is the right beaver from a code perspective, but from a UI perspective that is not good and it does hide some menu options rendering them unTappable, here is pic (a third option in the menu is being blocked) :
The menu is spawn from the three dots and is positioned exactly on top of them, it usually has 3 options. Right now, since the red bar on the bottom is a slide panel, it is positioned on top of everything and can be slides up from any page, only 2 options appear. my question is how do I make the menu go on top of the red bar, or at least maybe make it open upward instead of downward like it does here.
To make widget at the top of everything you can use Overlay, but I am not sure it is the best solution for you
I found how to do it.
The trick is to use the rootNavigation. rootNavigation is available on the showMenu method.
var Choice = await showMenu<ContextMenuOptions>(context: context, position: position,
items: items, useRootNavigator: true);
In leaflet map, on mouse right click, context menu is display right side to the cursor on map. Now our application is made compatible with right to left layout (for arabic). We need to display the context menu left side to the cursor now. We are using "leaft-contextmenu". Is there any simple way to achieve this?
Suppose I wish to focus on the state of Colorado in the following chloropeth map:
The typical mechanism is to use the operating-system dependent means of dragging the picture. I am on OS/X so that involves using two fingers to drag the image to the desired new centering location.
However the actual result of that operation is a bounding box is displayed on the image (I can not get a screenshot of it since it disappears)
So then .. how to drag /re-center the Tableau display?
Click onto the small 'play' arrow button on the chart menu in the top left hand corner. A sub menu will pop up where you can select the scroll method you'd like - click and drag is one of these. You can also disable this through the chart options (the small drop down menu on the top right hand corner of the chart).
I am creating a wepapp, that has a horizontal menu. The menu is limited to 320px and has overflow set to hidden. Inside the links are wrapped in a div which has a width set to it. The list overflows on the x axis. I have applied a jquery plugin called OverScroll so you can drag this list left and right to reveal the hidden menu items.
It works great on a desktop browser but I am having difficulty on getting this to work on the iphone.
I have set up a demo at www.irfanyasin.com/iphone/
Any ideas?
Thanks
Apart from general usability issues (will people know it's slidable? I could see how this can be annoying if you use that menu often and have to slide it a lot), dragging doesn't work on most touch interfaces. You could try adding left and right buttons that scroll the menu when they click them maybe?
Also your demo doesn't work in Chrome on my desktop. Is the menu supposed to slide? It won't.
I made a MultiSlider widget using the GWT and the gwt-dnd addon to rate texts. On the screenshot, you can see the slider button with value 50 dragged outside the slider bar. It can't be dropped outside the bar, but it can be dragged outside of it.
alt text http://lt3.hogent.be/hendi_docs/stackoverflow/gwt-dnd-multislider.png
Is there a way in GWT to always keep the slider buttons inside the slider bar?
EDIT:
The slider bar is an AbsolutePanel, and it is also the only droptarget for the slider buttons. The slider bar panel is also the boundary panel for the drop controller. Dropping outside of the bar panel is not possible, but dragging is.
Now what I really like to know is if it's possible to keep the mouse pointer on the bar panel. If a button is dragged out of it, it will remain on its old position when dropped (so that's OK). Is it possible to allow only vertical DRAGGING? Can the mouse position be set while dragging?
I've used dragController.setConstrainWidgetToBoundaryPanel(true), and I think dragController.setBehaviorConstrainedToBoundaryPanel(true) does the same thing. For more information, check out the javadoc for your version.
The method you're looking for is defined in AbstractDragController with this signature;
void setBehaviorConstrainedToBoundaryPanel(boolean constrainedToBoundaryPanel);
The boundary panel (often passed in in the first parameter to the drag controller constructor) in this case should be an AbsolutePanel which wraps the slider.
It may also be helpful to visualize the absolute panel if things are not working as expected:
absolutePanel.getElement().getStyle().setProperty("border", "1px dashed red");