ไม่สามารถเล่นวิดีโอนี้
ขออภัยในความไม่สะดวก

Flutter Layouts Walkthrough: PageView, ListView, GridView, Slivers, CustomScrollView

แชร์
ฝัง
  • เผยแพร่เมื่อ 12 ส.ค. 2024
  • Full source code on GitHub: github.com/bizz84/layout-demo...
    Highlights:
    - Learn how to build layouts with scrollable pages, lists, grids, and other convenience widgets.
    - Take this to the next level with slivers, and create a great-looking hero image effect.
    00:00 - Intro
    01:31 - PageView
    02:51 - ListView
    04:56 - Slivers
    08:23 - Hero Image
    15:20 - Nested Lists
    16:48 - Summary
    Part one of my layout demo is here: • Flutter Layouts Walkth...
    Note: I'm using the iOS simulator, but you can open the Android emulator and run the same code.
    If you need any help, just ask in the comments. I'll be happy to help.
    Feedback and suggestions on new tutorials are very welcome!
    This code was written with Flutter Beta 0.4.4, and is tested to work with Dart 2.
    Join my FREE email course to become a Flutter expert with the best resources, at your own pace: codewithandrea.com/newsletter/
    Want more? Check out all my Flutter courses: 👇👇
    codewithandrea.com/courses/
    Happy coding!

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

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

    This demo is now live at this link using Flutter web:
    flutter-layouts-demo.web.app/#/

  • @aledigitale3377
    @aledigitale3377 6 ปีที่แล้ว +13

    AMAZING WORK Andrea !!! Please, keep continue with these tutorials...
    they're sooooooo useful. THE BEST around !

    • @CodeWithAndrea
      @CodeWithAndrea  6 ปีที่แล้ว +3

      Ale Digitale thank you very much!

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

      @@CodeWithAndrea hi, do you know of any packages or repositories that use an EPG style layout? EPG being like a TV guide layout, channels along one axis and time along the other? I would like to make one, I am trying to do it with a staggered grid but I need diagonal swipe and pinch zoom with fixed headers for the time and location axises. Many thanks

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

    awesome, I watched this lecture to review what I've studied for these past 4days, and I feel like I wish I should've watched this first.

  • @oliverbytes
    @oliverbytes 5 ปีที่แล้ว +1

    Amazing video series!!! We hope to see more videos in the future! Keep it up Andrea!

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

    Your channel is very helpful for Flutter. Great content! Thank you very much

  • @TanNguyen-cb2he
    @TanNguyen-cb2he 5 ปีที่แล้ว

    Thanks for making this, Andrea. Keep your good works!

  • @cynido
    @cynido 5 ปีที่แล้ว +7

    thank you so much,now i know how to solve the unbounded height error in the nested list view

  • @09uzAlexander
    @09uzAlexander 5 ปีที่แล้ว

    Thanks for sharing this really good things about material views. I probably use this on my project. Thanks for helping Andrea !

  • @sajadjaward
    @sajadjaward 5 ปีที่แล้ว

    Amazing video and amazing explanation. Keep up with the good work. Thank you for the video!

  • @sanjaymorya6029
    @sanjaymorya6029 5 ปีที่แล้ว

    Andrea you are awesome. Very helpful tutorials for new Flutter Apps Developers.

  • @malconcambronero
    @malconcambronero 5 ปีที่แล้ว

    Just thank you from all community and special in the spanish community, u are great, keep with all this tutorials.

  • @oliviajohansen9689
    @oliviajohansen9689 3 ปีที่แล้ว

    Thank you so much for the excellent summary and comparison!

  • @leorochacom
    @leorochacom 5 ปีที่แล้ว

    Thank you for this excellent video!

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

    please create more show case for flutter widgets like animations transitions these videos are great and you explain it like no where else did

  • @kishansinhparmar
    @kishansinhparmar 6 ปีที่แล้ว

    You are making a amazing flutter examples... i am inspired from you that how to make a perfect examples...

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

    Thank you so much man. I was having problem with the dynamic tab bar with the corresponding children page. With your video i got an idea and did it.

  • @ibraheemdev2290
    @ibraheemdev2290 5 ปีที่แล้ว

    amazing explanation, thanks

  • @Nobody-ky7sl
    @Nobody-ky7sl 6 ปีที่แล้ว +1

    Thank you that’s awesome

  • @chrisogonas
    @chrisogonas 3 ปีที่แล้ว

    Great stuff! Thanks

  • @rodmaureirac8422
    @rodmaureirac8422 6 ปีที่แล้ว

    very helpful thanks !

  • @chrishannahscutt9646
    @chrishannahscutt9646 5 ปีที่แล้ว +1

    Again, a great clear lesson. Thank you again.

  • @jimmorrison2657
    @jimmorrison2657 6 ปีที่แล้ว

    Kickass video. I have subscribed to you.

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

    Wow I learned so much from you
    Thanks a lot 😀😀😀

  • @hvisli6853
    @hvisli6853 6 ปีที่แล้ว +1

    Awesome video

  • @floodyboy5307
    @floodyboy5307 6 ปีที่แล้ว +1

    Awesome 👍🏼

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

    JUST GREAT..!!!!!

  • @raperm
    @raperm 6 ปีที่แล้ว

    Thanks. It’s very usefull video.

  • @gerardchoolakian5570
    @gerardchoolakian5570 3 ปีที่แล้ว

    Thanks for sharing.

  • @TheBreaker94
    @TheBreaker94 6 ปีที่แล้ว

    Great video, as always! Will you make a video on responsive layout? You taught me how to design a layout, now I need to learn how to make it look good on all devices :D

    • @CodeWithAndrea
      @CodeWithAndrea  5 ปีที่แล้ว +1

      That is a good idea. I'll add it to my shortlist of upcoming videos. ;)

  • @gsswwa
    @gsswwa 5 ปีที่แล้ว

    Great job👌👌

  • @user-wt3xo8sl3c
    @user-wt3xo8sl3c 5 ปีที่แล้ว

    Thank you for sharing😊

    • @CodeWithAndrea
      @CodeWithAndrea  5 ปีที่แล้ว

      cheang sokkong thank you for watching ;)

  • @davidstevens6654
    @davidstevens6654 6 ปีที่แล้ว

    Awesome!

  • @sournvisal
    @sournvisal 5 ปีที่แล้ว

    Great video

  • @biancashousedotcom
    @biancashousedotcom 5 ปีที่แล้ว

    Really nice video. Many thanks.
    If I have a widget that is, say, A4 sized, it looks like thee is not yet a widget that will allow the user to pan around V and H. Scrolling seems limited to a single direction.
    But your last page makes me wonder if it might be possible... I shall have to play with your code to see if it's feasible...
    You are a good teacher: well paced and you point out the gotchas as you go. Very good.

  • @humanontheinternet6510
    @humanontheinternet6510 5 ปีที่แล้ว

    good job

  • @ridhomaulana2627
    @ridhomaulana2627 6 ปีที่แล้ว

    Cool! Subbed

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

    Thanks

  • @LimitlessX1
    @LimitlessX1 6 ปีที่แล้ว

    Thats Awesome ! can you explain how to add an html / htm / txt/jpg/png ..etc file (offline / hosted data) into a folder/direct and link the same within list or within grid view. might helpful to all user.

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

    u rock man

  • @wxIyz
    @wxIyz 3 ปีที่แล้ว

    I'm thinking to buy your course!!

    • @CodeWithAndrea
      @CodeWithAndrea  3 ปีที่แล้ว

      Sure, all discounted courses are at codewithandrea.com/courses

  • @a7m3dRM
    @a7m3dRM 3 ปีที่แล้ว

    I wanna watch you when you are doing each one of these layout sepreatly

  • @entatainermyself
    @entatainermyself 5 ปีที่แล้ว

    Nice tutorial please can you create a card widget which can scroll horizontal and vertical

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

    It's not easy, but I'll get there 🤞

  • @sohedulislam1652
    @sohedulislam1652 5 ปีที่แล้ว

    can you explain how it iterate full list of asset images- assetNames[index % assetNames.length]. and also here, what does % means

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

    Very good. I have a question, how to do a SliverGrid with containers with different hight? I am trying woth SliverGridDelegateWithMaxCrossAxisExtent but dont work well because the space between containers is different depend the height of container

  • @ranjehsan9026
    @ranjehsan9026 5 ปีที่แล้ว +3

    Hi Mr Andrea Bizzotto can you explain (context) and something like for example theme.of(context) i don't mean the theme i mean the kind of the example and when we use these widgets or objects please it is a kind of confusing for me? thanks

    • @CodeWithAndrea
      @CodeWithAndrea  5 ปีที่แล้ว +1

      Sorry for the late reply. You can watch my video about inherited widget. It's explained there: th-cam.com/video/X8JDPt83c6M/w-d-xo.html

  • @moustaphadiouffall1204
    @moustaphadiouffall1204 6 ปีที่แล้ว

    hi can we put a CustomScrollView in a ListView ?

  • @luongnguyen895
    @luongnguyen895 5 ปีที่แล้ว

    Why SilversExtendList dont have itemCount but it still render? Has it infinity item?

  • @ksbskzjd376
    @ksbskzjd376 3 ปีที่แล้ว

    how can i put a home_page.dart with diferent containers instead generating lists? in need to hide the tabs

  • @sohedulislam1652
    @sohedulislam1652 5 ปีที่แล้ว

    Hay I have list of GIF Images and I want to show that list with card view. so how can I do it in flutter? If any one know it then please reply me...

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

    please how do make a scrollable popupmenu?

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

    hi andrea! u know how i can put a listview inside a pageview both with same direction(vertical)?

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

      Why do you want to do this? In general it's not a good UX practice to have a scrollable widget inside another widget that scrolls in the same direction.

  • @BillyMahmood
    @BillyMahmood 5 ปีที่แล้ว

    Your course looks amazing however for some reason all courses use firebase auth, have you done any auth videos on APIs that use rest auth and rest api powered by anything but firebase

    • @CodeWithAndrea
      @CodeWithAndrea  5 ปีที่แล้ว

      I haven't. But the same structure still applies. In a nutshell:
      - You can write an Auth class to wrap your REST API auth calls
      - you can use http.get with the url and parameters for your REST API
      - you can parse the response into a User type that is returned to your calling code.

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

    Could it be possible to have a gridview that its own width is larger than the screen width and be able to scroll it horizontally to see the rest of the grid?

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

      Sure. You can just set the scrollDirection to Axis.horizontal.

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

      @@CodeWithAndrea Thank you very much, I will try it!

  • @thichxemphims
    @thichxemphims 5 ปีที่แล้ว

    Amazing video (y) (y) (y) (y) (y) (y) (y)

  • @yuvrajsinhdesai1654
    @yuvrajsinhdesai1654 5 ปีที่แล้ว

    Hay i have list of video files and i want to show that list with video thumbnails...so how can I do it in flutter? If anuone know it then please reply me...

    • @CodeWithAndrea
      @CodeWithAndrea  5 ปีที่แล้ว

      You can write a custom list tile class, which internally uses FutureBuilder and the http package to read image data from the Internet. For an intro to FutureBuilder see this: th-cam.com/video/ek8ZPdWj4Qo/w-d-xo.html

  • @Richard-on7hn
    @Richard-on7hn 6 ปีที่แล้ว

    well it look's good !! but i downloaded it, and can't build it on ios... help

    • @CodeWithAndrea
      @CodeWithAndrea  6 ปีที่แล้ว

      Hey - sorry for the late reply. What errors do you get?

  • @mandimbitafikasambizafymar1591
    @mandimbitafikasambizafymar1591 5 ปีที่แล้ว

    How to use this when I try to start develop an application? I'm a Beginner.

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

      If you want you can take my Flutter course. Discounted link here: www.udemy.com/course/flutter-firebase-build-a-complete-app-for-ios-android/?couponCode=DART15

  • @romaan_trav
    @romaan_trav 5 ปีที่แล้ว

    i got some errors bro..

  • @derekdavidson6997
    @derekdavidson6997 5 ปีที่แล้ว

    Yesterday I asked how widget.variable name (lower case w) can be used. The answer is at stackoverflow.com/questions/50287995/passing-data-to-statefulwidget-and-accessing-it-in-its-state-in-flutter . Where is says: To use recordObject in _RecordPageState, you have to just write widget.objectname like below...

  • @themindstorm9947
    @themindstorm9947 5 ปีที่แล้ว

    How do you put a working tab bar with a SliverAppBar?
    This is my current code github.com/themindstorm/flutter-autohide-tabbar-problem, and I am facing a problem (The README contains a GIF showing it)

  • @username-dh4tq
    @username-dh4tq 2 ปีที่แล้ว

    497325

  • @jimmorrison2657
    @jimmorrison2657 6 ปีที่แล้ว

    Kickass video. I have subscribed to you.

  • @jimmorrison2657
    @jimmorrison2657 6 ปีที่แล้ว

    Kickass video. I have subscribed to you.

  • @jimmorrison2657
    @jimmorrison2657 6 ปีที่แล้ว +1

    Kickass video. I have subscribed to you.

    • @CodeWithAndrea
      @CodeWithAndrea  6 ปีที่แล้ว

      Jim Morrison glad you liked it :)