Skip to content

Commit 846a9ff

Browse files
committed
music player 2 ui
1 parent 6167dac commit 846a9ff

File tree

4 files changed

+151
-3
lines changed

4 files changed

+151
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ The code for Springy Widget is taken and refactored from (https://github.com/mat
176176
<img height="480px" src="screenshots/intro6.gif"> <img height="480px" src="screenshots/intro4.gif"> <img height="480px" src="screenshots/onboard3.gif"> <img height="480px" src="screenshots/onboard2.gif"> <img height="480px" src="screenshots/onboarding1.gif"><img height="480px" src="screenshots/i5.gif">
177177

178178
## miscellaneous widgets
179-
<img height="480px" src="screenshots/image-popup.png"> <img height="480px" src="screenshots/dash3.png"> <img height="480px" src="screenshots/dash2.png"> <img height="480px" src="screenshots/chat2.png"> <img height="480px" src="screenshots/dash1.png"> <img height="480px" src="screenshots/chatui.png"> <img height="480px" src="screenshots/landing1.png"> <img height="480px" src="screenshots/form.png"> <img height="480px" src="screenshots/sliders.gif"> <img height="480px" src="screenshots/dialog2.png"> <img height="480px" src="screenshots/dialog1.png"> <img height="480px" src="screenshots/hidden_menu1.gif"> <img height="480px" src="screenshots/springy_slider.gif"> <img height="480px" src="screenshots/sliverappbar1.gif"> <img height="480px" src="screenshots/hero-animation.gif">
179+
<img height="480px" src="screenshots/musicplayer2.png"> <img height="480px" src="screenshots/image-popup.png"> <img height="480px" src="screenshots/dash3.png"> <img height="480px" src="screenshots/dash2.png"> <img height="480px" src="screenshots/chat2.png"> <img height="480px" src="screenshots/dash1.png"> <img height="480px" src="screenshots/chatui.png"> <img height="480px" src="screenshots/landing1.png"> <img height="480px" src="screenshots/form.png"> <img height="480px" src="screenshots/sliders.gif"> <img height="480px" src="screenshots/dialog2.png"> <img height="480px" src="screenshots/dialog1.png"> <img height="480px" src="screenshots/hidden_menu1.gif"> <img height="480px" src="screenshots/springy_slider.gif"> <img height="480px" src="screenshots/sliverappbar1.gif"> <img height="480px" src="screenshots/hero-animation.gif">
180180
<img height="480px" src="screenshots/btm2.png"><img height="480px" src="screenshots/music.png">
181181

182182
## Blog

lib/core/presentation/routes.dart

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import 'package:flutter_ui_challenges/src/pages/misc/bottomsheet.dart';
1515
import 'package:flutter_ui_challenges/src/pages/food/cake.dart';
1616
import 'package:flutter_ui_challenges/src/pages/misc/image_popup.dart';
1717
import 'package:flutter_ui_challenges/src/pages/misc/musicplayer.dart';
18+
import 'package:flutter_ui_challenges/src/pages/misc/musicplayer2.dart';
1819
import 'package:flutter_ui_challenges/src/pages/onboarding/intro6.dart';
1920
import 'package:flutter_ui_challenges/src/pages/settings/settings1.dart';
2021
import 'package:flutter_ui_challenges/src/pages/settings/settings2.dart';
@@ -274,10 +275,11 @@ final List<dynamic> pages = [
274275
SubMenuItem("Onboarding 5", Intro5(), path: Intro5.path),
275276
]),
276277
MenuItem(title: "Miscellaneous", items: [
278+
279+
SubMenuItem("Music Player Two", MusicPlayerTwoPage(),
280+
path: MusicPlayerTwoPage.path),
277281
SubMenuItem("Image Popup", ImagePopupPage(),
278282
path: ImagePopupPage.path),
279-
SubMenuItem("Event Invitation", InvitationPageOne(),
280-
path: InvitationPageOne.path),
281283
SubMenuItem("Chat Messaages", ChatTwoPage(), path: ChatTwoPage.path),
282284
SubMenuItem("Form Elements", FormElementPage(),
283285
path: FormElementPage.path),
Lines changed: 146 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,146 @@
1+
import 'package:cached_network_image/cached_network_image.dart';
2+
import 'package:flutter/material.dart';
3+
import 'package:flutter_swiper/flutter_swiper.dart';
4+
import 'package:flutter_ui_challenges/core/presentation/res/assets.dart';
5+
import 'package:flutter_ui_challenges/src/pages/invitation/inlanding.dart';
6+
7+
class MusicPlayerTwoPage extends StatelessWidget {
8+
static final String path = "lib/src/pages/misc/musicplayer2.dart";
9+
@override
10+
Widget build(BuildContext context) {
11+
return Scaffold(
12+
appBar: AppBar(
13+
backgroundColor: Colors.transparent,
14+
elevation: 0,
15+
iconTheme: IconThemeData(color: Colors.black),
16+
title: Text(
17+
'Music Player',
18+
style: TextStyle(color: Colors.black),
19+
),
20+
actions: <Widget>[
21+
MaterialButton(
22+
padding: const EdgeInsets.all(0),
23+
elevation: 0,
24+
shape: CircleBorder(),
25+
onPressed: () {},
26+
child: CircleAvatar(
27+
maxRadius: 15.0,
28+
backgroundImage: CachedNetworkImageProvider(avatars[0]),
29+
),
30+
),
31+
],
32+
),
33+
body: SingleChildScrollView(
34+
child: Column(
35+
crossAxisAlignment: CrossAxisAlignment.start,
36+
children: <Widget>[
37+
Container(
38+
height: 250,
39+
child: Swiper(
40+
viewportFraction: 0.8,
41+
scale: 0.9,
42+
itemCount: 3,
43+
itemBuilder: (context, index) => Stack(
44+
children: <Widget>[
45+
Container(
46+
decoration: BoxDecoration(
47+
color: Colors.blue,
48+
borderRadius: BorderRadius.circular(10.0),
49+
image: DecorationImage(
50+
image: CachedNetworkImageProvider(images[index]),
51+
fit: BoxFit.cover,
52+
)),
53+
),
54+
Container(
55+
alignment: Alignment.center,
56+
decoration: BoxDecoration(
57+
borderRadius: BorderRadius.circular(10.0),
58+
color: Colors.blue.withOpacity(0.5)),
59+
child: Text(
60+
"Travel Series",
61+
style: TextStyle(
62+
color: Colors.white,
63+
fontWeight: FontWeight.bold,
64+
fontSize: 24.0,
65+
),
66+
),
67+
)
68+
],
69+
),
70+
),
71+
),
72+
const SizedBox(height: 10.0),
73+
Container(
74+
width: double.infinity,
75+
padding: const EdgeInsets.all(16.0),
76+
color: Colors.black,
77+
child: Text(
78+
"My Playlist, 348 Songs".toUpperCase(),
79+
style: whiteText,
80+
),
81+
),
82+
ListTile(
83+
leading: Icon(Icons.pause),
84+
title: Text("Ariana Grande"),
85+
subtitle: Column(
86+
crossAxisAlignment: CrossAxisAlignment.start,
87+
children: <Widget>[
88+
Text("Daydreaming"),
89+
const SizedBox(height: 10.0),
90+
],
91+
),
92+
trailing: Text("3:45"),
93+
),
94+
Padding(
95+
padding: const EdgeInsets.only(left: 70.0,right: 20),
96+
child: Stack(
97+
children: <Widget>[
98+
Container(
99+
width: double.infinity,
100+
height: 1.0,
101+
color: Colors.grey,
102+
),
103+
Container(
104+
width: MediaQuery.of(context).size.width-300,
105+
height: 1.0,
106+
color: Colors.black,
107+
),
108+
],
109+
),
110+
),
111+
ListTile(
112+
leading: Icon(Icons.play_arrow),
113+
title: Text("Beyonce"),
114+
subtitle: Text("Halo"),
115+
trailing: Text("3:05"),
116+
),
117+
ListTile(
118+
leading: Icon(Icons.play_arrow),
119+
title: Text("Don't let me down"),
120+
subtitle: Text("Coldplay"),
121+
trailing: Text("3:05"),
122+
),
123+
ListTile(
124+
leading: Icon(Icons.play_arrow),
125+
title: Text("Just the way you are"),
126+
subtitle: Text("Bruno Mars"),
127+
trailing: Text("3:05"),
128+
),
129+
ListTile(
130+
leading: Icon(Icons.play_arrow),
131+
title: Text("Beyonce"),
132+
subtitle: Text("Halo"),
133+
trailing: Text("3:05"),
134+
),
135+
ListTile(
136+
leading: Icon(Icons.play_arrow),
137+
title: Text("Just the way you are"),
138+
subtitle: Text("Bruno Mars"),
139+
trailing: Text("3:05"),
140+
),
141+
],
142+
),
143+
),
144+
);
145+
}
146+
}

screenshots/musicplayer2.png

889 KB
Loading

0 commit comments

Comments
 (0)