rafidgotit / media_picker_widget

A widget that picks media files from storage and allows you to place anywhere in the widget tree.
MIT License
13 stars 14 forks source link

The argument type 'Uint8List?' can't be assigned to the parameter type 'Uint8List' #4

Closed AMANUELAB closed 1 year ago

AMANUELAB commented 1 year ago

The argument type 'Uint8List?' can't be assigned to the parameter type 'Uint8List'

rafidgotit commented 1 year ago

You have to check if the variable you are getting is null or not. Read the docs about null safety in flutter. https://dart.dev/null-safety