How to add interactive pins on images in flutter?

1,022

The Stack widget is what you want:

Stack(
  children: <Widget>[
    <your image>,
    Positioned(
      left: 50.0,
      top: 30.0,
      child: <your pin>
    ),
    ...
  ],
)
Share:
1,022
Katudi
Author by

Katudi

Updated on December 06, 2022

Comments

  • Katudi
    Katudi over 1 year

    I have trouble integrating images with interactive pins on Flutter.is it even possible? if so, how can I do it? Im looking for something similar to WordPress's Image Mapper plugin!

    • boformer
      boformer over 5 years
      So you want pins that can be moved by the user?
    • Katudi
      Katudi over 5 years
      Thank you for your reply.The pins will be used to identify objects in a photo.For example a clothing e-commerce app where an image of a outfit could have pins for each clothing item.The pin displaying a price of the clothing item and has an onTap callback adding the item to a cart.