Project import generated by Copybara.

GitOrigin-RevId: 847dfa699b098342e16ef2e1902b82257ad02c1e
This commit is contained in:
Madari Developers 2025-01-04 18:29:27 +00:00
parent 2f50e0e01d
commit 6e360022ca
2 changed files with 2 additions and 4 deletions

View file

@ -146,8 +146,6 @@ class _PlaybackSettingsScreenState extends State<PlaybackSettingsScreen> {
);
}
print(_defaultPlayerId);
return Scaffold(
appBar: AppBar(
title: const Text('Playback Settings'),
@ -225,7 +223,7 @@ class _PlaybackSettingsScreenState extends State<PlaybackSettingsScreen> {
ListTile(
title: const Text('Default Player'),
trailing: DropdownButton<String>(
value: _defaultPlayerId,
value: _defaultPlayerId == "" ? null : _defaultPlayerId,
items: externalPlayers[currentPlatform]!
.map(
(item) => item.toDropdownMenuItem(),

View file

@ -49,7 +49,7 @@ class PlaybackConfig {
@JsonKey(defaultValue: false)
final bool externalPlayer;
final Map<String, String>? externalPlayerId;
final Map<String, String?>? externalPlayerId;
PlaybackConfig({
required this.autoPlay,