Removed some unnecessary code

This commit is contained in:
Jacques Doeleman 2022-09-26 12:09:15 +02:00
parent 5bfc0ed7e5
commit e4fe3fe1de

View file

@ -127,9 +127,7 @@ class ImagePickerExampleHomePageState
Uint8List? imageInBytes = await showModalBottomSheet<Uint8List?>( Uint8List? imageInBytes = await showModalBottomSheet<Uint8List?>(
context: context, context: context,
backgroundColor: Colors.white, backgroundColor: Colors.white,
builder: (BuildContext context) => const ImagePicker( builder: (BuildContext context) => const ImagePicker());
imagePickerTheme: ImagePickerTheme(),
));
if (imageInBytes != null) { if (imageInBytes != null) {
if (!listEquals(ref.read(imageProvider), imageInBytes)) { if (!listEquals(ref.read(imageProvider), imageInBytes)) {
ref.read(imageProvider.notifier).changeImage(imageInBytes); ref.read(imageProvider.notifier).changeImage(imageInBytes);