The Best Flutter Responsive UI Setup

Поделиться
HTML-код
  • Опубликовано: 9 окт 2024
  • In this tutorial I want to go over the code to build a base widget which can be used for building responsive UI's in Flutter.
    Written: www.filledstac...

Комментарии • 276

  • @FilledStacks
    @FilledStacks  5 лет назад +30

    For some reason I forgot to say Thank you for the 10K subscribers!! It's absolutely crazy 😍😍 Thank you to everyone that watches and subscribed, I hope to keep delivering real programming value you can apply every day.
    Responsive Builder package out: pub.dev/packages/responsive_builder

    • @FilledStacks
      @FilledStacks  5 лет назад +2

      Check out the support by MKBHD as well!! twitter.com/FilledStacks/status/1183359494753017856

    • @getmmg
      @getmmg 5 лет назад +2

      @@FilledStacks Congratulations on the milestone. Keep making these awesome videos.

    • @FilledStacks
      @FilledStacks  5 лет назад +1

      @@getmmg Thanks a lot man. I appreciate the support. I'll try my best to keep putting out good content.

    • @ParabTarak
      @ParabTarak Год назад

      With these kind of smart videos you deserve at least a million subs. Basically all flutter users.🙌

    • @FilledStacks
      @FilledStacks  Год назад +1

      @@ParabTarak Haha, I wish I could get everyone to watch it. Maybe one day 😁

  • @matthewreevesdavis8106
    @matthewreevesdavis8106 5 лет назад +17

    This is the best implementation of Flutter responsive design I have ever seen. Thank you bro! This has helped me more than I can tell you👊

    • @FilledStacks
      @FilledStacks  5 лет назад +2

      I can definitely live with this video being the best :) Hopefully the follow up where I make use of the setup is even better 😊 Thanks for watching and providing feedback. I appreciate it.

    • @matthewreevesdavis8106
      @matthewreevesdavis8106 5 лет назад +1

      FilledStacks bell is on. Look forward to it 👌

  • @berosolo866
    @berosolo866 5 лет назад +9

    you change my whole experience with flutter and programming...
    great tutorials

    • @FilledStacks
      @FilledStacks  5 лет назад +1

      That's amazing news. Thank you for letting me know. I appreciate it ❤️😁

  • @getmmg
    @getmmg 5 лет назад +7

    I was thinking about responsive UI and just when I found a pub package you have posted this.

    • @FilledStacks
      @FilledStacks  5 лет назад +3

      Haha nice! Yeah there's some cool pub packages but they don't quite do what I wanted so I figured I'd share how I quickly built my own setup to help with responsive UI.

  • @pinkdiscomosh2766
    @pinkdiscomosh2766 4 года назад

    Wow! Super helpful. I was just building a little app recently and hated the fact that I had media queries everywhere just to determine device sizing. What a great solution.

    • @FilledStacks
      @FilledStacks  4 года назад

      Thank you! The responsive_builder package wraps all this up nicely.

  • @mruduladdipalli5417
    @mruduladdipalli5417 3 года назад

    I came to this video after 8 months, previously it was not understandable, now I have understood them very well.

    • @FilledStacks
      @FilledStacks  3 года назад +1

      That's awesome to know. Thanks for coming back. All my videos are for non beginners in programming. Once you understand the general programming concepts my videos will make a lot more sense

    • @mruduladdipalli5417
      @mruduladdipalli5417 3 года назад +1

      @@FilledStacks , yes yes yes :)

  • @JacquesvanWyk
    @JacquesvanWyk 5 лет назад +35

    Love your stuff man and love that you are South African!!!! We need more from SA on youtube hehehe

    • @FilledStacks
      @FilledStacks  5 лет назад +9

      Thanks Jacques! And thank you for the support, I appreciate it. I'll represent us in the Development space as well as I can 🙌🙌 😁

  • @danielec6142
    @danielec6142 5 лет назад +1

    Hi Dane,
    Daniele here, really great video as always! One thing you might want to consider to determine if a device is a tablet or not is to use MediaQuery.of(context).size.shortestSide which will do the landscape/portrait check you do on minute 8:45 for you!
    Thanks for the great video! I was really looking for something like this!

    • @FilledStacks
      @FilledStacks  5 лет назад +1

      I'm replying here so it can get out of my unreplied comments haha. Thanks daniele

  • @gmc254quads6
    @gmc254quads6 5 лет назад

    You will never really get how much I appreciate your videos. Thanks a lot.

    • @FilledStacks
      @FilledStacks  5 лет назад +1

      I'm happy to hear that. Thank you for the support from the beginning. 😊

  • @BanchaRajainthong
    @BanchaRajainthong 4 года назад +1

    Thanks for the great tutorial on a responsive topic.
    You also introduce the Device_preview package that I never known before even I already finished 2 flutter apps and publish on the play store :).

    • @FilledStacks
      @FilledStacks  4 года назад

      Niiice! Thanks for watching. I'm happy to hear that you learned something new :)

  • @mosesbinzi339
    @mosesbinzi339 5 лет назад +1

    Can't wait for the part II, great work, i appreciate your stuff man

    • @FilledStacks
      @FilledStacks  5 лет назад

      Thanks man. I'm working on it 😄 I hope it doesn't dissapoint

  • @sivavenkateshr
    @sivavenkateshr 3 года назад +1

    Hey bro, your videos are awesome. Your content helped me lot in the learning process. Thank you.
    Love from India.

    • @FilledStacks
      @FilledStacks  3 года назад +1

      Thank you very much. I appreciate the kind words. I'm happy that I could help you on your learning journey.

  • @julianarnold7992
    @julianarnold7992 5 лет назад +11

    Mind blown once again!

    • @FilledStacks
      @FilledStacks  5 лет назад +3

      Haha 🤯😱 yeeeaaaahhh man! That's what I like to hear. I think this will be a big step towards writing once for multiple platforms 💪

  • @elherediaenc
    @elherediaenc 5 лет назад +3

    Excellent tutorial! Could you please show how to implement this responsive ui basewidget with your provider architecture? That'll be the ultimate ULTIMATE architecture implementation!

    • @FilledStacks
      @FilledStacks  5 лет назад +1

      I definitely will. The next video is making use of the base widget builder to create a readable responsive UI pattern. Then I'll use that as the base and build the state management portion (provider) ontop of that.

    • @elherediaenc
      @elherediaenc 5 лет назад

      @@FilledStacks nice. Tell me if my assumption is correct: inside the baseview, we'll have the basewidget implementation. We'll pass the builder with the parameters for the baseview and basewidget too. Is that correct?

    • @FilledStacks
      @FilledStacks  5 лет назад

      @@elherediaenc Maybe, I haven't tried all the options I have in mind yet. Try that and let me know how it goes.

  • @RohithkannaDuraiswamy
    @RohithkannaDuraiswamy 4 года назад

    As a beginner in flutter dev, I was recommended to check out this channel and boy was it worth it :)
    I'd like to see your complete setup, like what extensions you use and stuff. So, can you share that? I think a lotta peeps would be interested in that too. That nested indent highlighter is dope!

    • @FilledStacks
      @FilledStacks  4 года назад +1

      Nice! I'm happy you watched some of the videos. I don't have a special setup. I use VS code with the dart code plugin and enable the flutter UI options in the settings for dart code. Open vs code settings, type flutter ui in the search box. Enable all the check boxes that come up then restart. Thats's basically it. no special setup my side.

    • @RohithkannaDuraiswamy
      @RohithkannaDuraiswamy 4 года назад

      @@FilledStacks That's all, huh? Sweet! Thanks! And g'luck with ur channel! I'm looking forward to more of your content😉

    • @FilledStacks
      @FilledStacks  4 года назад +1

      @@RohithkannaDuraiswamy Yep. I keep it simple :D

  • @Dave-laye
    @Dave-laye 5 лет назад +1

    I'm a flutter dev and i love your usefull Channel ☺️

    • @FilledStacks
      @FilledStacks  5 лет назад +1

      That's great news man. Thank you for watching.

  • @bluyetiinc7553
    @bluyetiinc7553 3 года назад

    Hello, just came across your channel. I am trying to learn flutter for the first time and after last programming around 30 years back...I can see that your content is like a goldmine. I am doing this to see if I can takeover my own apps from the current outsourced dev team and rebuild them in flutter. However, from your channel I can see that there are a lot of architectural considerations, so will try and digest them over time. If you have any suggestions on where to continue this path of learning please let me know

    • @FilledStacks
      @FilledStacks  3 года назад

      That's awesome! 30 years ago, That's a long time.
      Well the first thing I would recommend is learning the SOLID principles in relation to programming in general. All my videos are examples of using those principles without telling the viewer. That's very important to me and my team.
      The first principle is the most important which is single responsibility. Give each flie a specific reason to live, and only ine reason. That should get you on the road to easy maintenance and expansion doen the line.

    • @bluyetiinc7553
      @bluyetiinc7553 3 года назад

      @@FilledStacks really appreciated Dane. I'll let you know from time to time how I get along..the key is not giving up.

  • @Merlinvn82
    @Merlinvn82 5 лет назад +1

    Yet, another awesome tutorial. Thank you very much.

    • @FilledStacks
      @FilledStacks  5 лет назад +1

      You're welcome! Thanks for watching :) and thanks for the feedback

  • @Salehalanazi-7
    @Salehalanazi-7 5 лет назад +1

    Keep em coming mate. Love your work

    • @FilledStacks
      @FilledStacks  5 лет назад

      I'll try my best! Thanks for the long term support, it's much appreciated.

  • @siya.abc123
    @siya.abc123 5 лет назад +1

    Thanks bro, I was looking for this on Friday. Thanks alot for the teachings

    • @FilledStacks
      @FilledStacks  5 лет назад

      Awesome man. Happy to have helped 😁

  • @user-uq7zx5nc3t
    @user-uq7zx5nc3t 4 года назад

    Really nice Content. So glad I stumbled upon your video.
    I realised I need to understand flutter layout better, because I'm trying to do DnD to populate Rows/Columns, and have these container adapt to the available screen size / available space.
    Anyway, on wards to part 2, where I can start to see how you use the base widget... Much appreciated.

    • @FilledStacks
      @FilledStacks  4 года назад

      Hey, you again, sorry I get the comments latest first haha. If you'd like to see it in action in an application that already exists there's a flutter web episode that I use the package in. I built a package called responsive_builder which contains all these widgets and more. I think it's flutter web part 3

    • @user-uq7zx5nc3t
      @user-uq7zx5nc3t 4 года назад

      @@FilledStacks yep, i saw your lib on pub.dev, so I will check it out... Cheers

  • @HenryMainaDn
    @HenryMainaDn 5 лет назад +1

    Tutorials always on point. Thanks.

    • @FilledStacks
      @FilledStacks  5 лет назад +1

      Thanks man. I appreciate it 😊

  • @bernard1751
    @bernard1751 5 лет назад

    Thanks for the valuable content man!!💪🏼 I decided to use this videos.. and if I dont know a widget or concept, ill go and google it en learn about it.. and then continue this video!
    If you keep your videos up, maybe one of these days ill also be as pro as you!😁

    • @FilledStacks
      @FilledStacks  5 лет назад

      That's the goal 😊 as long as you keep developing you can definitely get to where I am at.

  • @compton8301
    @compton8301 5 лет назад

    This is amazing! Sata Frika's very own!!!!! Keep it up dude, keep representing us! 🏆💯💥

    • @FilledStacks
      @FilledStacks  5 лет назад +1

      Haha Thanks man! I'll try my best to keep it up. Thanks for the support.

  • @leonardoventocilla3275
    @leonardoventocilla3275 4 года назад

    Man, you are the master !! Congratulations. Thanks for sharing ..

    • @FilledStacks
      @FilledStacks  4 года назад

      Thanks man. Please keep in mind this is the videos for when I was creating this package (pub.dev/packages/responsive_builder ). You don't have to create all the widgets. They're all in this package.

  • @ariola.3625
    @ariola.3625 4 года назад +2

    Thank you so much! This Tutorial really helped me a LOOOOOOOOOOT.

    • @FilledStacks
      @FilledStacks  4 года назад

      You're very welcome. I 'm happy to have helped.

  • @joseubaldocarvajal6472
    @joseubaldocarvajal6472 3 года назад

    Please zoom in your IDE, terminal, etc.., a lot of us watch the videos through our cellphone. Great content. Thanks a lot.

    • @FilledStacks
      @FilledStacks  3 года назад

      Hey hey, Thank you. I'm happy to make the content and share it.
      And I do zoom in usually. Not too big because it'll make it confusing with all the scrolling. But I can see if i can set it up better so you can see the code better.

    • @Gd-jq6mz
      @Gd-jq6mz 3 года назад

      @@FilledStacks Pretty cool that you still respond a year and half In.

    • @FilledStacks
      @FilledStacks  3 года назад

      @@Gd-jq6mz I'm here to teach and share :) hopefully I still have the same mindset even 5 years from now and every single comment gets a reply. It gets more difficult as the channel grows but it's still manageable now. Even though I reply late, I always reply.

    • @Gd-jq6mz
      @Gd-jq6mz 3 года назад

      @@FilledStacks well that's the best quality to have for an entrepreneur, empathy to his or her users, may be you should be one.

    • @FilledStacks
      @FilledStacks  3 года назад

      @@Gd-jq6mz I think I should be one too. That's why i've been running this company for 6 years :D

  • @rise4gamers506
    @rise4gamers506 2 года назад

    Appreciated Efforts!
    You save my time sir.

    • @FilledStacks
      @FilledStacks  2 года назад +1

      I'm happy to hear that! thanks for watching and leaving a comment.

  • @JustMe2222222
    @JustMe2222222 5 лет назад

    Can't be better. You are the best.

  • @CloroxBleach-vy1dj
    @CloroxBleach-vy1dj 4 года назад

    Instant subscriber! This is so helpful! I am confused on one thing, however. If I want to create, lets say, a Login Screen, and my widget tree is composed of a container, a column, and then plenty of rows and buttons, texts, etc. How do I scale each component? Do I put everything in a container with a child of BaseWidget and return my desired widget?

    • @FilledStacks
      @FilledStacks  4 года назад

      Thank you!! I'd say watch part 2, that's where I build the responsive widgets that make use of this underlying setup we build in this part. In addition to that, once you understand it use the package I made to remove all that code from your code base (pub.dev/packages/responsive_builder).
      THEN, haha, to answer your question. You'll supply a separate view / widget per layout. You can go into fine details using that setup, so if you want a widget one way for mobile and tablet and different for desktop. You use a ScreenTypeLayout and supply a view for mobile and one for desktop. It'll them automatically swap as the views resize.
      I hope that helps. Thanks for the sub! :)

  • @RobertWildling
    @RobertWildling 4 года назад

    This is fantastic stuff! Thank you very much for sharing!

    • @FilledStacks
      @FilledStacks  4 года назад

      It's my pleasure. Thanks for all the positive reinforcement. I appreciate you taking the time to comment.

  • @thiyraashdavid7784
    @thiyraashdavid7784 4 года назад

    Impressive man! Crystal clear man!

    • @FilledStacks
      @FilledStacks  4 года назад

      Awesome!! Thanks for checking it out. haven't seen you around the slack in a while

    • @thiyraashdavid7784
      @thiyraashdavid7784 4 года назад

      @@FilledStacks hahahaha yes was busy with something else. Quite happy you still remember me man!

  • @hammadpervez4568
    @hammadpervez4568 4 года назад

    i really love you tutorial. Please make more

    • @FilledStacks
      @FilledStacks  4 года назад +1

      I definitely will be making more :)

  • @pierremarais7669
    @pierremarais7669 4 года назад

    Hi FilledStack I love your channel, please do a video on using existing sqlite database which just display data in table formats, please

    • @FilledStacks
      @FilledStacks  4 года назад

      Hey Pierre, Thank you. I appreciate you watching the videos. I am planning on doing a sqlite video, not specifically about displaying data as a table but more about my setup, migration code, how I manage that and how I separate all of that into a more maintainable set of code.

  • @AllenWillian
    @AllenWillian 4 года назад

    Extremely useful as always. Thanks a lot!

    • @FilledStacks
      @FilledStacks  4 года назад

      It's my pleasure 😁 Thanks for watching.

  • @hugot8226
    @hugot8226 3 года назад

    Thank you so much, a lot of good ressources !

    • @FilledStacks
      @FilledStacks  3 года назад

      It's my pleasure. Thanks for watching and leaving a comment.

  • @randomizedrobot
    @randomizedrobot 3 года назад

    Great Suff man... Lovin it!!!:)

    • @FilledStacks
      @FilledStacks  3 года назад

      Thank you!! Happy that You liked it.

  • @maksimryabovol4592
    @maksimryabovol4592 4 года назад

    There is a lot of useful information. Thank you! You are really cool!

    • @FilledStacks
      @FilledStacks  4 года назад

      😎😎 thanks man. Glad to hear you got some value from it.

  • @_Karanjot
    @_Karanjot 4 года назад

    Hey! great tutorial ! Btw what's the shortcut for the constructor being autogenerated?

    • @FilledStacks
      @FilledStacks  4 года назад

      Thank you. hey, i don't know which one you're referring to but I use awesome flutter snippets extension in VS code and when there's a quick option I press ctrl+. on the line marked in red and select the option to take.

  • @mawulijo
    @mawulijo 5 лет назад

    Impressive work. Thank you man

  • @oliverbytes
    @oliverbytes 5 лет назад

    Another awesome tutorial!!!! Keep it up bro!

    • @FilledStacks
      @FilledStacks  5 лет назад

      Thank you! I'll try my best to keep delivering.

  • @cxT9344
    @cxT9344 4 года назад

    thanks for share this amazing architecture

  • @alliu6757
    @alliu6757 5 лет назад

    Thank you for your awesome tutorial !!!

    • @FilledStacks
      @FilledStacks  5 лет назад

      It was my pleasure to create 😊 Thanks for leaving a comment 🏵

  • @iansamz
    @iansamz 5 лет назад +1

    So awesome.... Was wondering how to do this

    • @FilledStacks
      @FilledStacks  5 лет назад

      Great! If you're wondering about anything else please let me know.

    • @iansamz
      @iansamz 5 лет назад +1

      @@FilledStacks Maybe firebase authentication with state management.. That would be great... Learnt alot from your channel

    • @FilledStacks
      @FilledStacks  5 лет назад

      @@iansamz I'm planning on doing something like that soon.

  • @ismailkoyuncu5518
    @ismailkoyuncu5518 3 года назад

    Thank you! I really learned a lot from you. Can you will to do with the Adode XD ?

    • @FilledStacks
      @FilledStacks  3 года назад +1

      Thanks for letting me know. I'm very happy to hear that I've helped you on your journey. I don't use Adobe XD, mostly Figma and sketch. But it's the same as all other vector based design tools, you can watch any tutorial and apply it to the other since they all have the same basics to cover the fundamental things required to design anything.

    • @ismailkoyuncu5518
      @ismailkoyuncu5518 3 года назад

      @@FilledStacks Thanks for explations.

    • @FilledStacks
      @FilledStacks  3 года назад +1

      @@ismailkoyuncu5518 You're welcome. I'm happy to help

  • @selandeemantha4933
    @selandeemantha4933 4 года назад

    Great tutorial, thank you very much

    • @FilledStacks
      @FilledStacks  4 года назад

      Happy you found some value in it. thanks for watching

  • @rodinsuniga5549
    @rodinsuniga5549 4 года назад

    Thank you! I really learned a lot from you.

    • @FilledStacks
      @FilledStacks  4 года назад

      You're very welcome! I'm happy to hear that.

  • @markdioneeb8997
    @markdioneeb8997 3 года назад

    Just to clarify, correct me if I wrong, it doesn't directly makes your UI responsive, it only gives you a vital information/guide on adjusting the responsiveness of you UI right? btw, awesome video

    • @FilledStacks
      @FilledStacks  3 года назад

      Yes you are correct. In this video we build the responsive_builder package.

    • @markdioneeb8997
      @markdioneeb8997 3 года назад +1

      @@FilledStacks Oh, I was just about to do what you did on the video when I realized that it's already available on pub.dev as package and you're also the author!, hahah thanks

    • @FilledStacks
      @FilledStacks  3 года назад

      @@markdioneeb8997 yup! That's why I made the package :D all packaged up neatly.

  • @Maystro_eg
    @Maystro_eg 5 лет назад +1

    very important , thank you very much i like your tuts., simple and easy to understand
    i have problem, to share variable between screens, i try ( Provider ) but the class members must be static , how to share member value provider class without set to static member, i want the value stay as is in every screen i use ?
    thanks in advance ! , i hope you understand my bad english

    • @FilledStacks
      @FilledStacks  5 лет назад +1

      Hey thanks for the feedback. Provide your value above the Material App to make it available to all your child widgets in the tree.

    • @Maystro_eg
      @Maystro_eg 5 лет назад

      @@FilledStacks thanks, i'll try , and give you the result if you please

    • @Maystro_eg
      @Maystro_eg 5 лет назад

      @@FilledStacks Thanks, Works fine, thank you for your help

    • @FilledStacks
      @FilledStacks  5 лет назад

      @@Maystro_eg You're welcome

  • @ajnaf7277
    @ajnaf7277 4 года назад

    Thanks for the great tutorial
    is there a way to use one TextEditingController for landscape and portrait view?

    • @FilledStacks
      @FilledStacks  4 года назад +1

      You're welcome 😊 Yes. You can provide it with a provider or pass it through the constructor. I'd pass it through the constructor to separate it from the data model supply through provider. So one controller in the main view then pass it to the specialised views.

  • @KenanYusubov
    @KenanYusubov 5 лет назад

    Awesome tutorial. Which emulator you use? how to use ios emulator in windows?

    • @FilledStacks
      @FilledStacks  5 лет назад

      Thank you. I use the normal pixel 2 emulator. And You can't use the ios emulator on windows.

  • @cripz4203
    @cripz4203 4 года назад

    have you checked the screen_util package. It does the same plus also takes in account the text. It is much easier I believe, what's your opinion?
    PS: You are a wonderful creator.

    • @FilledStacks
      @FilledStacks  4 года назад

      I have checked it, it doesn't do anything that I do in responsive_builder. My package is for creating readable responsive UI. It's not for making everything look the same on different screen sizes. Which is what screen util is for. It's two very separate functionalities.

  • @oualitsenramdane454
    @oualitsenramdane454 4 года назад

    Very smart thank you for sharing!

  • @rossthemusicandguitarteacher
    @rossthemusicandguitarteacher 4 года назад

    This is AMAZING

    • @FilledStacks
      @FilledStacks  4 года назад

      Haha yyyeeaaaaaaahh!!! That's great man! Happy you're enjoying it. For some reason I'm only seeing these comments now

  • @impactsongs
    @impactsongs 4 года назад

    First of all Thank you for you package, now i'm facing a problem you OrientationLayoutBuilder return an object WidgetBuilder in portrait parameter and I can't return a StatefulWidget giving me this The argument type 'HomeScreenMob' can't be assigned to the parameter type 'Widget Function(BuildContext)'

    • @FilledStacks
      @FilledStacks  4 года назад

      Seems like you're assigning the widget directly instead of using a builder function (context) => HomeScreenMob.

  • @darelbitsy5027
    @darelbitsy5027 5 лет назад

    It’s seems like I have seen the same solution on Reddit, but there’s no official package claiming that solution. Do you plan on making a package ?

    • @FilledStacks
      @FilledStacks  5 лет назад

      I don't plan on making a package right now.

  • @bodehallak1552
    @bodehallak1552 Год назад

    brilliant 💙💙🎯🎯

    • @FilledStacks
      @FilledStacks  Год назад +1

      Happy to see that this is still useful. I've built this into a package if you don't feel like maintaining all that code pub.dev/packages/responsive_builder

  • @LalitPawar29
    @LalitPawar29 5 лет назад

    great tutorial, how you can used device preview in macOs? thanks in advance

    • @FilledStacks
      @FilledStacks  5 лет назад

      Hi thanks. I don't know, haven't tried it yet.

  • @hammadpervez4568
    @hammadpervez4568 4 года назад

    I have a problem with your structure that Do we need to design our app fully for each Device Specification like (Orientation, Tablet, Mobile)
    My 2nd question is How may we scale our Text and Image on Devices change? I really need your answers please

    • @FilledStacks
      @FilledStacks  4 года назад +1

      The problem you see is the solution that I see. That's the actual solution that we're building in this series. The responsive builder package contains all the code to do that now, this series just shows how it was built. The best way I think to handle a responsive UI that will make the code readable and easy to understand is to supply different layouts per device type / orientation. It's the most maintainable approach that I've seen. I came up with this after searching through all the existing responsive guides which were shitty. And for text use auto size text

    • @hammadpervez4568
      @hammadpervez4568 4 года назад

      @@FilledStacks Thank you so much bro for your detailed answer :).

  • @markdioneeb8997
    @markdioneeb8997 2 года назад

    I just want raise this issue/error, this is flutter web.
    "This Scaffold widget cannot be marked as needing to build because the framework is locked."
    I have 2 different Scaffold Layout
    Mobile - Scaffold with drawer
    Desktop - Scaffold without drawer
    Error happens when the Drawer is open on mobile, and I suddenly resized the screen into desktop, flutter somehow becomes confused on sudden disappearance of drawer since we rebuild the widget into a desktop layout having no drawer.

    • @FilledStacks
      @FilledStacks  2 года назад

      Yeah, I've seen that before. To keep one scaffold I would make the scaffold top level and then make the body of the scaffold reactive using the responsive_builder package.

  • @dhinesh534
    @dhinesh534 4 года назад +1

    The best

  • @vinamrasaxena7313
    @vinamrasaxena7313 4 года назад

    Hey what do you think about ScreenUtils for creating response UI?

    • @FilledStacks
      @FilledStacks  4 года назад +1

      Hey I think it's great if you want your UI to look the same on all the screens. My goal with this package is the opposite. I want my UI to look different on every screen, have a different layout, place items in different positions etc.

  • @ianoliveiradev
    @ianoliveiradev 5 лет назад

    i love flutter!!

  • @danumichael4864
    @danumichael4864 4 года назад

    great video thanks a lot sir

    • @FilledStacks
      @FilledStacks  4 года назад

      You're very welcome :) and Thank you

  • @YasinIlhan61
    @YasinIlhan61 5 лет назад

    Is second part will cover auto Text size for different devices?

    • @FilledStacks
      @FilledStacks  5 лет назад +1

      No. Just responsive layouts. I'll mention the use of AutoText the package if you want to use it for text resizing.

    • @YasinIlhan61
      @YasinIlhan61 5 лет назад

      @@FilledStacks i think you should mention also resizing Text for different devices because it's part of Responsive layouts. Thanks for this kind of amazing videos!

    • @FilledStacks
      @FilledStacks  5 лет назад +1

      @@YasinIlhan61 I'll try and mention it if it fits in anywhere. What I'm trying to provide is the architecture to make all those decisions. What I don't want to do is tell you guys what decisions to make. Given the layouts they can easily adjust their font sizing throughout the app using the sizing information. Better options exist for handling that globally with something like AutoText and even better ones that are built into your Provider architecture. If it adds value to the video I'll definitely mention it.

    • @YasinIlhan61
      @YasinIlhan61 5 лет назад

      @@FilledStacks Thanks.

  • @wehaveatweet7054
    @wehaveatweet7054 4 года назад

    Bro I'm Thabang from South Africa JHB can I ask how much you charge for creating an app I'm willing to come to Cape Town for this project

    • @FilledStacks
      @FilledStacks  4 года назад

      Sure. We have a minimum budget and engagement time. We don't take on projects that yield less than $10k USD in total. That's a minimum of $3500 USD a month for a minimum of 3 months. This gets you just a bit more than a weeks work with a release a month. This naturally has a longer development time given it's not constant work on your project.

  • @shankmang
    @shankmang 4 года назад

    How do I hide the toolbar ? I want to see only the app that is responsive to different screen sizes without the help of the toolbar.

    • @FilledStacks
      @FilledStacks  4 года назад

      remove the code for the toolbar.

    • @shankmang
      @shankmang 4 года назад

      @@FilledStacks i managed to find it before you replied to my comment. i realised that the responsive UI shown here is not like the type seen in HTML5. I had to reposition some of the widgets to be able to match for all devices given in the plugin.

    • @FilledStacks
      @FilledStacks  4 года назад

      @@shankmang Yes. The plugin is made specifically to make the development of a responsive UI more verbose and easier to read when going through the code.

  • @seanaguinaga
    @seanaguinaga 4 года назад

    Does this preform well if there a bunch of widgets?

    • @FilledStacks
      @FilledStacks  4 года назад +1

      The same as a normal widget implementation.There's nothing that forces additional redraws so it's literally the exact same as normal flutter.

  • @sachinmaharjan11
    @sachinmaharjan11 4 года назад

    is it good idea if i create a mixin n do that repetitive dirty stuff there

    • @FilledStacks
      @FilledStacks  4 года назад

      It might be. It depends on how much it improves or reduces the readability of the code. If it reduces the understanding of the code I opt for "keeping it in sight"

  • @pinkdiscomosh2766
    @pinkdiscomosh2766 4 года назад

    For anyone who trying to get the DevicePreview section working. There has been an update to how this syntax works since the recording of this video. Here is a link to the doc on this. pub.dev/packages/device_preview#quickstart

    • @FilledStacks
      @FilledStacks  4 года назад

      Thanks for sharing! i Appreciate it. I hope it helps some others.

  • @eduardohenao0
    @eduardohenao0 5 лет назад

    tried the
    void main() => runApp(
    DevicePreview(
    child: MyApp(),
    ),
    );
    but the version 0.2.4 says that devicepreview constructor doesnt have a parameter called child

    • @FilledStacks
      @FilledStacks  5 лет назад

      Is the package downloading properly?

    • @AbdullahGad95
      @AbdullahGad95 4 года назад +3

      make it like that
      void main() => runApp( DevicePreview(
      builder: (context) => MyApp(),
      ),);

    • @alrazibashir846
      @alrazibashir846 4 года назад

      @@AbdullahGad95 I was stuck on this! Thanks!

    • @antonicodes
      @antonicodes 4 года назад

      @@AbdullahGad95 Thanks!!!!

    • @soumyasau1157
      @soumyasau1157 4 года назад

      @@AbdullahGad95 thanks bro!

  • @kemalemreball701
    @kemalemreball701 2 года назад

    thank you man. but my app boomed because device_preview use shared_prefences library

    • @FilledStacks
      @FilledStacks  2 года назад

      haha, you're welcome. Well you can probably just upgrade to latest versions and it'll work.

  • @josecoverlessons
    @josecoverlessons 3 года назад

    Why not just use OrientationBuilder and LayoutBuilder. So much extra work in this setup

    • @FilledStacks
      @FilledStacks  3 года назад +1

      You could use that in every single widget you want changed and do multiple if statements and checks wherever possible. But that's the exact this I want to avoid. I simply want to give a layout for mobile, Tablet, Desktop and that's it. No if statements. But like I mention at the beginning. The current way to do this is to litter your build function with if statements and most flutter devs seem to be happy with those large build files. I'm not. I need to work in the code with multiple devs for multiple years.

    • @josecoverlessons
      @josecoverlessons 3 года назад

      @@FilledStacks I see! makes sense

  • @arjunvarma9
    @arjunvarma9 4 года назад

    can u show how this widget works with images and other stuffs.

    • @FilledStacks
      @FilledStacks  4 года назад

      What exactly would that show?

    • @arjunvarma9
      @arjunvarma9 4 года назад

      @@FilledStacks I meant images and other widgets inside this method which will help a beginner like me to understand how to use this in real app development

    • @FilledStacks
      @FilledStacks  4 года назад

      @@arjunvarma9 I still don't know what you mean. This is how it's used in a real app. Do you want images to have different sizes? You can simply go to part and three of the series and see how I build a UI with it.

    • @arjunvarma9
      @arjunvarma9 4 года назад

      @@FilledStacks Can you show an example by creating a small app with this method by including images, carousel etc....
      It will be a great help

    • @FilledStacks
      @FilledStacks  4 года назад

      @@arjunvarma9 I do. In the web series and in the parts following this part.

  • @bobthebuilder6715
    @bobthebuilder6715 5 лет назад +2

    Where are you from? You have a South African accent

    • @FilledStacks
      @FilledStacks  5 лет назад +1

      I am from South Africaaaaaaa!! :)

    • @bobthebuilder6715
      @bobthebuilder6715 5 лет назад +2

      @@FilledStacks hehehehe awe😅🤣😂💪🔥

  • @yakoubtarkaoui2586
    @yakoubtarkaoui2586 3 года назад

    Hello bro,
    can you please tell me how you can change between emulators?

    • @FilledStacks
      @FilledStacks  3 года назад +1

      Hey, I don't know how to do that. I use one emulator. In this tutorial I mention that we use the device_preview package in the code base to allow us to preview different screen sizes of our code. The emulator isn't changing. It's just some code that runs your app using a different media query object. read device_preview package readme and use that to get the same functionality.

    • @yakoubtarkaoui2586
      @yakoubtarkaoui2586 3 года назад

      @@FilledStacks thank you :) :)

  • @ar1467
    @ar1467 4 года назад

    Hi master, How to make the text responsive?

    • @FilledStacks
      @FilledStacks  4 года назад

      haha, Master????? I use the width of the local widget if it's dependent on that or the width of the screen and multiply by 0.1 or whatever factor you need to size properly.

  • @AjaSiva
    @AjaSiva 3 года назад

    Why are you overriding the "toString" method? You can define another function instead no?

    • @FilledStacks
      @FilledStacks  3 года назад

      I could but then if I place it into a string where dart automatically calls .toString I'd have to always call my function

  • @aytunch
    @aytunch 5 лет назад

    Congrats for 10k subs. I always thought you were Indian before this video:)

    • @FilledStacks
      @FilledStacks  5 лет назад

      Thank you. Lots of people do, I guess maybe my accent sounds similar? I'm from South Africa so to me the accents are worlds apart.

  • @levanchuong89
    @levanchuong89 4 года назад

    How do you get the android emulator to select different iOS devices?

    • @FilledStacks
      @FilledStacks  4 года назад

      Use the device_preview package from pub.dart

    • @levanchuong89
      @levanchuong89 4 года назад

      @@FilledStacks Thank you, it worked. One more thing, in this case, my emulator displays a nested phone in another phone, it shows a phone image outside the preview_device, (see the image ibb.co/gw0StrF). how to hide the emulator hide the outside phone image?

    • @FilledStacks
      @FilledStacks  4 года назад

      @@levanchuong89 You're welcome. Remove the skin from your AVD. Open up the AVD, edit it, then set skin to none

  • @shadowdugify
    @shadowdugify 4 года назад

    Good to see some black developers out there. Also, very nice way of implementing it. I just need to digest it a bit more to understand it

    • @FilledStacks
      @FilledStacks  4 года назад

      Thank you, I made a package called responsive_builder that wraps all this up.

  • @mohammad7774
    @mohammad7774 3 года назад

    which emulator you are using in this video.

    • @FilledStacks
      @FilledStacks  3 года назад

      The normal emulator that comes with Android Studio. I use the pixel 2 xl rom I think. You're most likely asking about being able to switch the view sizes? That's done with a package, not an emulator.

    • @mohammad7774
      @mohammad7774 3 года назад

      @@FilledStacks
      Please tell me about that package

    • @FilledStacks
      @FilledStacks  3 года назад

      @@mohammad7774 it's called device_preview. I show everything in the video.

    • @mohammad7774
      @mohammad7774 3 года назад

      @@FilledStacks ok thank you

  • @JoyEnergiser
    @JoyEnergiser 3 года назад

    shout out ma se kind! 😁

  • @novysandhu5193
    @novysandhu5193 3 года назад

    device preview not working it shows some error

    • @FilledStacks
      @FilledStacks  3 года назад

      You should look into that error and fix it.

  • @nguyenvanthuan6756
    @nguyenvanthuan6756 2 года назад

    what is plugin android emulator? thank

    • @FilledStacks
      @FilledStacks  2 года назад +1

      Hey, the android emulator is normal. If you listen in the video it's a package called device_preview

  • @flutterdeveloper3033
    @flutterdeveloper3033 3 года назад

    thanks for bundle

  • @internetcollections6453
    @internetcollections6453 4 года назад

    Great ....

  • @moin2542
    @moin2542 4 года назад

    Where do I get that emulator?

    • @FilledStacks
      @FilledStacks  4 года назад

      It's a normal emulator. Use the device_preview package for additional devices functionality.

  • @limitlesskode
    @limitlesskode 3 года назад

    Finally saw your face. Lol

    • @FilledStacks
      @FilledStacks  3 года назад +1

      haha, there's a few videos with my face in it :D

  • @anirudhsharma2228
    @anirudhsharma2228 4 года назад

    Thanks man and who the fuck disliked your video

    • @FilledStacks
      @FilledStacks  4 года назад

      haha you're welcome. There are some community members that don't like the way I write code 😅 it makes sense because I'm not a purist when it comes to engineering. I'm more concerned about maintainability, readability and ease of understanding. Most software architects don't care about that as much as I do.

  • @h3w45
    @h3w45 4 года назад

    what emulator is he using?

    • @FilledStacks
      @FilledStacks  4 года назад +1

      I'm using the normal emulator. The package that gives me the diferent previews is called device preview (pub.dev/packages/device_preview)

    • @h3w45
      @h3w45 4 года назад

      @@FilledStacks that's very cool, thanks for your reply.

  • @irfnrdh
    @irfnrdh 4 года назад

    mantull

  • @StrifeTheHorseman
    @StrifeTheHorseman 3 года назад

    Cool! Try working a bit on your pronunciation, because your 'build/built' sounds like 'bold/bolt'.

    • @FilledStacks
      @FilledStacks  3 года назад

      haha, I keep hearing that but in my head I definitely say bild and not bold. But either way if that's how it sounds outside of my face then I'm also fine with that :D

    • @StrifeTheHorseman
      @StrifeTheHorseman 3 года назад

      @@FilledStacks I guess it's just a specifics of African accent.

    • @FilledStacks
      @FilledStacks  3 года назад

      @@StrifeTheHorseman yep. Definitely that.

  • @rezwansaki
    @rezwansaki 4 года назад

    How can get that type of emulator ?

    • @FilledStacks
      @FilledStacks  4 года назад +1

      It's a normal emulator with no skin on it.

    • @rezwansaki
      @rezwansaki 4 года назад

      @@FilledStacks But you can change another devices easily. my ADV has no that feature.

    • @FilledStacks
      @FilledStacks  4 года назад

      @@rezwansaki It's a separate AVD. I have about 6 on my PC.

  • @faheemahmadofficial7701
    @faheemahmadofficial7701 4 года назад

    wish flutter was easier...as windows.form :(

    • @FilledStacks
      @FilledStacks  4 года назад

      haha, imagine it was that difficult to use. I find it so much easier, which is why I left Xamarin to come over to Flutter. It's so much better for building mobile apps for me.

  • @TheHermitHacker
    @TheHermitHacker 5 лет назад

    It would be extremely helpful if you would have noted clearly that you are building for a WEBSITE and not mobile apps. The whole purpose of Flutter for most users will be for Mobile app development, mostly because it is for designing cross platform apps.

    • @FilledStacks
      @FilledStacks  5 лет назад

      I'm not building for a website specifically although this will be my approach for that as well. This is a technique to build information into a base widget to allow for you to make responsive decisions (orientation changes, smaller devices vs larger, tablet sizes, etc) . Part2 will be developed for mobile devices and the ipad only. Not the web.

  • @mydrama6980
    @mydrama6980 4 года назад

    use responsive_framework package its the best best best best!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

    • @FilledStacks
      @FilledStacks  4 года назад

      I prefer the responsive_builder package. It's even beettteeeeeeeer

    • @mydrama6980
      @mydrama6980 4 года назад

      @@FilledStacks thank you so much let me check?

    • @mydrama6980
      @mydrama6980 4 года назад

      but the responsive framework handles all the responsiveness you don't have to do anything

    • @FilledStacks
      @FilledStacks  4 года назад

      @@mydrama6980 I want to do something because my UI's require completely different layouts for the same views based on the device size. So I don't want my text or UI to shrink or match in the screen. I want a different layout, one specifically designed for that screen. Not a generic scale by 2 approach.

    • @FilledStacks
      @FilledStacks  4 года назад

      @@mydrama6980 Sure you can go check on pub.dev and search responsive_builder

  • @zuherabud744
    @zuherabud744 3 года назад

    5:50-7:00

  • @rezwansaki
    @rezwansaki 4 года назад

    Is Flutter Not Responsive?

    • @FilledStacks
      @FilledStacks  4 года назад +1

      Flutter is the same as every other platform. You have to make it responsive.

    • @rezwansaki
      @rezwansaki 4 года назад

      @@FilledStacks When I develop an app on iOnic I don't have to think about responsive. The topbar, footerbar are all shaped by the device on all devices. I was saying, is that even so?

    • @FilledStacks
      @FilledStacks  4 года назад +1

      @@rezwansaki From my experience you have to. Maybe just the toolbar would stretch and update and it's the same for Flutter. So in that case it is similar to what you're asking. Toolbars and general elements will look good on any size. We're using all custom elements here to get the idea across of how to do it.

  • @quadhd1121
    @quadhd1121 3 года назад

    Thought this guy was Indian or something

    • @FilledStacks
      @FilledStacks  3 года назад +1

      naaah, South African. I am brown though, so that's a good guess I think haha.