spotify and network groups working
This commit is contained in:
parent
025eee7644
commit
6b93f1206d
11 changed files with 1381 additions and 267 deletions
|
@ -4,6 +4,7 @@ import 'pages/now_playing_page.dart';
|
|||
import 'pages/voting_page.dart';
|
||||
import 'pages/group_page.dart';
|
||||
import 'services/music_queue_service.dart';
|
||||
import 'services/network_group_service.dart';
|
||||
|
||||
void main() {
|
||||
runApp(const MyApp());
|
||||
|
@ -15,8 +16,11 @@ class MyApp extends StatelessWidget {
|
|||
// This widget is the root of your application.
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return ChangeNotifierProvider(
|
||||
create: (context) => MusicQueueService(),
|
||||
return MultiProvider(
|
||||
providers: [
|
||||
ChangeNotifierProvider(create: (context) => MusicQueueService()),
|
||||
ChangeNotifierProvider(create: (context) => NetworkGroupService()),
|
||||
],
|
||||
child: MaterialApp(
|
||||
title: 'SleepySound',
|
||||
theme: ThemeData(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue