mirror of
https://github.com/Iconica-Development/flutter_image_picker.git
synced 2025-05-18 19:53:45 +02:00
Removed some unnecessary code
This commit is contained in:
parent
5bfc0ed7e5
commit
e4fe3fe1de
1 changed files with 1 additions and 3 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue