I'm developing a flutter app, that on iOS devices, I see it's pretty common to have screen transitions to have the effect of previous screen zoomed out, and the new screen sliding from the bottom, and is on top of the previous screen, while we can still see part of the previous screen.
As you can see in the screenshot down below, the blue line is part of the previous screen, the majority of it is getting covered by the new screen.
overlay effect that I'd like to have
I've been searched around for a little bit, would be great if someone could help. Thanks in advance!
Look into showModalBottomSheet
In the onPress on the button that loads the overlay screen write this
showModalBottomSheet(
context: context,
builder: (context) {
// Your overlay widget
}
)
This tutorial gives you some step by step and examples
https://blog.logrocket.com/flutter-modal-bottom-sheet-tutorial-with-examples/
Related
I'm developing a simple todo app. On my first screen, I called a Navigator.pop(context) to return the next screen. The functionality of the second screen is working perfectly but I have black sides. Are there any solutions for this issue?
Does someone know how to achieve an iOs like screen transition in flutter. This is a sliding from right to left with a parallax effect done with the previous screen.
I tried to use CupertinoPageRoute, it changes nothing on iOs and this is definitely not an iOs page transition.
I want to animate a container(upcoming task container),when go back to home screen from tasks screen I tried using Animated container but not working any help???
Use the AnimatedContainer widget for this. This is the video explanation from Flutter Devs, about how to do it.
I'm fairly new to Flutter and am trying to accomplish something similar to what is being used in the Pigeon app for iOS. Basically I want an interactive page as a background in the app (like the map in the Pigeon app), and then have different screens appear over that background. These screens should be scrollable, but start at the bottom of the device screen, thus showing both the screen and the dynamic background at the same time. As long as the background is visible in you can interact both with it and the scrollable screen.
I have added a gif below which hopefully helps explaining the issues.
Any guidance on which widgets to look into would be appreciated. I've been experimenting with the Stack widget but can't yet figure out how to accomplish my desired behaviour.
For doing this kind of stuff you have to use sliver widget, which is provide by flutter material package
for more info you can check
Flutter Sliver
I'm developing a native cascades BB10 app using the Gold SDK.
When a 'Sheet' is displayed on BB10 it animates as a slide transition from the
bottom of the screen. Is it possible to override this transition and replace it with
a fade transition?
Thanks
There's no simple way to override the animation.
If it works for your case maybe replace the sheet with a dialog? A dialog will be displayed on top of whatever is on the screen and you can easily add a fade in animation.
https://developer.blackberry.com/cascades/reference/bb_cascades_dialog.html