TOP 5 Beginner MISTAKES In Flutter

แชร์
ฝัง
  • เผยแพร่เมื่อ 2 ต.ค. 2024

ความคิดเห็น • 74

  • @stackflow4007
    @stackflow4007 2 ปีที่แล้ว +2

    Awesome tips buddy. thanks

  • @xtraszone
    @xtraszone 3 ปีที่แล้ว +2

    I have created these packages:
    1. super_easy_in_app_purchase
    2. super_easy_permissions
    These will make your life a lot easier :-)

  • @nakedtech1865
    @nakedtech1865 3 ปีที่แล้ว +24

    I would love if you had your keyboard shortcuts/strokes available live during your talks! It would help everyone understand how you're getting from one point to another #flutterviking

    • @RobertBrunhage
      @RobertBrunhage  3 ปีที่แล้ว +4

      Didn't think of that at all, will do it next time!

    • @caballero75RS
      @caballero75RS 3 ปีที่แล้ว +1

      @@RobertBrunhage toggleScreencastMode on Vs Code

  • @Dragonruler1
    @Dragonruler1 2 หลายเดือนก่อน

    bro for real i love you man keep going

  • @aayushbisen89
    @aayushbisen89 4 ปีที่แล้ว +2

    Amazing content Robert! Keep going 💙

  • @Amro_Dubai
    @Amro_Dubai 4 ปีที่แล้ว +3

    Great tips, I think it could've been more visual for the 2nd advice if you had a simulator demonstration but good work overall.

    • @RobertBrunhage
      @RobertBrunhage  4 ปีที่แล้ว +1

      Note taken! Thanks for the feedback :)

    • @Amro_Dubai
      @Amro_Dubai 4 ปีที่แล้ว

      Robert Brunhage Great work, looking forward to seeing more.

  • @mirxtremapps
    @mirxtremapps 2 ปีที่แล้ว

    CustomWidgets or helperMethods? great question... so you should be carefull with the context and setState... think about if you need to rebuild all UI or just a piece of code. thanks for this video

  • @darksidegames3136
    @darksidegames3136 4 ปีที่แล้ว +1

    Good work bro
    And may God bless u

  • @h3w45
    @h3w45 4 ปีที่แล้ว +6

    while i absolutely support the device preview package and appreciate it's author work, but keep in mind it's not 100% accurate, i used different android emulator screen sizes, and it's very different from the package, so only use the package as an estimate don't spent hours coding your UI thinking it's not adapting to screen size.

    • @RobertBrunhage
      @RobertBrunhage  4 ปีที่แล้ว +1

      It's always best to test on the devices in the end, I agree but it's a good guideline!

  • @user-vx1sy4zv2r
    @user-vx1sy4zv2r 3 ปีที่แล้ว +1

    generatedpluginregistrant flutter error.... Please help me bro

  • @chrisl4211
    @chrisl4211 3 ปีที่แล้ว +1

    can we use dio and cookieJar to keep login and use the cookies to do post request? i cannot find any tutorial. can you teach me?

  • @someguy007
    @someguy007 3 ปีที่แล้ว +1

    hey there great Tuts. Thanks a lot
    @3:24 Whats the difference between putting those Text widgets in a named Container(like a function) and then calling it inside the body?
    Instead of putting it inside of a StatelessWidget class?

  • @PadamShrestha
    @PadamShrestha 4 ปีที่แล้ว +5

    Thanks for the tip. Your videos are high quality. There are tons of way of using build environments on Flutter. Could you make a video how you use build environments (without flavours).

    • @RobertBrunhage
      @RobertBrunhage  4 ปีที่แล้ว +2

      Thanks really appreciate it!
      I am actually in the stage of learning build environments (without flavors) right now. So that will probably be coming soon!

    • @PadamShrestha
      @PadamShrestha 4 ปีที่แล้ว

      @@RobertBrunhage great news. Will be waiting for that.

  • @slahomar1497
    @slahomar1497 3 ปีที่แล้ว +1

    Is flutter good? I have seen lots of people talking about it and that it is bad and has lots of issues, and I am afraid to begin, what do you think ?

    • @kahanx10
      @kahanx10 2 ปีที่แล้ว

      Those reviews must have come from intolerant newbies, professional coders can even code missiles with Fortran, so if you love the feel of something, just forget what others has to say, and go for it!

  • @williamdavies2729
    @williamdavies2729 2 ปีที่แล้ว +1

    bootleg kalle hallden lmao

  • @donathmm3881
    @donathmm3881 4 ปีที่แล้ว +5

    1:19 how did you import it right away with a shortcut 🤩?

    • @RobertBrunhage
      @RobertBrunhage  4 ปีที่แล้ว +10

      This is just a normal import with ctrl+. but for some reason the recording didn't show the popup window 😅

  • @Ondal1
    @Ondal1 4 ปีที่แล้ว +3

    Why do you prefer extracting into private widgets, over extracting into a method building the widget?
    I prefer the latter, as this keeps me in direct contact with instance variables and state, since the method is part of the same class. If at some point the method becomes reusable, then it can become a separate widget.

    • @RobertBrunhage
      @RobertBrunhage  4 ปีที่แล้ว +2

      There is a reason we have StatelessWidgets compared to methods as there could be a lot of different side effects with the method approach.
      Check out Remi's answer here for a detailed explaination: stackoverflow.com/questions/53234825/what-is-the-difference-between-functions-and-classes-to-create-reusable-widgets

  • @daily_dose_of_polls
    @daily_dose_of_polls 3 ปีที่แล้ว +1

    hi..Could you please share a video how to integrate google fit to flutter app? How I start to learn these things?

  • @mikhailhumphries
    @mikhailhumphries 2 ปีที่แล้ว +1

    Why did you stop making videos?

    • @RobertBrunhage
      @RobertBrunhage  2 ปีที่แล้ว

      Burned out... Working on a really cool video now though 😎

  • @daryladhityahenry
    @daryladhityahenry 3 ปีที่แล้ว +1

    Wow.. The fifth tip really amazed me.. I mean.. In other programming language, I also do this, but I don't know that in dart (or flutter?), they do extensive documentation inside it. Thanks for pointing that out. :D.
    By the way, I want to ask you something Robert. Do we really actually need state management? because if we use Navigation onGenerateRoute, we can use it as our app builder structure right? I mean, that's where we can assemble everything like http client, controller, auth etc. We can put all our dependencies there, so it will all connected. Is it right? Or not?
    Thanks.

  • @zxenon_
    @zxenon_ 4 ปีที่แล้ว +2

    Great great tips. So you're Swedish, aWay -- aVay 🙂

  • @PankajNikam
    @PankajNikam 4 ปีที่แล้ว +3

    Hi Robert, nice video, can you please share what font are you using? The font looks nice for coding. I have been using Fira Code for the ligature support. Please let me know.

    • @RobertBrunhage
      @RobertBrunhage  4 ปีที่แล้ว +2

      I am using Jetbrains Mono, you can find it here: www.jetbrains.com/lp/mono/

    • @PankajNikam
      @PankajNikam 4 ปีที่แล้ว +1

      @@RobertBrunhage thank you so much 🙂

  • @randomprog115
    @randomprog115 4 ปีที่แล้ว +1

    Hi sir where is the package that you are talking about in problem number 4?

    • @RobertBrunhage
      @RobertBrunhage  4 ปีที่แล้ว +2

      Forgot to add in the description but added now!
      This is one that I usually use:
      pub.dev/packages/device_preview
      But there are others also like:
      pub.dev/packages/flutter_storyboard

  • @oswaldoolea2889
    @oswaldoolea2889 2 ปีที่แล้ว

    in windows extract widget keyboard shortcut: ctrl + .

  • @lordswaggity1213
    @lordswaggity1213 4 ปีที่แล้ว +1

    It's Roberrrrrrrrrrrt

  •  3 ปีที่แล้ว +1

    Would be nice to see you VSCode Dart and Flutter related extensions. Seems pretty cool! 😎

  • @vikrampandian5296
    @vikrampandian5296 4 ปีที่แล้ว +1

    Brother plz do video about how to create login page with firebase database without doing Auth method plz help me brother

    • @RobertBrunhage
      @RobertBrunhage  4 ปีที่แล้ว

      I am not sure I follow. What kind of login do you want to do?

    • @vikrampandian5296
      @vikrampandian5296 4 ปีที่แล้ว

      @@RobertBrunhage the login page have only userid and password and like user id :"19uct41" and password : something i complete ui stuff for my collage and the login page is pending brother 😞 plz help me bro

  • @jakobbouchard
    @jakobbouchard 4 ปีที่แล้ว +1

    Hey! Just wondering, why do we put the MyApp class in a separate folder and not the MyHomePage instead?

    • @RobertBrunhage
      @RobertBrunhage  4 ปีที่แล้ว

      You can but the homePage in a seperate file instead if you want, makes no difference :)
      The idea is to just keep them separate!

    • @jakobbouchard
      @jakobbouchard 4 ปีที่แล้ว

      Robert Brunhage Alright cool! Thanks! Just started learning Flutter a couple of weeks ago and I love it hahaha

  • @tbm98
    @tbm98 4 ปีที่แล้ว +1

    Hi!
    what is the shortcut similar to extract a part of build method to private class on android studio ?

    • @RobertBrunhage
      @RobertBrunhage  4 ปีที่แล้ว

      I believe it's alt+enter to get the alternative but not sure.

    • @tbm98
      @tbm98 4 ปีที่แล้ว +1

      @@RobertBrunhage I have tried and found solution for it in android studio. just right click > refactor > extract flutter widget

  • @howed
    @howed 2 ปีที่แล้ว

    thank you :)

  • @Flutterdev6391
    @Flutterdev6391 4 ปีที่แล้ว +1

    Plz make a project on shareit like app in fluttter

    • @RobertBrunhage
      @RobertBrunhage  4 ปีที่แล้ว

      Will look in to it! :)

    • @Flutterdev6391
      @Flutterdev6391 4 ปีที่แล้ว +1

      @@RobertBrunhage thanks sir it is possible in flutter?

    • @RobertBrunhage
      @RobertBrunhage  4 ปีที่แล้ว +2

      @aktu quantum Have not looked in to it but I would be surprised if you couldn't! In "worst" case you have access to Android and iOS etc with Platform channels 😀

  • @valendionpradanapasalu4164
    @valendionpradanapasalu4164 ปีที่แล้ว

    Nice Sir

  • @rockstylex33
    @rockstylex33 2 ปีที่แล้ว

    The biggest problem BY FAR with Flutter developers, and mobile developers in general, is the incorrect and improper use of state management. Just FYI, state management is NOT for just storing your apps data. Most of the data in your app should not go in state management. Variables that are private to one page should never go in state management. Devs need to think for themselves instead of doing what is popular without understanding why.

    • @joachiv
      @joachiv 2 ปีที่แล้ว

      Pls explain more, or link a resource

  • @Ali-cb3xt
    @Ali-cb3xt 4 ปีที่แล้ว +1

    3:15 which button you press ?

    • @RobertBrunhage
      @RobertBrunhage  4 ปีที่แล้ว +1

      For some reason the popup doesn't show. But this is just ctrl+. and select Extract Widget :)

  • @KhampasertKEOSESOMPHAN
    @KhampasertKEOSESOMPHAN 4 ปีที่แล้ว +1

    Hello bro

  • @ApoorvPandeyDev
    @ApoorvPandeyDev 4 ปีที่แล้ว +2

    Disliking this because you haven't mentioned any shortcuts and how to do the specific thing like exporting widget.

    • @RobertBrunhage
      @RobertBrunhage  4 ปีที่แล้ว

      Depends on your editor but in VSCode you can do it with ctrl + . to get the menu to select things like replace with widget and so on :)

  • @xihuny
    @xihuny 4 ปีที่แล้ว +1

    Do a tutorial on Riverpod... ☺️

    • @RobertBrunhage
      @RobertBrunhage  4 ปีที่แล้ว +2

      Using it extensively in my current app listwell.app/. The tutorial will come for sure just want to wait a little as it's changing quite a lot now during the early stages!

    • @xihuny
      @xihuny 4 ปีที่แล้ว

      @@RobertBrunhage Great. As always wonderful video :)

  • @АлександрИнженер-д4б
    @АлександрИнженер-д4б 4 ปีที่แล้ว +1

    Its info suck

  • @sakshamaggarwal6991
    @sakshamaggarwal6991 4 ปีที่แล้ว +4

    3:25 which shortcut key you used

    • @RobertBrunhage
      @RobertBrunhage  4 ปีที่แล้ว

      It's just ctrl+. but the recording doesn't show the popup window :)