mirror of
				https://gitlab.com/comunic/comunicmobile
				synced 2025-11-04 04:04:18 +00:00 
			
		
		
		
	Fix deprecated methods call
This commit is contained in:
		@@ -123,7 +123,7 @@ Future<BytesFile> showPickFileDialog({
 | 
				
			|||||||
    // Pick an image
 | 
					    // Pick an image
 | 
				
			||||||
    case _FileChoices.PICK_IMAGE:
 | 
					    case _FileChoices.PICK_IMAGE:
 | 
				
			||||||
    case _FileChoices.TAKE_PICTURE:
 | 
					    case _FileChoices.TAKE_PICTURE:
 | 
				
			||||||
      final image = await ImagePicker().getImage(
 | 
					      final image = await ImagePicker().pickImage(
 | 
				
			||||||
        source: choice == _FileChoices.PICK_IMAGE
 | 
					        source: choice == _FileChoices.PICK_IMAGE
 | 
				
			||||||
            ? ImageSource.gallery
 | 
					            ? ImageSource.gallery
 | 
				
			||||||
            : ImageSource.camera,
 | 
					            : ImageSource.camera,
 | 
				
			||||||
@@ -142,7 +142,7 @@ Future<BytesFile> showPickFileDialog({
 | 
				
			|||||||
    // Pick an video
 | 
					    // Pick an video
 | 
				
			||||||
    case _FileChoices.PICK_VIDEO:
 | 
					    case _FileChoices.PICK_VIDEO:
 | 
				
			||||||
    case _FileChoices.TAKE_VIDEO:
 | 
					    case _FileChoices.TAKE_VIDEO:
 | 
				
			||||||
      final image = await ImagePicker().getVideo(
 | 
					      final image = await ImagePicker().pickVideo(
 | 
				
			||||||
        source: choice == _FileChoices.PICK_VIDEO
 | 
					        source: choice == _FileChoices.PICK_VIDEO
 | 
				
			||||||
            ? ImageSource.gallery
 | 
					            ? ImageSource.gallery
 | 
				
			||||||
            : ImageSource.camera,
 | 
					            : ImageSource.camera,
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user