問題描述
如何在顫動中將視頻播放器浮動在 youtube 等所有頁面上? (How to float a video player over all pages like youtube in flutter?)
我想創建一個像 youtube 這樣的視頻播放器,它會像 youtube 應用一樣出現在整個屏幕上。
之後最小化或後按此視頻將在所有屏幕上播放:
參考解法
方法 1:
You can try miniplayer dependencies and read how to persistence to pass miniplayer over all pages.
方法 2:
Use the same controller and pass it to a new widget( the one sitting down at bottom) and use hero animation to swap it there.
(by Tipu Sultan、Zera FounderX、user10790330)