Add a Note & Manage the State with Provider Package | Flutter Awesome Notes - Part 3

  Рет қаралды 206

Sayed Mahmood Sayedi

Sayed Mahmood Sayedi

Күн бұрын

In this video, we'll implement the functionality to add a new note and at the same time, we'll use the Provider package to manage the app state. You'll learn how to use the Consumer as well as the Selector widget to granularly listen to state changes and rebuild the widgets.
You'll also learn how to add a dialog and also avoid accidental back navigation.
Like & subscribe to get the upcoming videos of the series, on time!
Source code 👨🏻‍💻: github.com/sm-sayedi/awesome_...
Links 🔗 used in the video
pub.dev/packages/flutter_quill
pub.dev/packages/provider
pub.dev/packages/intl
api.flutter.dev/flutter/intl/...
Timecodes (Chapters)
00:00:00 - Introduction
00:01:04 - Migrate the flutter-quill to the new version
00:15:17 - Solve the keyboard-focus bug
00:17:07 - Create model class for Note
00:20:17 - Add Provider as the state management solution
00:22:09 - Use ChangeNotifierProvider widget
00:23:40 - Use Consumer widget
00:28:48 - Manage the absence of notes
00:30:02 - Add an asset-image to the app
00:34:35 - Manage creating notes seperately
00:35:38 - Introduce a Change Notifier for creating notes
00:39:32 - Use Selector widget
00:47:42 - Properly use provider in initstate
00:50:06 - Collect title, content, and tags for creating a note
00:56:19 - Create a dialog for adding tags to the note
01:12:00 - Validate user input using GlobalKey
01:24:24 - Properly use Selector widget with List
01:30:03 - Add a note
01:37:00 - Use DateFormat from intl package to format date
01:42:13 - Prevent empty notes from adding
01:45:09 - Prevent accidental back navigation
01:56:02 - Refactor the code
01:58:58 - Final words
#flutter #fluttertutorial #provider #consumer #selector #firebase #flutterfirebase #firestore

Пікірлер: 2
@zakfrum
@zakfrum 6 ай бұрын
Thanks for the update and also for the detailed explanation of the state management aspects ! Keep up 👍
@sm-sayedi
@sm-sayedi 6 ай бұрын
Appreciate your support! 🙏🏻
Edit, Delete, Order, and Search the Notes | Flutter Awesome Notes - Part 4
1:07:37
孩子多的烦恼?#火影忍者 #家庭 #佐助
00:31
火影忍者一家
Рет қаралды 51 МЛН
- А что в креме? - Это кАкАооо! #КондитерДети
00:24
Телеканал ПЯТНИЦА
Рет қаралды 7 МЛН
DHH - Ruby on Rails, 37signals, and the future of web development
1:09:57
Robert Greene: A Process for Finding & Achieving Your Unique Purpose
3:11:18
Andrew Huberman
Рет қаралды 10 МЛН
Angular/ThreeJS - Video 160 emits the font signal
12:43
Marty Trujillo
Рет қаралды 24
On .NET Live - Voice-to-Everything in Visual Studio
1:04:03
dotnet
Рет қаралды 2,1 М.
🔴Build Twitter Fleets (stories) with React Native and AWS Amplify
3:43:10
Build the New/Edit Note Page of the App | Flutter Awesome Notes - Part 2
1:01:33
🔒 Google Sign In in Flutter with Firebase - Step-by-Step Guide (2024) 🔥
17:04
Easy Art with AR Drawing App - Step by step for Beginners
0:27
Melli Art School
Рет қаралды 14 МЛН
WATERPROOF RATED IP-69🌧️#oppo #oppof27pro#oppoindia
0:10
Fivestar Mobile
Рет қаралды 19 МЛН