|
@@ -637,8 +637,9 @@ class _MobReqCreatePageState extends State<MobReqCreatePage> {
|
|
|
pickupImageNew() async{
|
|
|
if(Provider.of<CreateSerModule>(context, listen: false).images().length < 5){
|
|
|
if (kIsWeb) {
|
|
|
- var image = await reqFunc.getImageNew(context, ImageSource.gallery);
|
|
|
- Provider.of<CreateSerModule>(context, listen: false).setImages(image);
|
|
|
+ await reqFunc.getImageNew(context, ImageSource.gallery).then((img){
|
|
|
+ img != null ? Provider.of<CreateSerModule>(context, listen: false).setImages(img) : (){};
|
|
|
+ });
|
|
|
} else{
|
|
|
showModalBottomSheet<void>(
|
|
|
context: context,
|