check image for null safety
This commit is contained in:
@@ -7,7 +7,7 @@ import 'local_text.dart';
|
||||
|
||||
typedef OnFile = void Function(File);
|
||||
|
||||
modelBottomSheet(BuildContext context, {final OnFile onFile}) {
|
||||
modelBottomSheet(BuildContext context, {final OnFile? onFile}) {
|
||||
showModalBottomSheet(
|
||||
elevation: 10,
|
||||
backgroundColor: Colors.white,
|
||||
@@ -84,7 +84,7 @@ class _ImageFileState extends State<ImageFile> {
|
||||
}
|
||||
|
||||
pickImage(ImageSource source) async {
|
||||
var tempImage = await ImagePicker.pickImage(source: source);
|
||||
var tempImage = await ImagePicker().pickImage(source: source);
|
||||
return tempImage;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user