updated project style guidelines
This commit is contained in:
@ -6,7 +6,7 @@ class FilePick {
|
||||
static final _picker = ImagePicker();
|
||||
|
||||
static Future<XFile?> galleryPick() async {
|
||||
final XFile? pickedImage = await _picker.pickImage(source: ImageSource.gallery);
|
||||
final pickedImage = await _picker.pickImage(source: ImageSource.gallery);
|
||||
if (pickedImage != null) {
|
||||
return pickedImage;
|
||||
}
|
||||
@ -14,7 +14,7 @@ class FilePick {
|
||||
}
|
||||
|
||||
static Future<String?> documentPick() async {
|
||||
FilePickerResult? result = await FilePicker.platform.pickFiles();
|
||||
var result = await FilePicker.platform.pickFiles();
|
||||
return result?.files.single.path;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user