#flutter PIP mode

1 messages · Page 1 of 1 (latest)

hazy cloud
#

i am facing wierd problem in flutter pip mode. I am using this library https://pub.dev/packages/pip_view . the source code doesnt contain some things which i needed like cross button so i took help from pull request whicjh owner didnt merge for adding close button and close button is working fine as it should be

one problem i still cant solve. for having pip mode this thing requires something in background, i dont want that and instead want to have old route widget. So i added its state but still it is creating new route for that which i dont want.

As we can see from video that when going to picture in picture mode it is creating new route so it is back to first item of list instead of item 5 and then after navigating to item 9 when pip is closed then background which was created is gone too so we got back to item 5.
What I want is to not create that background in first place
https://cdn.discordapp.com/attachments/1173161412491743294/1312413847931457617/flutter_pip_problem.mp4

this is the code and main code related for routes is in rawpip is
https://cdn.discordapp.com/attachments/1173161412491743294/1312419502616739850/image.png?ex=674c6d68&is=674b1be8&hm=12fb8ebeca3db1aca11e1a02337972d0ffc770f50e1344dde61fb48835fb1978&
https://codeberg.org/sharecodeless/playlist-flutter

pearl summitBOT
#

<@&987246964494204979> please have a look, thanks.