Loading...
「ツール」は右上に移動しました。
利用したサーバー: wtserver3
422いいね 14479回再生

Build Your Own Custom Code Generator in Flutter | Flutter Code Generation

Have you ever heard of packages like Freezer, Retrofit, Riverpod Generator? They're all Code Generator built using Flutter! In this video, we are going to learn to build Code Generators like these packages by building one! This Code Generator generates constructor, fromMap, toMap, copyWith functions for a model class. All we need to do is write it once in our code (sort of like creating a template), run a command and it will generate code for all the classes we have annotated. Don't know what 'annotated' means? Watch this tutorial to know more about it.
This is my personal favourite video made on this channel till now. If you have any questions/constructive criticism about this video, let me know. I'll make sure to help you out/improve on this video.

Discord: discord.gg/Q8Rx8YWFVF
Source Code: github.com/RivaanRanawat/code_generator_tutorial

Helpful Resources:
More About build.yaml: github.com/dart-lang/build/blob/master/build_confi…
Riverpod Code Generator Code: github.com/rrousselGit/riverpod/tree/master/packag…
Riverpod Annotation Code: github.com/rrousselGit/riverpod/tree/master/packag…

Connect With Me Here:
Twitter: twitter.com/RanawatRivaan
Linkedin: www.linkedin.com/in/rivaan-ranawat
GitHub: github.com/rivaanranawat
Mail: namanrivaan@gmail.com
Medium: namanrivaan.medium.com/
Instagram: instagram.com/optimalcoding
Facebook: www.facebook.com/rivaan.ranawat/

コメント