Flutter’s Cupertino Package for iOS devs - Flutter In Focus

  Рет қаралды 168,711

Flutter

Flutter

Күн бұрын

Пікірлер: 136
@andrewbrogdon558
@andrewbrogdon558 5 жыл бұрын
One of the nice things about these videos is that while you're learning from us, we have the chance to see what you're interested in and where we should invest our time. Judging by the comments so far, it looks like folks could use more information about how Cupertino and Material relate to Flutter's mission as a multi-platform SDK and how to put them to work in the same app. That sounds like a good topic for a Boring Show episode, so we'll try to work it into the rotation in the coming weeks. Thanks for letting us know!
@ShabiboSheikh
@ShabiboSheikh 5 жыл бұрын
Yes! , I want to see you guys implement Material and Cupertino in the same app and handle the different platforms. It's the missing link for me when I experiment with Flutter projects.
@Omniwoof
@Omniwoof 5 жыл бұрын
That boring show topic sounds like a great idea Andrew. Just to clarify my other comment, I was referring to the need to write two versions of the UI, not two versions of the business logic. However, after chewing on it a bit the way the form elements look probably isn't going bother Apple users as much as the page change UX will. What I mean a material switch fundamentally will work the same way as a Cupertino switch but the CupertinoPageRoute adds a new gesture that I suspect iOS users will find annoying if it isn't there. So I'm thinking (for my MVP) Cupertino form elements are a 'nice to have' but the page transitions are feeling more like a 'must have'. (At least for my app that relies heavily on a slick UX.) I'll probably add a full Cupertino experience after our beta though. Thanks for making the video's mate and thanks for engaging with the comments. :)
@satisfakshin
@satisfakshin 5 жыл бұрын
Yes exactly that! Thanks for always listening guys!
@Nullscr1pt
@Nullscr1pt 5 жыл бұрын
I am new to flutter but I have built full apps in Angular 7, Nativescript, etc.. I am trying to make a switch to flutter, so for me, some of the things that interest me are things like how I would nest a router in the contents of a side drawer. How to make a simple app that pulls data from JSON, displays a few pages, has a sidebar that handles navigation, and how to highlight the sidebar based on what navigation route you are currently on (like a .active class on the sidebar element that is the current route). Some of these tutorials are already on google but videos are always super helpful. I think with the basics I mentioned, you could build some really powerful apps with flutter.
@TheCodebookInc
@TheCodebookInc 5 жыл бұрын
Can we have Google maps marker placement on tap and directions
@eliseerickson5994
@eliseerickson5994 5 жыл бұрын
I love this video! All the descriptions are clear and Andrew's voice makes me feel like I'm being taught by a friend that's really invested in my success. Go Andrew!
@Omniwoof
@Omniwoof 5 жыл бұрын
This is probably a silly question but I don't really see a way of writing a Flutter app using Cupertino and Android feels without having to write two versions of the code. Is that correct?
@DevilMadeMeDoIt666
@DevilMadeMeDoIt666 5 жыл бұрын
David Fawcett was just thinking the same thing.
@RichardVowles
@RichardVowles 5 жыл бұрын
Two versions of the UI, absolutely. But as flutter makes it easy to keep the app layer separate, it isn't as big a job as it would otherwise seem. Google generally doesn't do it though, most Google apps on iOS are material, so unless there is a really good reason, I tend to always go material first.
@testaccount6365
@testaccount6365 5 жыл бұрын
Yes, I actually want to know this. How can I produce two different views of ios and android without writing two different codes? Am I missing something?
@chuguanyu
@chuguanyu 5 жыл бұрын
Flutter Platform widgets might help. pub.dartlang.org/packages/flutter_platform_widgets
@CrisRusia
@CrisRusia 5 жыл бұрын
I was thinking the same. Write two times the code seems like brocking the idea of Flutter... Is not enough to use only the Materia.dartl and Scaffold to make adapt our application for the two systems?
@TheBillionDollarSaaS
@TheBillionDollarSaaS 5 жыл бұрын
Please provide more videos of this kind, where content is provided more detailed but at the same time compressed. Something between the boring show and widget of the week. I like it.
@JFkingW
@JFkingW 5 жыл бұрын
Kinda disappointed that you didn't adress the biggest problem: how can I have meterial and cupertino based in the the platform without having to write everything twice?
@Pablo_IF
@Pablo_IF 5 жыл бұрын
You have to use BLoC pattern (or something similar), and separate your UI code and your Logic code. Then, at the beginning of your app, you can do something like this: if(Platform.isIOS){ runApp(CupertinoApp( ... ... )); } else if (Platform.isAndroid){ runApp(MaterialApp( ... ... )); }
@ShivamJha00
@ShivamJha00 4 жыл бұрын
@@Pablo_IF that would be such a big mess.. react native is much better if that's how it works because it calls the native components automatically for us without duplicating every thing
@robertpiosik93
@robertpiosik93 4 жыл бұрын
@@ShivamJha00 Not really. Natural iOS UI behaviours are quite different from these you can find on Android. API calls, data manipulations etc. are all written once, simply how you show content on the screen differs and you really want to have control over it.
@andreypanin2136
@andreypanin2136 Жыл бұрын
Come for Flutter, stay for the t-shirt.
@michelfeinstein
@michelfeinstein 5 жыл бұрын
Please make a video on the latest releases of flutter 1.2 and Dart 2.2
@mohammadrasoulfard-habibi3066
@mohammadrasoulfard-habibi3066 5 жыл бұрын
Yes definitely want that.
@rachevp
@rachevp 5 жыл бұрын
At the beginning of the video, there was a quick flash of a Cupertino sample app showing a lots of items, as well as an iOS-style search bar at the top. I was wondering, if a search bar widget is coming to the Cupertino set, because the open-source alternatives aren't really feature complete. Building such a navigation bar with a built-in search box could make a great tutorial, especially, if you target topics such as slivers as well. Cheers!
@flutterdev
@flutterdev 5 жыл бұрын
You can find that app in our samples repo: github.com/flutter/samples. There is an open feature request for a UISearchBar equivalent in the flutter/flutter repo as well, though I don't know when it's going to make it onto the roadmap.
@sinaebr7337
@sinaebr7337 5 жыл бұрын
pls create a video about page transitation animation and how can change theme . tnx :)
@MehdiHaghgoo
@MehdiHaghgoo 4 жыл бұрын
Can write and use Cubertino style for Android too? Or would that need separate code for Android? Personally, I don't mind to see iOS-like app experience on Android.
@rick_from_yr
@rick_from_yr 5 жыл бұрын
It would be great if there is an article that shows the equivalent widget from Material to Cupertino. To easily change the code when creating the builds/bundles for AppStore/PlayStore. Thanks for the video :D greetings from Peru
@dineshnagarajandev
@dineshnagarajandev 5 жыл бұрын
Nice T-shirt 👌
@mosth8ed
@mosth8ed 5 жыл бұрын
Appreciate the video and explanations, but if I hear the word "Cupertino" one more time, I am going to explode.
@chvrleshd
@chvrleshd 3 жыл бұрын
LMFAO
@wortis683
@wortis683 3 жыл бұрын
Cupertino
@remoreacts91
@remoreacts91 5 жыл бұрын
Can the Flutter team please do a simpler to understand video about how to use the Bloc pattern?
@homeofcreation
@homeofcreation 4 жыл бұрын
In European countries keyboardType: TextInputType.numberWithOptions( decimal: true,), gives a comma as the decimal separator on a physical iPhone. But is doesn't work right because the amount with decimals isn't parsed inside the TextField. Is there a workaround for this?
@WEIRDED_BEARDO
@WEIRDED_BEARDO 5 жыл бұрын
What's the editor theme? I love the colored brackets. Looks really helpful
@benjaminbozic8387
@benjaminbozic8387 5 жыл бұрын
Was wondering the same thing and then found this plugin: plugins.jetbrains.com/plugin/10080-rainbow-brackets
@Valerianagit
@Valerianagit 5 жыл бұрын
This is exactly what I was gonna ask :)
@BurtonJohnson
@BurtonJohnson 5 жыл бұрын
I don't understand. I thought the whole point of Flutter was being cross-platform. Do I have to choose between MaterialApp and CupertinoApp?
@hamzaimran1991
@hamzaimran1991 5 жыл бұрын
One codebase two platforms. If you are making an app just for iPhone you should go for the cupertino theme.
@amari343
@amari343 5 жыл бұрын
Not exactly. You could make a widget that, based on the platform of the phone (e.g. Apple or Android) it changes between Cupertino and Material. The fact that Flutter is cross-platform just means that the apps look the same on both platforms, nothing else.
@Gabeaventh
@Gabeaventh 5 жыл бұрын
MaterialApp and CupertinoApp is a way you choose to render the app, it doesnt matter if you code using MaterialApp for iPhone app using flutter, dart will take care of it and you can use both at the same time, like using CupertinoTabBar while the rest off the page using MaterialApp components i hope this answer your question :)
@yadunandanks8781
@yadunandanks8781 5 жыл бұрын
You can, but nobody wants androidish looking app on iOS!!
@Hell2Night
@Hell2Night 5 жыл бұрын
Burton Johnson Nop, you can use either one or the other for both platforms. You can stay with Material and build and app for iOS and Android. Even if it’s cross platform you may want to provide a design that’s feel « native » and to do that you have no choice but follow design pattern of each platform. Which is not the case of many apps, but still, with Flutter you can.
@firedevelop
@firedevelop 5 жыл бұрын
Thanks Andrew, amazing job!
@matthewjerdidahhansen7331
@matthewjerdidahhansen7331 5 жыл бұрын
I have a question which isn't directly related to the topic of this video, but let me ask anyways. How do I keep my CustomAppBar with a ScrollView under it so that when I scroll, by appbar stays in view and everything else under it scrolls???
@themindstorm9947
@themindstorm9947 5 жыл бұрын
Do the widgets provide the haptic feedback on iPhones?
@kenn850
@kenn850 5 жыл бұрын
Hey,quick question why is the no slide up panel in flutter ,is there a request for such a widget. (And yea i googled it,answers at stack overflow were not exactly definitive)
@vinodvishwanath2360
@vinodvishwanath2360 4 жыл бұрын
Nice video , Is there a way in flutter to achieve spinner UI for android version and UIAlertController UI for iOS version in a same app
@SapiensHomo-k7r
@SapiensHomo-k7r 5 жыл бұрын
I've been developing an app for both android and ios. I've found out some material widgets won't work under cupertinoApp root while most cupertino widgets will do fine under materialApp. So i decided to go for a single material tree. Wherever i needed a different style on ios (For switches, buttons, etc) i'd just use platformWidget (pub.dartlang.org/packages/flutter_platform_widgets) or check myself the target platform which is quiet easy to do. So i'll say no, you won't write 90+% of your app twice unless the whole layout is platform-dependant
@marcowang7596
@marcowang7596 3 жыл бұрын
what syntax highlighting is he using??? I need it
@sergiopineda3107
@sergiopineda3107 3 жыл бұрын
Very good, I got It, thank you so much
@SEGVeenstra
@SEGVeenstra 5 жыл бұрын
Can I have the same kind of tab navigation of Cupertino on my Material app? I sometimes prefer the separated navigation stacks.
@luaconsoni
@luaconsoni 5 жыл бұрын
Visually, this reminds me of the Node callback hell. But we need a new name for it. I vote for Nested Elements Hell. JK, I like Flutter.
@VPSantiago
@VPSantiago 5 жыл бұрын
Does the CupertinoApp scaffolding handle auto-layout correctly on iOS?
@avsajay8609
@avsajay8609 5 жыл бұрын
Can we use bother material and Cupertino in one app
@henrytan5707
@henrytan5707 2 жыл бұрын
don't you have auto-conversion between android and ios versions of the UI? it's not smart to do it separately.
@ArshdeepSingh-ob7rj
@ArshdeepSingh-ob7rj 3 жыл бұрын
How are you updating the UI without setState .
@g-tensolution8527
@g-tensolution8527 5 жыл бұрын
I need to buy mac to test that os emulator huh?
@robertpiosik93
@robertpiosik93 4 жыл бұрын
No. Every component runs through flutter (engine in this case, not framework, github.com/flutter/engine) which controls every pixel on the screen. Premade iOS widgets works everywhere, in the android emulator / android real device / chrome browser and so on. It's completely up to you where you use any given yours, built-in or community made widget.
@bazrafkanmb
@bazrafkanmb 5 жыл бұрын
Please create video about EventChannel that use for send event from host to client, thanks
@rationalityfirst
@rationalityfirst 4 жыл бұрын
Flutter is cool and all, but it can become quite fast indentation hell. Any hints on how to avoid that?
@rubynaxela8524
@rubynaxela8524 2 жыл бұрын
Why do you think the tabulation size here is 2 spaces here and not 4, like usually? :D You can always extract some of the most indented code into your custom widgets, but I think Flutter was pretty much designed for its code to be written like that, which is a little similar to HTML, for instance One more thing you can do is to avoid breaking short statements like Expanded(child: Text('text')) into several lines (which happens when putting a comma after the Text widget)
@godspowerokoro
@godspowerokoro 8 ай бұрын
Can i use cupertino app for an android app
@0x4ym4n
@0x4ym4n 5 жыл бұрын
Great tutorial, keep it up.
@AldoCastorena
@AldoCastorena 5 жыл бұрын
What plug-in do you use for code reformat and refactor? (Like when you transformed the stateless widget to statefull). Great video :)
@redbrogdon
@redbrogdon 5 жыл бұрын
The Flutter plugin can actually do that on its own. On a Mac running IntelliJ, it's Option-Enter, but the other IDEs/platforms have shortcuts, too.
@matiasgomez9416
@matiasgomez9416 5 жыл бұрын
I have problems with the "onPressed: (){}" : The named parameter 'onPressed' isn't defined. How can I fix it??
@indignocat
@indignocat 5 жыл бұрын
I found the cause: Between child: Center( and child: Text( I missed a child: CupertinoButton (which defines onPressed) So it’s: child: Center( child: CupertinoButton( child: Text( ‘This is tab #$i’
@Abay_Zhunis
@Abay_Zhunis 4 жыл бұрын
Did you solve it, man?
@Abay_Zhunis
@Abay_Zhunis 4 жыл бұрын
@@indignocat man, it didn't help at all, but thanks for the advice :(
@romanvernik1968
@romanvernik1968 Жыл бұрын
4 years passed. Still no iOS-like shading while swiping back to previous screen.
@abhishtsingh6073
@abhishtsingh6073 5 жыл бұрын
This is amazing!
@mustafadarwesh9108
@mustafadarwesh9108 5 жыл бұрын
Can someone tell me how I can get the dark keyboard for IOS. Changing keyboardappearance does not work :(
@marufhasan9365
@marufhasan9365 5 жыл бұрын
keep them coming.
@joelalvarezhernandez4228
@joelalvarezhernandez4228 5 жыл бұрын
hI, i have a problem , when I write CupertinoApp it says : The method 'CupertinoApp' isn't defined for the class 'MyApp'. I dont know why, I imported the cupertino library, import 'package:flutter/cupertino.dart';.
@andrewbrogdon558
@andrewbrogdon558 5 жыл бұрын
Well that's weird. We'd probably need to see the actual code to know what the issue is, and KZbin's comment section isn't all that great for sharing code. I'd try creating a post on StackOverflow. A lot of good Flutter devs hang out answering questions there, and you should be able to get things sorted out.
@joelalvarezhernandez4228
@joelalvarezhernandez4228 5 жыл бұрын
@@andrewbrogdon558 at the end I solved it, my flutter was 500 days without updates😂, after the update it worked, thank you anyway
@andrewbrogdon558
@andrewbrogdon558 5 жыл бұрын
@@joelalvarezhernandez4228 Yeah, I'm pretty sure the SDK team has done some coding in between then and now! Glad you got it working. :)
@SethuSenthil
@SethuSenthil 5 жыл бұрын
Can I use this package on Android?
@Provaplaylist
@Provaplaylist 5 жыл бұрын
I have followed the tutorial and I getting an error when I push button to go in the DetailScreen flutter: The following assertion was thrown during a scheduler callback: flutter: There are multiple heroes that share the same tag within a subtree. flutter: Within each subtree for which heroes are to be animated (i.e. a PageRoute subtree), each Hero must flutter: have a unique non-null tag. flutter: In this case, multiple heroes had the following tag: Default Hero tag for Cupertino navigation bars flutter: with navigator NavigatorState#12aa8(tickers: tracking 2 tickers) flutter: Here is the subtree for one of the offending heroes: flutter: # Hero(tag: Default Hero tag for Cupertino navigation bars with navigator flutter: NavigatorState#12aa8(tickers: tracking 2 tickers), state: _HeroState#a54ec) How can I fix???
@darrendai6412
@darrendai6412 4 жыл бұрын
navigationBar: CupertinoNavigationBar( middle: (i == 0) ? Text('Articles') : Text('Views'), transitionBetweenRoutes: false, // add this line ), but I don't know why
@heshansandeepa9471
@heshansandeepa9471 2 жыл бұрын
Very nice
@flutterdev
@flutterdev 2 жыл бұрын
Thank you, Heshan! We appreciate your unwavering support 🙌
@sarahaimen5602
@sarahaimen5602 5 жыл бұрын
Hi, Can you tell which ide it was.
@ShivamJha00
@ShivamJha00 4 жыл бұрын
Android studio or intellij
@barbieroalex
@barbieroalex 5 жыл бұрын
Nice thank you!
@-leovinci
@-leovinci 5 жыл бұрын
The codes without so many underlines are much more artistic...
@thundergabriel
@thundergabriel 4 жыл бұрын
8:48 This is the why React Native create Hooks . Wrapper Hell ❗❗❗❗☢
@zzzyyyxxx
@zzzyyyxxx 4 жыл бұрын
Flutter also has hooks, as a package: pub.dev/packages/flutter_hooks. Check out some of the other packages by the author, some are particularly cool, such as the freezed one, which gives you algebraic data types like in Typescript, Kotlin, Haskell, and so on: pub.dev/packages/freezed
@Dorumin
@Dorumin 5 жыл бұрын
This video would've been better if it showed how to actually use the return value from Navigator.pop :P
@naderkhaled9410
@naderkhaled9410 5 жыл бұрын
Where is the next video about Ml Kit with flutter
@flutterdev
@flutterdev 5 жыл бұрын
It's in post-production now. Should be out within the next week, I think.
@mohamedsamy2315
@mohamedsamy2315 4 жыл бұрын
can send to ios and Andriod users link to download my app if I change in it at any time.. (How to upload my app to ios users)
@kamalabdullayev8505
@kamalabdullayev8505 5 жыл бұрын
Hi! Anyone here knows how to reduce video size (compress video) by using flutter?
@christopherjonson7670
@christopherjonson7670 5 жыл бұрын
And don't forget to use SafeArea inside CupertinoPageScaffold's child, like that: @override Widget build(BuildContext context) { return CupertinoPageScaffold( navigationBar: CupertinoNavigationBar(), child: SafeArea( child: And your content is here ) ); }
@Shanboss277
@Shanboss277 4 жыл бұрын
Thank you kind sir.
@sodiboo
@sodiboo 4 жыл бұрын
"cupertino package" but... it's part of the flutter package... import "package:flutter/cupertino.dart";
@fredv9999
@fredv9999 5 жыл бұрын
Nice tutorial ! . I tried as well to develop Cupertino Theme app. I get the following issues: SearchBar not available, Activity indicator not available with Cupertino theme, Tap on buttons is not the same as native ios App (button is grayed when tap on iOS), no access to native MapView. But for other components it is really nice !!
@alexisdvt
@alexisdvt 5 жыл бұрын
An iOS developer dislike this video...
@AbdullahGameDev
@AbdullahGameDev 4 жыл бұрын
Why?
@ryadhiprasetya
@ryadhiprasetya 5 жыл бұрын
Can i use this for android? So i can bring beauiful ios ui for android user. Hahaha
@Pablo_IF
@Pablo_IF 5 жыл бұрын
Yes, you can
@danielduvana
@danielduvana 5 жыл бұрын
Are you planning on making more widgets like Switch.adaptive? It would be amazing to have more widgets have "adaptive" constructors :)
@leventkantaroglu7892
@leventkantaroglu7892 5 жыл бұрын
Thanks
@johnny.s7036
@johnny.s7036 5 жыл бұрын
sooooo cool
@hoekbrwr
@hoekbrwr 4 жыл бұрын
And the war between Apple and Google keeps you busy. special boilplate for each platform. I think the whole idea of using Cupertino widgets is not what you advertize 1 code for all! and then we have web, and other platforms. The function of the widgets stays the same, but they look different on another platform. WHY NOT DO ALL DIFFERENCE IN THE BACKGROUND WITH 1 SWITCH IoS/wEB/aNDROID???
@ydahm
@ydahm 5 жыл бұрын
Loving flutter!!
@BRC762
@BRC762 5 жыл бұрын
Up!
@asdf-e3d
@asdf-e3d 3 жыл бұрын
Live Slow Die Whenever!!!
@dimarostopira1438
@dimarostopira1438 5 жыл бұрын
Fatal error: UnexpectedCuteGirlException at the end of a video
@gosnooky
@gosnooky 4 жыл бұрын
Meh, I'll use Material all the way. Material looks better than Cupertino. Plus, I want my iOS users to feel a bit uncomfortable.
Dart Streams - Flutter in Focus
8:01
Flutter
Рет қаралды 263 М.
Best of CES 2025
14:50
The Verge
Рет қаралды 492 М.
"Идеальное" преступление
0:39
Кик Брейнс
Рет қаралды 1,4 МЛН
Ful Video ☝🏻☝🏻☝🏻
1:01
Arkeolog
Рет қаралды 14 МЛН
10x Your Speed With Flutter
8:04
Flutter Mapp
Рет қаралды 83 М.
I Helped 2,000 People Walk Again
15:31
MrBeast
Рет қаралды 27 МЛН
Стыдные вопросы про Китай / вДудь
3:07:50
вДудь
Рет қаралды 4,7 МЛН
Async/Await - Flutter in Focus
9:11
Flutter
Рет қаралды 208 М.
Pragmatic State Management in Flutter (Google I/O'19)
33:25
Flutter
Рет қаралды 456 М.
#FlutterInProduction: Roadmap
6:41
Flutter
Рет қаралды 16 М.
#FlutterInProduction
1:07:32
Flutter
Рет қаралды 45 М.
EVERY Flutter Cupertino Widgets
19:47
Flutter Mapp
Рет қаралды 27 М.