flutter_media_metadata icon indicating copy to clipboard operation
flutter_media_metadata copied to clipboard

Not work in isolate

Open H3mnz opened this issue 3 years ago • 2 comments

when using in isolate this error happen try adding WidgetsFlutterBinding.ensureInitialized() in main method but not fix.

Binding has not yet been initialized. The "instance" getter on the ServicesBinding binding mixin is only available once that binding has been initialized. Typically, this is done by calling "WidgetsFlutterBinding.ensureInitialized()" or "runApp()" (the latter calls the former). Typically this call is done in the "void main()" method. The "ensureInitialized" method is idempotent; calling it multiple times is not harmful. After calling that method, the "instance" getter will return the binding. In a test, one can call "TestWidgetsFlutterBinding.ensureInitialized()" as the first line in the test's "main()" method to initialize the binding.

H3mnz avatar Aug 06 '22 17:08 H3mnz

I counter the same problem. I thought this package has no Widgets.

NattyPluz avatar Nov 13 '22 12:11 NattyPluz

any fix. had the same issue. using this package for getting metadata of multiple files completely freezes the UI. Is there any alternatives?

xenSlayer avatar Nov 28 '22 20:11 xenSlayer