flutter_image_spotpicker 0.2.1
flutter_image_spotpicker: ^0.2.1

Flutter Android iOS web

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
90
pub points
0%
popularity

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

Documentation

API reference

Uploader

itzmeerkat@gmail.com

License

BSD (LICENSE)

Dependencies

flutter

More

Packages that depend on flutter_image_spotpicker