theme/player_theme library
播放器 UI 主题
使用示例
import 'package:aliplayer_widget/theme/player_theme.dart';
// 图标
SvgPicture.asset(
PlayerAssetsScope.iconPath(context, PlayerIcons.back),
width: PlayerStyles.iconSizeTopBar,
)
// 文字
Text(
'Title',
style: TextStyle(
fontSize: PlayerStyles.fontSizeTitle,
color: PlayerStyles.colorOnPrimary,
),
)
Classes
- PlayerAssetsScope
- 用于在 Widget 树中传递资源路径
- PlayerIcons
- 播放器图标文件名常量
- PlayerStyles
- 播放器 UI 设计 Token