mirror of
https://github.com/Iconica-Development/flutter_image_picker.git
synced 2025-05-18 11:43:44 +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?>(
|
||||
context: context,
|
||||
backgroundColor: Colors.white,
|
||||
builder: (BuildContext context) => const ImagePicker(
|
||||
imagePickerTheme: ImagePickerTheme(),
|
||||
));
|
||||
builder: (BuildContext context) => const ImagePicker());
|
||||
if (imageInBytes != null) {
|
||||
if (!listEquals(ref.read(imageProvider), imageInBytes)) {
|
||||
ref.read(imageProvider.notifier).changeImage(imageInBytes);
|
||||
|
|
Loading…
Reference in a new issue