Flutter iOS vs Android - one of the other UI?

433 views
Skip to first unread message

paul curtis

unread,
Mar 19, 2018, 11:32:14 AM3/19/18
to Flutter Dev
I'm reviewing the docs, playing around a bit and think i know the answer to this but would like confirmation.

I believe if i want to mimic an iOS style UI then there are the cupertino widgets? But then an android version would be the same.

There's no targeted delivery with a unified design structure looking like iOS on iPhones and Android on android devices is there?

So if i wanted an app that looked native on both sides then i basically need two apps?

Is that right?

thanks
Paul

Frank Harper

unread,
Mar 20, 2018, 10:18:00 AM3/20/18
to Flutter Dev
You can customize the UIs based on platform as much as you want. From identical, to completely different for iOS and Android.

If you use the material design widgets, some of them do adjust based on which platform they're runnin their look and feelg on. For example the overflow menu looks different. The scrolling looks different, etc.

Even if you go 100% custom UI for each platform you can still share significant amount of code: the business logic, the data later etc.

paul curtis

unread,
Mar 20, 2018, 11:44:16 AM3/20/18
to Flutter Dev
Yes, so if we start with a MaterialApp then everything will be Material. To start an app that looks like iOS i have to use different containers and widgets.

But that also means that i basically would need separate flutter projects if i wanted iOS looking AND Android looking apps because i don't *think* there is any way to basically target different frameworks from one flutter app? Sure some of the classes would be the same but the UIs would be different.

Then we're back to Xamarin and managing two UIs with shared logic

Is that right, or have I missed something!?

thanks!
Paul

Seth Ladd

unread,
Mar 20, 2018, 11:54:11 AM3/20/18
to paul curtis, Flutter Dev, Swav Kulinski
+ Swav

FWIW I found this article that talks about a strategy for writing UIs that are different on iOS and Android: https://medium.com/flutter-io/do-flutter-apps-dream-of-platform-aware-widgets-7d7ed7b4624d

--
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.
Message has been deleted

Ian Hickson

unread,
Mar 26, 2018, 1:58:04 PM3/26/18
to paul curtis, Flutter Dev
Our long-term goal is to have the material widgets automatically defer to the cupertino widgets when the ThemeData.platform is set appropriately. We haven't finished implementing this yet (we're still just in beta!), but this is indeed our design; that's why, for example, the cupertino library doesn't depend on the material library -- it allows the material library to depend on cupertino without a dependency loop. We've actually already done this for one widget that I can think of, the MaterialPageRoute -- it knows how to defer to CupertinoPageRoute on iOS.

We're making sure we have the cupertino widgets fleshed out before we start setting up the material widgets to defer to them.

On Tue, Mar 20, 2018 at 10:11 PM paul curtis <pa...@inventome.com> wrote:
That's a great link, thank you.

I do wonder why was flutter not designed ground up to work like this?

cheers
Paul


On Tuesday, March 20, 2018 at 3:54:11 PM UTC, Seth Ladd wrote:
+ Swav

FWIW I found this article that talks about a strategy for writing UIs that are different on iOS and Android: https://medium.com/flutter-io/do-flutter-apps-dream-of-platform-aware-widgets-7d7ed7b4624d

--
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

😸

burkhartse...@gmail.com

unread,
Mar 28, 2018, 8:18:32 AM3/28/18
to Flutter Dev
 
Hi Ian,

this is amazing news! Coming from Xamarin forms I still have the topic of platform specific look in the back of my head. Now hearing that this will soon be possible too is just amazing!
Best
Thomas 
 

Paul Curtis

unread,
Mar 28, 2018, 11:40:38 AM3/28/18
to Ian Hickson, Flutter Dev
Hi Ian,

That's some fantastic news, exactly what i want to hear.
Is there any chance of some vague timeline?

Also on a slight side note, has anyone got a flutter app running on an AppleTV?

thanks
Paul

Ian Hickson

unread,
Mar 28, 2018, 1:21:50 PM3/28/18
to Paul Curtis, Flutter Dev
Only the vaguest of timelines; it's probably something we'll do in the next year-ish? But we can't guarantee that at all. It could be as soon as in 3 or 4 months, or it could be later.

--

--
Ian Hickson

😸

s.val...@gmail.com

unread,
Mar 29, 2018, 10:32:31 AM3/29/18
to Flutter Dev
This is great news, this will make Flutter ever more awesome, looking forward to it.
Reply all
Reply to author
Forward
0 new messages