Video wird geladen...

Video konnte nicht geladen werden

Zur Startseite

iOS 26 alert dialogs in Flutter 🔥 all I used was the native_dialog_plus package, which makes me question myself if it's better for flutter too render native components if your desire is a native, if not use flutters widgets instead, plus you can mix and match.

93,173 Aufrufe • vor 1 Jahr •via X (Twitter)

10 Kommentare

Profilbild von Matt Carroll
Matt Carrollvor 1 Jahr

One side effect to keep in mind is that showing OS popovers causes a lifecycle change that otherwise wouldn't happen. Could lead to unexpected glitches if you're not aware of this.

Profilbild von Maher Safadi
Maher Safadivor 1 Jahr

didn't know that.

Profilbild von Hamza Imran
Hamza Imranvor 1 Jahr

Why doesn’t flutters Cupertino uses method channels to show the dialog won’t that solve the border radius and other issues?

Profilbild von Tahiro Agbanwa ⚡️
Tahiro Agbanwa ⚡️vor 1 Jahr

Exactly what I am working on. Not released yet but I guess it does exactly what you are asking. It renders actual native components and obviously I cant make bindings for all the native components so just the primitives and a FlutterViewAdapter to shell your fluter app.

Profilbild von Hamza Imran
Hamza Imranvor 1 Jahr

I’m digging this new dialog not a fan of the old iOS dialogs felt too old

Profilbild von Khalid Warsame
Khalid Warsamevor 1 Jahr

That radius makes me want to

Profilbild von ioseph magno
ioseph magnovor 1 Jahr

Couldn't agree more. Text labels via CoreText, with input, navigation bar, modals via platform views. In a typical use case, there would only be 1 to 4 platform views active at any given time. This way, the iOS app will look and feel 100% native.

Profilbild von user 777
user 777vor 1 Jahr

Personally, I’m sure that things like dialogs, context menus, text editing actions (btw flutter moving to this on ios) should be native, there is no sense to reimplement what is available by a simple native sdk call

Profilbild von Mario285
Mario285vor 1 Jahr

Btw, popups in iOS 26 are now left aligned and you have them center aligned!

Profilbild von Maher Safadi
Maher Safadivor 1 Jahr

They get left aligned at a certain amount of text

Ähnliche Videos