forked from jmshrv/finamp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improved loading indicater and Now Playing bar transitions. Added set…
…ting to diable queue autoload.
- Loading branch information
1 parent
c2bfcd7
commit 36871c1
Showing
15 changed files
with
584 additions
and
511 deletions.
There are no files selected for viewing
29 changes: 29 additions & 0 deletions
29
lib/components/AudioServiceSettingsScreen/loadQueueOnStartup_selector.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import 'package:flutter/material.dart'; | ||
import 'package:flutter_gen/gen_l10n/app_localizations.dart'; | ||
import 'package:hive/hive.dart'; | ||
|
||
import '../../services/finamp_settings_helper.dart'; | ||
import '../../models/finamp_models.dart'; | ||
|
||
class LoadQueueOnStartupSelector extends StatelessWidget { | ||
const LoadQueueOnStartupSelector({Key? key}) : super(key: key); | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return ValueListenableBuilder<Box<FinampSettings>>( | ||
valueListenable: FinampSettingsHelper.finampSettingsListener, | ||
builder: (_, box, __) { | ||
return SwitchListTile.adaptive( | ||
title: | ||
Text(AppLocalizations.of(context)!.autoloadLastQueueOnStartup), | ||
subtitle: Text(AppLocalizations.of(context)! | ||
.autoloadLastQueueOnStartupSubtitle), | ||
value: | ||
FinampSettingsHelper.finampSettings.autoloadLastQueueOnStartup, | ||
onChanged: (value) => | ||
FinampSettingsHelper.setAutoloadLastQueueOnStartup(value), | ||
); | ||
}, | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.