zesage / panorama

Panorama - Flutter Widget
Apache License 2.0
114 stars 71 forks source link

New Feature: Add widget(s) on a given position #12

Closed rlazom closed 3 years ago

rlazom commented 3 years ago

Hi, first of all, I really love your plugin men, awesome job 😎🤘

I like to suggest a new feature, I think it could be very useful. Feature: Add widget(s) on a given position.

The idea could be add to the current panorama class a list of objets(a widget with the position in the scene):

Panorama(
  child: Image.asset('assets/panorama.jpg'),
  widgets: <PositionedWidget>[]
),

And the PositionedWidget Class something like:

PositionedWidget {
  Vector3 position,
  Widget widget
}

This could be used to add (for example):

dariocavada commented 3 years ago

It would be great, because it could be used for virtual tours (click to an icon --> moving from one panorama to another) or to display information on a specific point (for example an object in a museum) etc ...

Would be good to have also an example of how to do this (also without changing the plugin)

zesage commented 3 years ago

791473c5c5e0a34d917e0972673668724b7c245b support add widgets

dariocavada commented 3 years ago

Some tests I've done:

it works (at least on Android):

pano-widgets-test

rlazom commented 3 years ago

Awesome job @zesage. I love it.

rlazom commented 3 years ago

Tested and working