Flutter Firebase & DDD Course [25] - Body Field

preview_player
Показать описание
📗 Get the code 👇👇

📧 Get Flutter news 📰 and resources:

👨‍💻 Do you write good code? Find out now!

The NoteFormPage is already in place but the actual form for the user to fill in is missing! Let's start by creating the fields for inputting a note body and selecting its color.

Go to my website for more information, code examples, and articles:

Follow me on social media:
Рекомендации по теме
Комментарии
Автор

For the people who really knows the value of Flutter 💙, this course is the best thing ever happened to the contribution of flutter develelopment.

aaklii
Автор

Just started the DDD course 5 days ago and I’m hooked 😂. Thank you so much for this

wilsonowilson
Автор

hi reso coder, you're life saver man really thanks a lot can you make tutorial about just explaining difference between architectures like mvc mvvm ddd mvp and which architecture should we follow for indermidiate complexity app and big apps like ecomm
once again thanks a lot you're a gem for this flutter community such quality content for free just amazing

HarshSingh-hkfe
Автор

Thanks Reso, you are one of the best flutter mentors on YouTube. If clear note body from firebase console, empty note will be visible in the list. is it going to be fixed in next episodes?

HashemRC
Автор

Also, noticed that using the "wrap with BlocListener" and others causes a lotta misplaced code.

RohithkannaDuraiswamy
Автор

For me it was hard to accecpt the fact of excecution order is the following:
- onChanged callback
- NoteFormBloc mapEventToState
- validator
Since the bloc's eventController is not synchronous which means the added event will be handled on the next frame and yield should happen also in the next frame which will be emitted by the stateController which is also not a synchronous StreamController.

MarciMatuz
Автор

It was vs codes "wrap with BlockListener" option menu that messed up your formatting. I paused the video just before you got to that error, because I was dealing with the exact same thing haha

urklegizmo
Автор

"Pain in the rear side of your body". The sacrifices to remain PG rated. xD

RohithkannaDuraiswamy
Автор

Hi matez if you don't mind, could you please create tutorial series restpul api with flutter, mysql and php in the future

ogibinedi
Автор

Hey Matt! Why didn't you use the initialValue attribute of the TextFormField Widget when editing a note? Is it any different to creating the controller?... Because with initialValue you wouldn't even had to setup the Hook... Great series, btw!!!

baumths
Автор

Maybe will be better if you move .fold in validators maybeMap to classes ini valueobject as new method in it, so Widget field validator will be more tidy, less of code. Like this:

class NoteBody extends ValueObject<String> {
...
String validator() {
return value.fold(
(f) => f.maybeMap(
empty: (f) => 'Cannot be empty :)',
exceedingLength: (f) => 'Exceeding length, max: ${f.max}',
orElse: () => null,
),
(r) => null,
);
}
....

So validator ini TextFormField will be like this:

TextFormField(
validator: (_) =>
context.bloc<NoteFormBloc>().state.note.body.validator(),
)),

rijalulfikri
Автор

How to contac you sir I need knife hit game

techg
Автор

... but this is the pain in the rear side of the body... ROFL :)))

AntonDerevyanko
Автор

@ResoCoder firestore is heavily updated and some methods are breakingly changed.

tintin
Автор

First video in this series was upload around 6 months ago. Its way too long for a notes app.

vaibhavdangayachvd