Scaffold edge-swipe iOS; Fab stick

108 views
Skip to first unread message

Idan Aizik-Nissim

unread,
Oct 13, 2017, 9:00:12 AM10/13/17
to Flutter Dev
Hi,

I have few questions:
1. How can I disable the native iOS edge-swipe to navigate back (in Scaffold)?
2. Force fab to stick to the bottom of screen? currently when the keyboard is opened the fab moves above it.

Thanks,
Idan

Seth Ladd

unread,
Oct 13, 2017, 11:57:20 AM10/13/17
to Idan Aizik-Nissim, Flutter Dev
Thanks for the feedback! If you don't hear from anyone soon, I might suggest that these are perfect questions for Stack Overflow. :)

--
You received this message because you are subscribed to the Google Groups "Flutter Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flutter-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ian Hickson

unread,
Oct 13, 2017, 12:29:24 PM10/13/17
to Seth Ladd, Idan Aizik-Nissim, Flutter Dev
Can you elaborate on your reason for wanting #1? (Depending on your reason, the solution is different.)

For #2, you probably want to set resizeToAvoidBottomPadding: false on the Scaffold.

On Fri, Oct 13, 2017 at 8:57 AM 'Seth Ladd' via Flutter Dev <flutt...@googlegroups.com> wrote:
Thanks for the feedback! If you don't hear from anyone soon, I might suggest that these are perfect questions for Stack Overflow. :)
On Fri, Oct 13, 2017 at 6:00 AM, Idan Aizik-Nissim <idan.aiz...@gmail.com> wrote:
Hi,

I have few questions:
1. How can I disable the native iOS edge-swipe to navigate back (in Scaffold)?
2. Force fab to stick to the bottom of screen? currently when the keyboard is opened the fab moves above it.

Thanks,
Idan

--
You received this message because you are subscribed to the Google Groups "Flutter Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flutter-dev...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Flutter Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flutter-dev...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.
--

--
Ian Hickson

😸

Idan Aizik-Nissim

unread,
Oct 13, 2017, 12:55:56 PM10/13/17
to Flutter Dev
#2 worked. thx

about #1 I need to disable it in 2 place for different reasons:

first reason
I have a scaffold with custom paint body (drawable canvas), when I draw with gestureDetector horizontal swipe near the edge it cause navigate back in iOS


second reason (and maybe there is a solution without disabling the edge swipe).

when calling  Navigator.of(context).pop,(onTap on chevron [<] in app bar) I can pass [dynamic results] up the stack 
but when the navigator is poped by the edge-swipe I can't (or I dont know how to) pass those results.

Ian Hickson

unread,
Oct 13, 2017, 2:30:35 PM10/13/17
to Idan Aizik-Nissim, Flutter Dev
Ah, interesting. You probably want the page to be considered a "full screen dialog" then. When you create the MaterialPageRoute, pass fullscreenDialog: true.

Idan Aizik-Nissim

unread,
Oct 14, 2017, 3:58:17 AM10/14/17
to Flutter Dev
Thanks 😁
fullscreenDialog: true, works as expected
Reply all
Reply to author
Forward
0 new messages