Files and Folder Structure in Flutter & Dart

แชร์
ฝัง
  • เผยแพร่เมื่อ 13 ก.ค. 2024
  • I will show you how I structure my apps in Flutter and Dart, but because I want to show you my perspective, we will have a look into the Provider package and the InvoiceNinja project. These are real-world examples, and by them, we want to discuss the pros and cons of different Folder structures.
    Relevant Links
    github.com/invoiceninja/admin...
    github.com/rrousselGit/provider
    Table of Content
    00:00 - Welcome to Flutter Explained
    01:05 - Personal Project: Compario
    07:08 - Provider Package
    11:44 - InvoiceNinja Admin Portal Project
    18:42 - Next steps!
    Do you want to have an amazing Tool to work with your invoices and want to support this channel? Checkout InvoiceNinja with this referral code:
    app.invoiceninja.com/invoice_...
    Join this channel to get access to perks:
    / @flutterexplained
    ** New Mentorship Program to boost your Flutter career **
    gumroad.com/products/ydgtfV
    ** Social Medias **
    Website: flutter-explained.dev
    Say hi to Max
    Twitter: / flutter_exp
    GitHub Max: github.com/md-weber
    LinkedIn: / max-weber-9889a3ba
    Discord: / discord
    Say hi to Mahtab
    Twitter Mahtab: / mahtab_dev
    GitHub Mahtab: github.com/mt-tadayon
  • วิทยาศาสตร์และเทคโนโลยี

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

  • @thomaskoppen9675
    @thomaskoppen9675 15 วันที่ผ่านมา

    What I as a beginner would be interested in, is a video explaining how to share data between dart files, how to handle public variables etc and keep variables and information "synced"

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

    I really appreciate what you do and I learn a lot from your tutorials , cheers

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

    Thank you Max! great video! I have used mvvm in the past, but I'm currently playing with a feature-oriented architecture currently, stay healthy and keep it up !

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

      For me a feature-oriented architecture is the way to go.

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

    Very useful! For large projects I usually add one more layer on top of this where instead of having one shared folder the application is split up into features where every feature has it's own views, repository, and state

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

      Thank you Cas, that is true I should have also mentioned Domain-Driven Folder structure or Feature-based folder structure. Maybe a good reason to create another video :)

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

    Very interesting topic ! Thanks for your video. 😁💖

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

    Super useful video! I'm having a different folder structure in each project because I'm always feeling like I can do it differently and it's still better or at least not worse... Need to decide for one finally ^^

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

      I am glad that it helped you. Let me know about your decision :)

  • @lambda-dev
    @lambda-dev ปีที่แล้ว +1

    I usually create folders for the features first, so that I do not have to switch between layer folders when working on a feature.

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

    Thank you!. That is very useful for me!

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

      Thanks for your feedback, I am glad that it helped you!

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

    I hope explain clean architecture with cubit and implement that on project

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

      Hi, thanks for your feedback, but I guess you will be a bit disappointed. It is more about general folder structure and structures in other larger applications like the InvoiceNinja project. If you want to know more about Cubit, I created already a video for that, and if you want to have a more in a deep dive video I will add it to my list :)

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

    I hope this also contains on how does the folder by feature connected with each other.

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

    Bestttt

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

    Well I personally prefer DDD for large projects like e-commerce app or a live-streaming app

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

    Hello Max, can you make a video on using custom paint and renderobject in flutter for beginners? Thank you.

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

      Added to my video ideas :)

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

      @@FlutterExplained thank you, anticipating.

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

    Is mentorship still available?

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

      Active since last week again :) sorry for the long delay but had a lot on my plate.

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

    Discord link is expired. Where can I join discord?

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

      I cleaned unused services and my Discord channel was not really used often, so I decided to remove the noise. Feel free to join the Flutter Community or Flutter Discord, both are well maintained and I answer questions directly there :)

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

    Zoom the editor more