fix: Simplify image picking logic by removing null check for pickedFiles
This commit is contained in:
parent
206c84b3a1
commit
58a66546e4
@ -309,7 +309,7 @@ class ReportTaskController extends MyController {
|
||||
}
|
||||
} else {
|
||||
final pickedFiles = await _picker.pickMultiImage(imageQuality: 75);
|
||||
if (pickedFiles != null && pickedFiles.isNotEmpty) {
|
||||
if (pickedFiles.isNotEmpty) {
|
||||
selectedImages.addAll(pickedFiles.map((xfile) => File(xfile.path)));
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user