Skip to content

Instantly share code, notes, and snippets.

Privacy Policy
This privacy policy applies to the br.com.smallladystudio.loteriacompleta app (hereby referred to as "Application") for mobile devices that was created by SmallLady Studios (hereby referred to as "Service Provider") as an Ad Supported service. This service is intended for use "AS IS".
Information Collection and Use
The Application collects information when you download and use it. This information may include information such as
Your device's Internet Protocol address (e.g. IP address)
The pages of the Application that you visit, the time and date of your visit, the time spent on those pages
The time spent on the Application
@barbswatanabe
barbswatanabe / dragImage.dart
Created July 23, 2018 01:44
Zoom with Drag and Drop - Flutter
class DragImage extends StatefulWidget {
final Offset position;
final File image;
DragImage(this.position, this.image);
@override
DragImageState createState() => DragImageState();
}
@barbswatanabe
barbswatanabe / callCamera.dart
Created July 23, 2018 01:35
Zoom with Drag and Drop - Flutter
void _initCamera() async {
File img = await ImagePicker.pickImage(source: ImageSource.camera);
if (img != null) {
setState(() {
_image = img;
});
}
}
@barbswatanabe
barbswatanabe / container.dart
Created July 23, 2018 01:32
Zoom with drag and drop - Flutter
...
class _MyHomePageState extends State<MyHomePage> {
File _image;
@override
Widget build(BuildContext context) {
return new Scaffold(
appBar: new AppBar(
title: new Text(widget.title),