updates
This commit is contained in:
parent
fc22d11df1
commit
27a8a62475
32 changed files with 354 additions and 335 deletions
|
|
@ -19,28 +19,28 @@ Future<void> main() async {
|
|||
// hang we still start the app (playback just loses lock-screen controls).
|
||||
try {
|
||||
await JustAudioBackground.init(
|
||||
androidNotificationChannelId: 'com.conversionpath.ratune_mobile.audio',
|
||||
androidNotificationChannelName: 'Ratune playback',
|
||||
androidNotificationChannelId: 'com.laforrestchurch.timbre.audio',
|
||||
androidNotificationChannelName: 'Timbre playback',
|
||||
androidNotificationOngoing: true,
|
||||
).timeout(const Duration(seconds: 8));
|
||||
} catch (e, st) {
|
||||
debugPrint('JustAudioBackground.init failed: $e\n$st');
|
||||
}
|
||||
}
|
||||
runApp(const ProviderScope(child: RatuneApp()));
|
||||
runApp(const ProviderScope(child: TimbreApp()));
|
||||
}
|
||||
|
||||
class RatuneApp extends ConsumerWidget {
|
||||
const RatuneApp({super.key});
|
||||
class TimbreApp extends ConsumerWidget {
|
||||
const TimbreApp({super.key});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context, WidgetRef ref) {
|
||||
// The theme rebuilds whenever the album-art accent changes.
|
||||
final accent = ref.watch(accentProvider);
|
||||
return MaterialApp(
|
||||
title: 'Ratune',
|
||||
title: 'Timbre',
|
||||
debugShowCheckedModeBanner: false,
|
||||
theme: buildRatuneTheme(accent),
|
||||
theme: buildTimbreTheme(accent),
|
||||
home: const AppShell(),
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue