News for hackers. Stuff that matters.
Re:All you should know about Flutter development by udbhavs on Saturday February 12, 2022 @07:45AM (#30312348)
I've been wondering why webviews with native page transitions aren't a more commonly used thing. It improves the UX a lot by dealing with the abrupt navigation changes of regular web apps. There was a plugin for Cordova that did this (https://github.com/Telerik-Verified-Plugins/NativePageTransi...) but it's abandoned.
Re:All you should know about Flutter development by joemasilotti on Saturday February 12, 2022 @02:09PM (#30315361)
I use Turbo Native on iOS to do exactly this.

You render your mobile web view like normal, wire up a JavaScript handler (formerly known as Turbolinks), and push native screens on iOS. It works really well for CRUD and "boring" SAAS apps with little interaction outside of forms. And when you need higher fidelity dropping down to SwiftUI or UIKit is straightforward.

https://github.com/hotwired/turbo-ios

To make things even simpler, I built Jumpstart iOS, which takes care of all of the Swift boilerplate. Navigation, authentication, and push notifications all work out of the box after adding a few endpoints to your server.

https://jumpstartrails.com/ios

Re:All you should know about Flutter development by samwillis on Saturday February 12, 2022 @08:00AM (#30312440)
Same here, it’s something I wish Capacitor supported.

Last year I experimented with using NativeScript in a Capacior app to open native modals with a second webview. Since then Ionic have released “Capacitor Portals” which brings all the native apis available within the Capacitor webview to native apps, effectively allowing you to embed capacitor views in another app. I wander if there is the potential to combine the two to get the native view transitions.

Edit:

Just to elaborate a little further on my experiment. Effectively what you ended up with was the two webviews being able to communicate with each other as though you had used the window.open or frames JavaScript api in the browser.

Re:All you should know about Flutter development by danielvaughn on Saturday February 12, 2022 @08:53AM (#30312810)
Wow that’s a really good idea. I love it.
Re:All you should know about Flutter development by ohgodplsno on Saturday February 12, 2022 @12:14PM (#30314377)
Because the UX of having a non-native app is, and will always be dogshit.
Re:All you should know about Flutter development by mamcx on Saturday February 12, 2022 @06:33PM (#30317466)
Because, specialy on android, is far slower…