flutter / flutter

Flutter makes it easy and fast to build beautiful apps for mobile and beyond
https://flutter.dev
BSD 3-Clause "New" or "Revised" License
164.96k stars 27.18k forks source link

Support peek/pop on iOS #4963

Open sethladd opened 8 years ago

sethladd commented 8 years ago

Once we have 3D touch support (https://github.com/flutter/flutter/issues/4838) we can then enable developers to build "peek/pop". See http://www.apple.com/iphone-6s/3d-touch/ for more.

edeuss commented 5 years ago

This needs to happen!

frasza commented 5 years ago

I believe we have 3D touch support available now?

justinmc commented 5 years ago

Making a note here that "contextual menus" were announced at WWDC and might affect this. They seem similar to peek and pop but don't rely on 3D touch.

justinmc commented 5 years ago

I did some research and they seem to be the same thing, with the only difference being that context menus can be opened with a long press. So both of these issues will be resolved by one PR/feature.

aliyigitbireroglu commented 5 years ago

At the moment, I'm creating a Peek & Pop implementation for Flutter. You can find it here and here.

It's still at an early stage for now but it runs well and I try to update it regularly.

justinmc commented 5 years ago

@aliyigitbireroglu Looks good! Heads up that there will be a first party ContextMenu coming with https://github.com/flutter/flutter/issues/34728. It seems different enough from your Peek & Pop implementation though.

aliyigitbireroglu commented 5 years ago

@justinmc Thanks! I hadn't seen the Context Menus yet but it looks cool, thank you for sharing. It seems like the most important difference is replacing the Force Touch & Gradual Blur Animation with a Long Press & Gradual Spring Animation.I believe it can be nicely integrated into my package- I will see about that as soon as finish some fine tuning.

DanielEdrisian commented 3 years ago

@aliyigitbireroglu Any chance you could submit a PR to incorporate the peek and pop transitions?

aliyigitbireroglu commented 3 years ago

@DanielEdrisian

I would be glad to but the package isn't working well at the moment with the newer versions of Flutter and I haven't yet had the time to make the necessary changes. As soon as I do those, I can submit it.

Edit: Follow this issue for progress.