Update toolbar.dart (#55)

fix
pull/56/head
Jochen 4 years ago committed by GitHub
parent e34998ab64
commit d2e6c13146
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      lib/widgets/toolbar.dart

@ -518,6 +518,8 @@ class _ImageButtonState extends State<ImageButton> {
Future<String> _pickImage(ImageSource source) async {
final PickedFile pickedFile = await _picker.getImage(source: source);
if (pickedFile == null) return null;
final File file = File(pickedFile.path);
if (file == null || widget.onImagePickCallback == null) return null;

Loading…
Cancel
Save