-
-
Save Blakexx/fd1010e6649f01fabfdf9efeaf35d10f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
import 'package:image_picker/image_picker.dart'; | |
void main() => runApp(new MaterialApp( | |
home: new Scaffold( | |
appBar: new AppBar(title: new Text("Image Picker Issue")), | |
body: new Container( | |
child: new Center( | |
child: new RaisedButton( | |
padding: EdgeInsets.all(15.0), | |
child: new Text("Select Image"), | |
onPressed: () async{ | |
await ImagePicker.pickImage(source: ImageSource.gallery); | |
} | |
) | |
) | |
) | |
) | |
)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment