Last active
September 30, 2022 18:00
-
-
Save subramanian42/38a9b8264a107546dc291e5e8a42fc5b to your computer and use it in GitHub Desktop.
music_player_screen
This file contains hidden or 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
import 'package:flutter/material.dart'; | |
import 'package:flutter_bloc/flutter_bloc.dart'; | |
import 'bloc/music_player_bloc.dart'; | |
import 'widgets/album_art.dart'; | |
import 'widgets/media_controls.dart'; | |
class MusicPlayerScreen extends StatelessWidget { | |
const MusicPlayerScreen({Key? key}) : super(key: key); | |
@override | |
Widget build(BuildContext context) { | |
return BlocBuilder<MusicPlayerBloc, MusicPlayerState>( | |
builder: (context, state) { | |
return Scaffold( | |
body: Column( | |
children: [ | |
const SizedBox( | |
height: 50, | |
), | |
const AlbumArt(image: 'assets/images/track_image_1.jpeg'), | |
const SizedBox( | |
height: 50, | |
), | |
MediaControls(isplaying: state.isPlaying), | |
], | |
), | |
); | |
}, | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment