Restrict IONIC side menu from auto populating for large screens - ionic-framework

I have implemented side menu for my IONIC 5.0.0 application. In smaller device side menu is shrinking to Hamburger icon (working fine). I want the same behavior in large screens also but unfortunately the menu is fully visible in the landscape mode of my iPad (6th gen). Does anyone know how to hide the menu in Hamburger icon always (for all device).

Seems you need to use when="false" property in the ion-split-pane component. Please find app.component.html. The location should be like src/app/app.component.html and change the following line from
<ion-split-pane>
to
<ion-split-pane when="false">
To learn more about the ion-split-pane component, visit this link.

Related

how to remove flutter's default splash screen?

I'm a developer who is developing a flutter.
I have a question about the default splash screen of the flutter.
I found that the first time I created the flutter project, it basically included a splash screen with a flutter icon.
I looked it up to erase the default splash screen, but I got a reply that it is not possible in the flutter/dart stage.
To solve this problem, first of all, I wanted to customize the defalut splash screen using the flutter_native_splash library.
However, the library did not meet my requirements because it was impossible to insert elements other than images (ex. text).
So, I used the flutter_native_splash library to insert an icon with only pure white color to create a fake splash screen.
And I made a real splash screen, registered it as the initial screen of the GetX library, and set it up to move on to the next page after the schedule delay.
You can check the ones described above in the video below.
In this situation, I have two questions.
First, I wonder if I can insert text into the splash screen using the flutter_native_splash library.
Secondly, I wonder if there is a way to delete the default splash screen that is automatically generated by the flutter.
The default splash screen cannot be overridden with Dart/Flutter alone. They are controls shown by the native Android/iOS context while the Flutter runtime is initializing. As such, any splash screen widget you create inside Flutter will show after the default splash screen. (Even if you completely remove the default splash image, the app would just be a blank while screen until Flutter finished loading, and that's bad design.)
There are instructions on how to change the default splash screen here :
For Android
Step 1: Go to android/app/src/main/res/drawable folder :
Here you will find a file launch_background.xml. This is where you can write some code and make it work.
Step 2: Open launch_background.xml
Step 3: Change Background
Uncomment line 7–11 and this is where you can change your background, maybe a color or image on line 4
<item android:drawable=”#color/ic_launcher_background” />
Step 4: Change Image/Icon
This is where (on line 10) you can change your app icon or to an image which will be in the center if android:gravity is center (Make sure you add your icons for different size devices for better result).
android:src=”#drawable/qart_trans”
And That’s it!! Woohoo
For iOS
Step 1: Open the project in iOS stuff in XCode
Step 2: Go to ios/Runner Folder
You will see here Assets.xcassets folder and LaunchScreen.storyboard. These are two things which we want.
Step 3: Open Assets.xcassets and click on LaunchImage
Paste your images/icons in 1x 2x 3x Options according to recommended sizes for devices
Step 4: Now Open LaunchScreen.storyboard
Click on the view and on the right panel click the down arrow like symbol change properties like background and content mode according to your need.
Step 5: Now Click the Image on the storyboard
Now on the right panel click the down arrow like symbol gain and change its properties as per need.
And That’s it again!! Voila!!!

Bluemix top menu bar disappears

Sometimes the menu bar (with menu items for DASHBOARD, SOLUTIONS, CATALOG, PRICING, etc.) at the top of the Bluemix masthead disappears when I re-size my browser window. How can I access these menu items when running with limited screen space and a narrow browser window?
The functions move to the "hamburger" menu selector in the upper left corner based on the responsive design
This is on purpose. The Bluemix console has a responsive design so features degrade as the browser window gets smaller. This is on par with what bootstrap does.
If you have any feature suggestions please leave it as a comment below and I can get it to our design team.
See this animated gif for how to access the collapsed menu items on mobile devices - http://i.stack.imgur.com/yeccF.gif

Blackberry 10 Left Slider

The menu slider that the menu is popping out from the left side of the screen is awesome.
"I was just trying to see how it can be emulated in my application.
Any one has a clue how it can be achieved?"
I want it to look exactly like on the picture, with menu items on the left.
There is a similar Android Question
You can use TabbedPane for that purpose, having left menu populated with set of Actions. However, usage of TabbedPane means you have to use Tabs.
In your case, you'll most likely have to use Actions menu which pops out from the right side as this complies with Blackberry Design Guidelines and fits your goals as I can see it from the screenshot provided better.

iPhone and iPad wordpress menu BAD behavior

On this site : mecanomedic.com, the menu template work fine in "normal" desktop browser, but dont slide down on ipad-iphone device. What can be the problem ?
Some tell me it's a css problem, but HOW safari desktop work ?
The problem is that the menu expansion relies on the user hovering with a mouse. On touch devices like iPads & iPhones, the hovering gesture can't be replicated because there's only one input- touch. If I were you, I'd take a look at Twitter's Bootstrap menu setup and perhaps use media queries to serve up a different menu on smaller screen sizes.
Here's an example of a Bootstrap navigation bar in action (you'll have to inspect the code to see how it works).
Add a href to the top-level <a>'s so that they can be focusable:
Produits
Elements that are focusable receive mouse events and hover styles when the user taps on them.
As #Matt stated, the problem is that your menu relies on a hover event and unfortunately that event is unavailable on touch screen devices.
One way to fix this would be to:
Check if the current user's device is an iOS device
If the device is an iOS device, use javascript to trigger a menu item's "show event" when the menu button is CLICKED instead of ROLLED OVER / HOVERED.
This would result in the menu being shown when the user taps a menu button.

Drag/Slide div inside overflow:hidden container on iPhone

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.