Skip to content
This repository has been archived by the owner on Jan 25, 2024. It is now read-only.

报告了错,获取不到viewPadding #60

Closed
ljfass opened this issue Sep 18, 2019 · 9 comments
Closed

报告了错,获取不到viewPadding #60

ljfass opened this issue Sep 18, 2019 · 9 comments

Comments

@ljfass
Copy link

ljfass commented Sep 18, 2019

The getter 'viewPadding' isn't defined for the class 'MediaQueryData'.

@boyan01
Copy link
Owner

boyan01 commented Sep 18, 2019

flutter 版本信息给一下哈

@ljfass
Copy link
Author

ljfass commented Sep 18, 2019

版本号:1.6.3

@boyan01
Copy link
Owner

boyan01 commented Sep 18, 2019

先升级到 1.7.x 的 stable 版本吧,1.6 也太早了... 现在 1.9 的 stable 版都出来了。

@ljfass
Copy link
Author

ljfass commented Sep 18, 2019

行吧

@ljfass
Copy link
Author

ljfass commented Sep 18, 2019

呃,顺便多问一句,你项目里使用的播放器那部分的代码,有点太复杂了,看不太懂,能简单说说吗?感谢了!

@boyan01
Copy link
Owner

boyan01 commented Sep 18, 2019

播放器代码?指 flutter 还是 native 呐?

播放器无非就是拿个 controller 来控制 service 播放/暂停、切换下一曲;然后 widget 监听播放器状态,当播放器状态改变时,刷新相关的 widget。

理清上面这个大思路就行了。更细节的地方,一两句话也说不清楚...

@boyan01 boyan01 closed this as completed Sep 18, 2019
@ljfass
Copy link
Author

ljfass commented Sep 19, 2019

那个player_channel是还含有native的思路和写法吗

@boyan01
Copy link
Owner

boyan01 commented Sep 19, 2019

player_channel 属于这个项目了 https://github.com/boyan01/flutter-music-player

flutter 目前无法播放音视频,所以肯定要与 native 交互才行的。

播放器的设计主要是采用了Android MediaSession 的架构思想。

@ljfass
Copy link
Author

ljfass commented Sep 19, 2019

👌

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants