flutter_image_spotpicker 0.2.1 copy "flutter_image_spotpicker: ^0.2.1" to clipboard
flutter_image_spotpicker: ^0.2.1 copied to clipboard

Load an image, then the library allows you to select/unselect multiple spot on it. Returns a list of points.

example/main.dart

import 'package:flutter/material.dart';
import 'package:flutter_image_spotpicker/flutter_image_spotpicker.dart';

void main() => runApp(MyApp());

class MyApp extends StatefulWidget {
  @override
  State<StatefulWidget> createState() {
    return ImageSpotpickerExample();
  }
}

class ImageSpotpickerExample extends State<MyApp> {
  static List<Map<String, double>> points = [
    {'x': 178, 'y': 152},
    {'x': 185, 'y': 272},
    {'x': 245, 'y': 186},
  ];

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
        home: Scaffold(
            appBar: AppBar(title: Text("flutter_image_map Example")),
            body: ImageSpotpicker(
              imagePath: 'assets/worldmap.png',
              imageSize: Size(698, 566),
              pins: points,
              isDebug: true,
            )));
  }
}
1
likes
40
pub points
0%
popularity

Publisher

unverified uploader

Load an image, then the library allows you to select/unselect multiple spot on it. Returns a list of points.

Repository (GitHub)
View/report issues

License

BSD-3-Clause (LICENSE)

Dependencies

flutter

More

Packages that depend on flutter_image_spotpicker