Skip to content

Instantly share code, notes, and snippets.

@subramanian42
Created September 30, 2022 18:24
Show Gist options
  • Save subramanian42/d8d694c1cf403c8cd096711e85678193 to your computer and use it in GitHub Desktop.
Save subramanian42/d8d694c1cf403c8cd096711e85678193 to your computer and use it in GitHub Desktop.
new main
import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'music_player/music_player.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return MaterialApp(
home: BlocProvider(
create: (context) => MusicPlayerBloc(),
child: const MusicPlayerScreen(),
),
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment