Skip to content

Instantly share code, notes, and snippets.

@Blakexx
Created August 4, 2018 04:03
Show Gist options
  • Save Blakexx/fd1010e6649f01fabfdf9efeaf35d10f to your computer and use it in GitHub Desktop.
Save Blakexx/fd1010e6649f01fabfdf9efeaf35d10f to your computer and use it in GitHub Desktop.
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