forked from lohanidamodar/flutter_ui_challenges
-
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.
- Loading branch information
1 parent
6167dac
commit 846a9ff
Showing
4 changed files
with
151 additions
and
3 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,146 @@ | ||
import 'package:cached_network_image/cached_network_image.dart'; | ||
import 'package:flutter/material.dart'; | ||
import 'package:flutter_swiper/flutter_swiper.dart'; | ||
import 'package:flutter_ui_challenges/core/presentation/res/assets.dart'; | ||
import 'package:flutter_ui_challenges/src/pages/invitation/inlanding.dart'; | ||
|
||
class MusicPlayerTwoPage extends StatelessWidget { | ||
static final String path = "lib/src/pages/misc/musicplayer2.dart"; | ||
@override | ||
Widget build(BuildContext context) { | ||
return Scaffold( | ||
appBar: AppBar( | ||
backgroundColor: Colors.transparent, | ||
elevation: 0, | ||
iconTheme: IconThemeData(color: Colors.black), | ||
title: Text( | ||
'Music Player', | ||
style: TextStyle(color: Colors.black), | ||
), | ||
actions: <Widget>[ | ||
MaterialButton( | ||
padding: const EdgeInsets.all(0), | ||
elevation: 0, | ||
shape: CircleBorder(), | ||
onPressed: () {}, | ||
child: CircleAvatar( | ||
maxRadius: 15.0, | ||
backgroundImage: CachedNetworkImageProvider(avatars[0]), | ||
), | ||
), | ||
], | ||
), | ||
body: SingleChildScrollView( | ||
child: Column( | ||
crossAxisAlignment: CrossAxisAlignment.start, | ||
children: <Widget>[ | ||
Container( | ||
height: 250, | ||
child: Swiper( | ||
viewportFraction: 0.8, | ||
scale: 0.9, | ||
itemCount: 3, | ||
itemBuilder: (context, index) => Stack( | ||
children: <Widget>[ | ||
Container( | ||
decoration: BoxDecoration( | ||
color: Colors.blue, | ||
borderRadius: BorderRadius.circular(10.0), | ||
image: DecorationImage( | ||
image: CachedNetworkImageProvider(images[index]), | ||
fit: BoxFit.cover, | ||
)), | ||
), | ||
Container( | ||
alignment: Alignment.center, | ||
decoration: BoxDecoration( | ||
borderRadius: BorderRadius.circular(10.0), | ||
color: Colors.blue.withOpacity(0.5)), | ||
child: Text( | ||
"Travel Series", | ||
style: TextStyle( | ||
color: Colors.white, | ||
fontWeight: FontWeight.bold, | ||
fontSize: 24.0, | ||
), | ||
), | ||
) | ||
], | ||
), | ||
), | ||
), | ||
const SizedBox(height: 10.0), | ||
Container( | ||
width: double.infinity, | ||
padding: const EdgeInsets.all(16.0), | ||
color: Colors.black, | ||
child: Text( | ||
"My Playlist, 348 Songs".toUpperCase(), | ||
style: whiteText, | ||
), | ||
), | ||
ListTile( | ||
leading: Icon(Icons.pause), | ||
title: Text("Ariana Grande"), | ||
subtitle: Column( | ||
crossAxisAlignment: CrossAxisAlignment.start, | ||
children: <Widget>[ | ||
Text("Daydreaming"), | ||
const SizedBox(height: 10.0), | ||
], | ||
), | ||
trailing: Text("3:45"), | ||
), | ||
Padding( | ||
padding: const EdgeInsets.only(left: 70.0,right: 20), | ||
child: Stack( | ||
children: <Widget>[ | ||
Container( | ||
width: double.infinity, | ||
height: 1.0, | ||
color: Colors.grey, | ||
), | ||
Container( | ||
width: MediaQuery.of(context).size.width-300, | ||
height: 1.0, | ||
color: Colors.black, | ||
), | ||
], | ||
), | ||
), | ||
ListTile( | ||
leading: Icon(Icons.play_arrow), | ||
title: Text("Beyonce"), | ||
subtitle: Text("Halo"), | ||
trailing: Text("3:05"), | ||
), | ||
ListTile( | ||
leading: Icon(Icons.play_arrow), | ||
title: Text("Don't let me down"), | ||
subtitle: Text("Coldplay"), | ||
trailing: Text("3:05"), | ||
), | ||
ListTile( | ||
leading: Icon(Icons.play_arrow), | ||
title: Text("Just the way you are"), | ||
subtitle: Text("Bruno Mars"), | ||
trailing: Text("3:05"), | ||
), | ||
ListTile( | ||
leading: Icon(Icons.play_arrow), | ||
title: Text("Beyonce"), | ||
subtitle: Text("Halo"), | ||
trailing: Text("3:05"), | ||
), | ||
ListTile( | ||
leading: Icon(Icons.play_arrow), | ||
title: Text("Just the way you are"), | ||
subtitle: Text("Bruno Mars"), | ||
trailing: Text("3:05"), | ||
), | ||
], | ||
), | ||
), | ||
); | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.