Misir

Results 101 comments of Misir

I have a few concerns about your implementations. For example: 1. IsolateA spawned from notification or alarm manager and created master hive instance 2. User opens notification, OS opens app...

> The real problem is how to implement a correct mutex for this in Dart. Could it be possible to handle this in Java instead ? Yeah that's another option....

> But if it happens to be too much trouble handling this in Dart itself, side-stepping Dart's limitations through dart:ffi is the only viable option. Maybe a solid Rust library...

ValidationBuilder already supports using "local" locales by providing them as constructor parameter: ```dart ValidationBuilder(locale: customLocale) ``` If you need more "flexibility" you can write some helper function like this and...

You can provide custom validators using [`.add` method](https://pub.dev/documentation/form_validator/latest/form_validator/ValidationBuilder/add.html) like: ```dart ValidationBuilder(optional: true) ..add((value) => (double.tryParse(value) ?? 0.0) < someDoubleValue ? null : 'Value has to be less than $someDoubleValue'); ```...

You can set `optional` parameter when constructing `ValidationBuilder` to set value as optional (not-required). In that case if null or empty string value is provided the validation will be passed.

I'm thinking about using `Map` for storing i18n messages rather than classes. ```dart final localeData = { 'min_length': 'Must be at least {min} characters', }; FormValidator.addLocale('en', localeData); ``` `addLocale` will...

Fixed in [v0.1.6-next](https://pub.dev/packages/form_validator/versions/0.1.6-next). I published as prerelease since there's some breaking changes.

> Hello ! I've just tried this new version but i'm getting this error : > > ``` > Unsupported operation: Cannot set value in unmodifiable Map > > When...

I don't like depending on 3rd party packages just for a few lines of code actually 😅