Apparence-io / CamerAwesome

📸 Embedding a camera experience within your own app shouldn't be that hard. A flutter plugin to integrate awesome Android / iOS camera experience.
https://ApparenceKit.dev
MIT License
949 stars 240 forks source link

Example code not updated for null safety #138

Closed droidzone closed 2 years ago

droidzone commented 2 years ago

Steps to Reproduce

Use the provided example, and camerawesome 0.3.3 to build

Expected results

No errors

Actual results

error: The argument type 'Null' can't be assigned to the parameter type 'Size'. (argument_type_not_assignable at [myopipclinic] lib/screens/take_pic_new_screen.dart:39)

The affected line is the following: ValueNotifier<Size> _photoSize = ValueNotifier(null);

About your device

Oneplus 9 Pro

Please update the given example to include null safety. It seems the package is updated for null safety, but not the example.

g-apparence commented 2 years ago

What a mistake. 😱 We have to fix this!

thanks for reporting