osm_flutter icon indicating copy to clipboard operation
osm_flutter copied to clipboard

Widget inside MarkerIcon can't be pressed

Open georgno opened this issue 3 years ago • 1 comments

Greetings, is it possible interact with Widgets inside a MarkerIcon? I tried an Inkwell as well as a button but the map keeps having the priority. really appreciate the work on this plugin. Thanks!

MarkerIcon(
        iconWidget: InkWell(
          onTap: (){
            print("Inkwell click");
          },
          child: Container(
            width: 300,
            height: 300,
            decoration: BoxDecoration(
              color: Colors.red,
              borderRadius: BorderRadius.circular(50),
            ),
            child: Column(
              children: [
                Text('Marker'),
                Icon(Icons.location_on),
                ElevatedButton(onPressed: () => {print('Click button')}, child: Text('Button', style: TextStyle(color: Colors.white, fontSize: 120),)),
              ],
            ),
          ),
        ),
      ),

georgno avatar Jan 20 '23 15:01 georgno

for now that's not possible since the Markers only shows as Image Im working in solution to allow those type of Markers sorry for that

liodali avatar Jan 20 '23 17:01 liodali