Flutter SDK Tutorial - Building a Beautiful Sliding Side Menu Using a Drawer

Поділитися
Вставка
  • Опубліковано 17 лис 2024

КОМЕНТАРІ • 134

  • @muhammadsyamil1182
    @muhammadsyamil1182 5 років тому +2

    This is very good tutorial. You debug one by one after writing each code to show us what are the changes occur. Thank you very much.

  • @vikramnayakvn
    @vikramnayakvn 6 років тому +4

    Bram, you're a life-saver ! You're directly helping me get my first production app off the ground :) keep the tutorials coming - fantastic job !

  • @joseaquabiota5373
    @joseaquabiota5373 6 років тому +5

    Excellent video tutorials! I much appreciate how pedagogical they are! Clear, simple to follow and with results after each one of your videos. Great Job, thanks for sharing your expertise!

  • @davidstevens6654
    @davidstevens6654 6 років тому

    Awesome! Great Tutorial! I come from a world where such information is not shared easily! Keep it up!

  • @mohammadrehankodekar9699
    @mohammadrehankodekar9699 6 років тому +7

    I beg to differ with the routing technique with the drawer, i would supposedly have a different perspective over show the page content in the container in the middle and would also make a different StatelessWidget for the drawer with inherited widget , so i can keep a track of which item is selected.

    • @BramVanbilsen
      @BramVanbilsen  6 років тому +2

      Rehan Kodekar There is multiple ways to approach this. But as this is more of a Drawer widget and not so much a navigation tutorial, I just kept it simple :)

    • @mohammadrehankodekar9699
      @mohammadrehankodekar9699 6 років тому +1

      Bram Vanbilsen agreed with your point, but as I saw you navigated to another page, I would have navigated to the same page and render the text in the empty area, Like the android fragment transactions. Which flutter performs a little bit better on.

    • @rasyidcode3142
      @rasyidcode3142 6 років тому +1

      Maybe you looking for this.
      medium.com/@kashifmin/flutter-setting-up-a-navigation-drawer-with-multiple-fragments-widgets-1914fda3c8a8

  • @myname5667
    @myname5667 6 років тому

    Great Video!
    I would love to see a video about the firebase database with flutter
    - how to set it up
    - get data
    - add data to the database
    Thanks a lot for all your flutter videos!

  • @faustofl
    @faustofl 5 років тому +1

    Very good!
    Thanks a lot for sharing it.
    I started with Flutter 3 days ago, and have codes and shares like yours helps a lot.

  • @taryn2736
    @taryn2736 6 років тому +4

    Bram,
    Fantastic video as always. I really appreciate you walking through everything (instead of getting everything correct out-of-the-gate)!
    I don't know if you're aware (it may just be personal preference) but when you are setting, for example, `onTap` which is a callback you can just do `onTap: switchUser`.
    You don't have to create a body that invokes `switchUser` (i.e. `onTap: () => switchUser()`).
    I have subscribed and can't wait to see what else you have in store!

    • @BramVanbilsen
      @BramVanbilsen  6 років тому

      Aha woops! Thanks, I didn't think that one through 😄

  • @tityseptiani8584
    @tityseptiani8584 6 років тому

    I've seen your quiz app tutorial yesterday and I was hooked! You explain everything so clearly so I know how things work in flutter. Anyway, I've never submitted an Android app before to play store and I am having difficulties right now trying to test uploading the flutter app to the play store. If you can make a tutorial on how to do that, it'll be very great. Thank you so much!

    • @BramVanbilsen
      @BramVanbilsen  6 років тому

      You just have to build an APK for production. After that, there are no specific Flutter things anymore.

    • @tityseptiani8584
      @tityseptiani8584 6 років тому

      well, thank you for your response. It isn't as simple as iOS, but I finally made it to work. :)

  • @krishind99
    @krishind99 5 років тому +1

    Nice one. Good work. Have a quick couple of questions
    1. What if I want to push First and second page over Home page and retain the drawer. Right now, with the way it is, when user lands on first or second page, he has to return back to Home page for any navigation
    2. Can this items in the drawer be made dynamic, like say one list for unauthenticated flow and a different list for authenticated flow?

  • @ruigomes2113
    @ruigomes2113 6 років тому +1

    Thanks Bram for this tutorial! Your videos are amazing, keep up the good work!

  • @marcinszaek7564
    @marcinszaek7564 6 років тому +1

    Wow, I didn't know about UserAccountsDrawerHeader. Big timesaver! Thanks! :)

  • @Redonkeyulous
    @Redonkeyulous 6 років тому +1

    Thanks Bram for this amazing tutorial. I love practicing and learning this amazing tool through your videos to achieve a state where I can start developing me own designs.
    Thanks Again. Keep 'em coming, YO!!!

  • @sunitgautam7547
    @sunitgautam7547 6 років тому

    Loved it, man! Could you also do a video explaining how to manage user accounts for actual login process? For instance, signing in with Google/Facebook. Would be pretty useful!

  • @robertnorton701
    @robertnorton701 5 років тому

    Any chance you will come back and make more Flutter videos? Your tutorials are hands down the best.

    • @BramVanbilsen
      @BramVanbilsen  5 років тому

      Give me a video idea and I might just start uploading again 😉

  • @nash9785
    @nash9785 6 років тому +2

    And so begins another great video

  • @GaboDev
    @GaboDev 5 років тому

    Awsome tutorial ! Thanks a lot Bram

  • @edsontomas8344
    @edsontomas8344 6 років тому

    Bram one more great tutorial....thank you for taking your time to share your knowledge with us...keep up the great work

  • @bradyredding1964
    @bradyredding1964 5 років тому

    This looks really good on the ios simulator. Good tutorial for begineers. Thanks!!

  • @theodor414
    @theodor414 6 років тому

    Hey Bram, you are a fantastic online educator, i simple love your pace.
    Im sure you will outcompete all off the india-copycats, no worries.
    I have an request: Will you make tutorials with Flutter and Firebase (auth, firestore etc.)?

    • @BramVanbilsen
      @BramVanbilsen  6 років тому

      I will once my new computer arrives. My current one sounds like a rocket ship when I'm recording 😞
      Should arrive in a week or so 😊

  • @rohan1002
    @rohan1002 5 років тому +1

    Thnx for your valuable knowledge
    Can you provide a cheatsheet

  • @loveformusic6770
    @loveformusic6770 5 років тому +2

    Great tutorial. Thanks for covering everything.

  • @amoghsapre6
    @amoghsapre6 4 роки тому +1

    You're a GENIUS! THANK YOU VERY MUCH!!!!

  • @JaeWoodberry
    @JaeWoodberry 6 років тому

    Awesome Tut. How would I go about adding an InkWell to the ListView?

  • @davidbaron6663
    @davidbaron6663 6 років тому +1

    Hello Bram - great demo. I am brand new to Flutter - it looks tremendous. I had recently tried getting into Xamarin but faced too many issues. However, they have a great construct in regards to the 'drawer', and I'd like to know how you'd approach it. Basically, they have what they call a 'master-detail' config, whereby one 'page' contains the drawer, and then has 2 or more 'child' pages which are navigated to via the drawer (plus the 'start' page). The thing is, when nav'ing to the direct children, there is no 'back' button - instead they each display the hamburger. The user basically is 'switching' primary views via the drawer. Once they are on any particular primary page, they can then navigate 'down' into sub-pages, and then use the back button to get back. So, my question is, how would you implement a 'shared' drawer that a handful of 'top level' pages would use? My guess would be that you somehow create a file that contains only the drawer object and then include that into all of the top-level pages? And then, how would things be set up so that the other primary pages do *not* have the back button, but instead the hamburger menu? Is that in the definition of the page, or the method of navigation (from the 'start' page to the other top-level pages)? Thanks and keep up the great work!

    • @BramVanbilsen
      @BramVanbilsen  6 років тому

      This is the first thing that pops into my but I think it is a good approach:
      You could make the body of your Scaffold of your homepage (or original drawer page) an instance variable of your class. Every time you now click on a button in the drawer, simply call setState and change the body in there.
      Hope that helps 😊

  • @jafar1607
    @jafar1607 6 років тому +1

    As always.. great videos
    Can we do a real life type app? like having services, dependency injection etc. like one product list and order app using firebase. Something like this. It should give everyone a real good taste what to look from flutter..

  • @flaviuoprea5075
    @flaviuoprea5075 6 років тому

    Hi, you have very good tutorials and very good explanations. I'm a beginner in Flutter and also in Dart, but I've heard about Redux in Flutter. Can you give an example of how to implement this?

  • @vicyoslinuxofficial2607
    @vicyoslinuxofficial2607 4 роки тому

    That was amazing!!!!!!!!!!! Thank you so much!!!!!

  • @dineshbishnoi4703
    @dineshbishnoi4703 5 років тому

    Hey Gram! Thank you for these awesome videos. I loved all of them. Can you please make a video of Angular Dart Web Application? Thanks again!

  • @justinkim7202
    @justinkim7202 5 років тому

    Nice color theme btw

  • @DanMlayah
    @DanMlayah 4 роки тому

    Which set up do you use to record these amazing videos ? the hardware and software

  • @justinplanovsky6004
    @justinplanovsky6004 6 років тому

    Could you make a tutorial video making a flutter app with different widgets on the page in a way that you can scroll down a page. Like an app where some widgets are offscreen (below) and you scroll down to see them and the other ones currently on screen go up as you scroll down and vis versa? Also another idea for a video, I would appreciate if you could make a video of how to make responsive apps to different screen sizes, different orientations, and such? Keep up the good videos. Im gonna play with the github repo for this one to start.

  • @agrikridanto1172
    @agrikridanto1172 6 років тому

    Loved it... Do you have some tutorials about handling internet connection ? I mean not just only have internet or wifi , but how we can know that our user could connect to our API
    Thanks man...

  • @TradingGuide
    @TradingGuide 5 років тому +1

    Great tutorial!

  • @lunedamkingsway2276
    @lunedamkingsway2276 6 років тому +1

    Bram. Great tutorials. Keep 'em coming.
    Is there a simple way to set the colour of the status bar in a drawer so that it matches the colour of the status bar of the page it's attached to, do you know?

    • @BramVanbilsen
      @BramVanbilsen  6 років тому

      You can set a Theme in the MaterialApp with the color you want 😊

  • @ghsu1212
    @ghsu1212 6 років тому

    Could you do a tutorial on the AnimatedList? There is only one example and it is not easy to understand.

  • @rogerwprice
    @rogerwprice 6 років тому +1

    Fantastic - thanks - these are just GREAT!

  • @mostafaabbas95
    @mostafaabbas95 3 роки тому

    Excellent! Thank you

  • @etgor
    @etgor 6 років тому

    Sorry for asking but i cant fix this .. any clue?
    Failed assertion: line 215 pos 12: '!_transitionCompleter.isCompleted': Cannot reuse a MaterialPageRoute after disposing it.

  • @Evan-ey1bf
    @Evan-ey1bf 6 років тому

    Hello Sir, Could you upload a tutorial on how to use bluetooth functionality of an iPhone using the app, like connecting to a bluetooth device from the app itself?

  • @sumeetkasar6012
    @sumeetkasar6012 6 років тому

    In your video screen is navigating from bottom to top. How to add pull in and pull animation for screen navigation.

  • @santafirma6584
    @santafirma6584 6 років тому +1

    Please do a video of flutter with firebase full features integrated: authentication, database crud , storage...please

  • @parthtrehan8668
    @parthtrehan8668 6 років тому +1

    what is the shortcut for the auto complete for the class
    when you wrote stle then which shortcut you entered ?

    • @BramVanbilsen
      @BramVanbilsen  6 років тому +3

      In VS Code with the Dart Code plugin:
      - start typing "stf" for stateful widgets, if no auto fill box appears, press ctrl + space. After that press enter.
      - For stateless widgets, do the same but start typing "stl" instead
      Hope that helps :)

  • @ZeeshanAli-ju2nc
    @ZeeshanAli-ju2nc 6 років тому

    Thanks sir,
    Butt can u tell me hw set icon on the left side of the ListTitle

  • @davidlanre887
    @davidlanre887 6 років тому +1

    Great tutorial! Thanks a lot.

    • @BramVanbilsen
      @BramVanbilsen  5 років тому

      Glad to hear that! Recommendations for new tutorials are greatly appreciated! 😁

  • @alexisgc19
    @alexisgc19 5 років тому

    Thanks for this really nice tutorial! I'm a new suscriber :)

  • @DennisRiungu
    @DennisRiungu 6 років тому

    Thank you for this. Was really useful

  • @autogere
    @autogere 5 років тому +1

    great job, very good!

  • @edsonaraujodesouza3459
    @edsonaraujodesouza3459 6 років тому

    Hi Bram, thanks for this amazing tutorial!! I am a newbie on Flutter and Dart and I have a doubt concerning the CircleAvatar. In a real world app there would be an option for adding another account, just like in e-mail apps. How could I achieve that? In your example you have used a declarative approach, but my doubt is how to implement it in code. Do you have any idea?

  • @brenocampos100
    @brenocampos100 6 років тому +1

    you're awesome, thx for the tutorial and keep the good work!!!

  • @jaycrijaygandhi
    @jaycrijaygandhi 6 років тому

    If I want to have this drawer to drop down from top when I give slide down finger gesture, then how to do it?

  • @marcosradix1
    @marcosradix1 6 років тому +1

    Really big deal, excellent explanation.

  • @frankbanini8884
    @frankbanini8884 6 років тому

    I like the tutorial. Can you please do one on swipeRefresh

  • @mohamedaly9096
    @mohamedaly9096 6 років тому

    is there a way to store values locally using flutter and a local database like SQL?

  • @estebancordoba555
    @estebancordoba555 6 років тому

    Bram, i saw my first video of your channel and now im thinking to see them at all!. i really want to start learning Flutter, can you show us in a tutorial, how to instal an use Flutter with visual Studio Code, and the android emulator? Clicking "suscribe" in 3..2..1...

    • @BramVanbilsen
      @BramVanbilsen  6 років тому

      That is a good idea for a video! 😊

  • @parthtrehan8668
    @parthtrehan8668 6 років тому +1

    this is an amazing tutorial
    thank you so much

  • @RodineiRiboli
    @RodineiRiboli 5 років тому +1

    Ótimo video, muito explicativo. Obrigado

  • @JakeCrawfordOfficial
    @JakeCrawfordOfficial 6 років тому

    What background color theme is that? I like it, reminds me of Atom. Great tutorial

  • @miguelmondragon1366
    @miguelmondragon1366 6 років тому +1

    Very nice my friend

  • @tiarnanswayne7786
    @tiarnanswayne7786 6 років тому

    Hello Bram, just did your crash course on the quiz app. I really enjoyed it, but just wanted to ask if it would be possible to create something like a Tinder copy with Flutter?
    Thanks.

    • @BramVanbilsen
      @BramVanbilsen  6 років тому

      I don't see why you wouldn't be 😄

    • @tiarnanswayne7786
      @tiarnanswayne7786 6 років тому

      Bram Vanbilsen Yes of course, but I have no idea where to start with making it. Should I make a strateful widget that gets information about the users from Firebase?

  • @wontonfuton
    @wontonfuton 5 років тому

    Can I not push a page that returns a material in the onTap of a list tile? It wasn't working when I tried. Maybe I did something wrong. Can someone please help?

  • @sae13video
    @sae13video 5 років тому

    Great thanks, how I can have a tree list in drawer

  • @ImmEraz
    @ImmEraz 6 років тому

    Hello Bram, thanks for the tutorial.
    Sorry if you already answer that but, which extensions are you using on VSC ?
    Thanks

    • @BramVanbilsen
      @BramVanbilsen  6 років тому

      Dart Code, that is it 😊

    • @ImmEraz
      @ImmEraz 6 років тому

      Oh ok, i thought you got something more ahah.
      Thanks keep going ! :)

  • @sunrisepicturesent6615
    @sunrisepicturesent6615 5 років тому +1

    wow great video you got a new sub

  • @arubinst
    @arubinst 6 років тому

    I've been banging my head the last couple of days trying to implement the Drawer and all I had until now were ugly partial results. I just started learning Flutter and dart! Thank you for this excellent tutorial!
    One question though: would you consider it a good practice to separate the drawer code from the home_page.dart file and implementing it as a class on a separate "drawer.dart" file so that when the drawer grows in complexity, it probably becomes easier to maintain as well as the homepage itself? Would this break anything in your current configuration or make it more difficult?

    • @BramVanbilsen
      @BramVanbilsen  6 років тому

      It most of the times is a good idea to split the code across multiple files! But for these short tutorials, I do not feel like it is necessary. But you should be able to abstract the Drawer code with no problems I believe 😊

    • @arubinst
      @arubinst 6 років тому

      Thank you Bram!

  • @JackySupit
    @JackySupit 5 років тому +1

    thank you

  • @Jeaniewtlbh
    @Jeaniewtlbh 3 роки тому

    what does the "new" in code do?

  • @ddmanmanigat1479
    @ddmanmanigat1479 6 років тому

    How to connect mobile as an emulator.. while using vs code

  • @Rassy_
    @Rassy_ 6 років тому

    Do we need like an internet permission in order to access the network images?,
    my images seems not to appear, even after using your github code(they're simply blue in color)

  • @aadishgoel
    @aadishgoel 6 років тому

    Hey man, You are a Great and Your tutorials are amazing.
    But Can you help me a little?
    How can I use my sign in Page to directly update the app drawer details?
    Problems i am facing right now is that.
    I have a sign in function and 2 classes. 1 that displays app drawer and 1 for login page which calls signinFunction.
    Now I am not able to get where to place that sign in function.
    if i make that global then it was unable to use setState function.
    if i put that in appDrawer class. i am unable to call my signin function from another class
    Please Help

  • @coolprashantmailbox
    @coolprashantmailbox 6 років тому

    awesome!!..appreciate work!

  • @geraldcampana9296
    @geraldcampana9296 6 років тому

    what vs code theme are you using?

  • @jayamuruganj5091
    @jayamuruganj5091 4 роки тому

    How to add the sub menu in side bar

  • @PopeyeLau
    @PopeyeLau 6 років тому

    awesome.
    what's your VSCode theme?

  • @Youtybekiller
    @Youtybekiller 6 років тому

    Awesome work man! Though one question. Why does the new page goes from bottom to top and reverse when you go back? I am just now using the drawer on Viber and it slides left to right. Do you know how to do that? I think it feels closer to the Android style. Thanks!

    • @BramVanbilsen
      @BramVanbilsen  6 років тому

      The standard Android style apparently is sliding up. It slides from left to right on iOS. You could override this with a custom transition though 😊

  • @robocop7328
    @robocop7328 6 років тому

    Thanks, nice tutorial =)

  • @parthjansari_inktwiger
    @parthjansari_inktwiger 6 років тому

    can you make one on the Dismissible cant figure it out what to do with the key

    • @parthjansari_inktwiger
      @parthjansari_inktwiger 6 років тому

      I cant get why I fuck up in so simple things fucking. spent 3 hours searching for how to use the key I think flutter docs should provide more examples of how to use classes

  • @sainadhpanda8144
    @sainadhpanda8144 4 роки тому

    how can we add login page to this code

  • @shahidecit4595
    @shahidecit4595 6 років тому

    do any one know how to show drawer in right side of screen please provide the help

  • @f4bnsky294
    @f4bnsky294 6 років тому

    Awesome

  • @eduardmart1237
    @eduardmart1237 6 років тому

    Is it possible to combine flutter and java in one android application?
    to use java specific functionality.

    • @BramVanbilsen
      @BramVanbilsen  6 років тому

      Yup, you can use channels to communicate with the native side of your Flutter apps 😊

  • @dogedev1337
    @dogedev1337 6 років тому +1

    Good video

  • @ExoSkeleton54321
    @ExoSkeleton54321 6 років тому

    Is it possible to remove the "preview" strip at the top right?

    • @BramVanbilsen
      @BramVanbilsen  6 років тому

      The slow mode banner?

    • @ExoSkeleton54321
      @ExoSkeleton54321 6 років тому

      The brown strip that says "preview" on the top right. Not really sure what it's called.
      image.ibb.co/eWKFL7/Pics_Art_03_09_05_03_17.jpg

    • @dogedev1337
      @dogedev1337 6 років тому

      It is for you not to confuse and turn on the built application, instead of the one in the development version. Comman for building app: "flutter build apk/ios", in built version there is no strip on the right.

  • @RetchEinhundert
    @RetchEinhundert 6 років тому

    Can you show how to make a new site with no new appbar? So one Appbar, one drawer, two sites. Thanks for your work

    • @BramVanbilsen
      @BramVanbilsen  6 років тому

      Sites?

    • @RetchEinhundert
      @RetchEinhundert 6 років тому

      Bram Vanbilsen I mean pages.
      In german site and page means exact the same thing.

    • @BramVanbilsen
      @BramVanbilsen  6 років тому

      Just don't use the appBar property in the Scaffold.

    • @RetchEinhundert
      @RetchEinhundert 6 років тому

      How can I align the close button to the bottom of the listview? mainaxisalignment end doesn't work.

  • @luckyme6098
    @luckyme6098 6 років тому

    Do u use android studio???

  • @MsSplashIt
    @MsSplashIt 6 років тому

    hey Bram, I have an installation question (working with Mac). so my editor is VSC. I have installed the plugins (flutter and dart code) but when I am working in a flutter project, I don't get autocomplete of code like you and my code has red lines all over the place. screenshot => gyazo.com/4a135964b26dec6ca40a2d1aeece2cbc . you know what the issue could be?

    • @BramVanbilsen
      @BramVanbilsen  6 років тому

      Perhaps VS Code is still analyzing? You should be able to see a loading indicator at the bottom left of VS Code if it is 😊

    • @MsSplashIt
      @MsSplashIt 6 років тому

      Nope nothing is loading, strange -> gyazo.com/9a1f84bacf494e673a139f2cdfb2e509

    • @BramVanbilsen
      @BramVanbilsen  6 років тому

      Weird, are you sure the plugin is enabled?

    • @MsSplashIt
      @MsSplashIt 6 років тому

      yes -> gyazo.com/1e0dcb5cc823f8feeeddea5a6f40fd46

    • @BramVanbilsen
      @BramVanbilsen  6 років тому

      Hmm, then I'm not sure. Maybe ask open up an issue on Github. I'm sure Danny will help you :)

  • @dogedev1337
    @dogedev1337 6 років тому

    After update you should use ListBody, instead of ListView

    • @BramVanbilsen
      @BramVanbilsen  6 років тому

      Pretty sure that is not true. The docs about ListBody state:
      This widget is rarely used directly. Instead, consider using ListView, which combines a similar layout algorithm with scrolling behavior, or Column, which gives you more flexible control over the layout of a vertical set of boxes.

    • @dogedev1337
      @dogedev1337 6 років тому

      On older version ListView worked on drawer, but now it only works on Scaffold, Column, Row etc.. Now, when i put it into the Drawer, I can't open it through swipe, and when i click icon that opens drawer, then my screen just get darker and there are errors in console.

  • @tiarnanswayne7786
    @tiarnanswayne7786 6 років тому

    Hello Bram!
    Would it be possible to DM you on Twitter, since I have some questions about Flutter? Thanks in advance.

    • @BramVanbilsen
      @BramVanbilsen  6 років тому

      Sure, go for it!

    • @tiarnanswayne7786
      @tiarnanswayne7786 6 років тому

      Bram Vanbilsen thanks just followed you, you have to follow back before I can dm you I think

    • @BramVanbilsen
      @BramVanbilsen  6 років тому

      Go to my profile and tap the envelope icon. You should then be able to message me 😊

    • @tiarnanswayne7786
      @tiarnanswayne7786 6 років тому

      Bram Vanbilsen I still haven't been able to make it work, any suggestions? Can't see the envelope icon

  • @samii5205
    @samii5205 6 років тому

    I am new to flutter but i am confused in these lecture some one use one type of approach
    the other use another approach some one help me and dedicate me some tutorial which i followed please help me and save my time please

    • @BramVanbilsen
      @BramVanbilsen  6 років тому

      I do not understand what you are trying to say. People will have different coding styles but the core Flutter concepts remains the same across the board. I do in fact have a crash course for Flutter on my channel if you want one dedicated video.

  • @MyGarvas
    @MyGarvas 6 років тому +1

    awesome!!..appreciate work!