flutterbond / flutterbond/bond-core

ValidatorLocalizations is not registered inside GetIt.

Open
#119 2 comments 1 reaction 0 assignees View on GitHub
Dominant language
Dart
Stars
12
Forks
8
PR merge metrics
No merged PRs in 30d

Description

I started experimenting with the bond_form_riverpod today. After setting up I was getting this error:
`Unhandled Exception: Bad state: GetIt: Object/factory with type ValidatorLocalizations is not registered inside GetIt`. I use get_it for my development. When I saw that error I immediately knew it wasn't an issue explicitly from my code because I didn't have any dependencies such as "ValidatorLocalizations", it started immediately after I set up bond_form_riverpod.

I did some digging into your code sample and I found out that `ValidatorLocalizations.load(const Locale('en'))` was registered somewhere as a dependency, I did the same thing and it started working for me.

So my questions are:
* Is that always necessary when using bond form?
* If yes, why so?
* If no, why is it that way? Did I miss something?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.