Skip to content

Commit

Permalink
music player 2 ui
Browse files Browse the repository at this point in the history
  • Loading branch information
lohanidamodar committed Jan 9, 2020
1 parent 6167dac commit 846a9ff
Show file tree
Hide file tree
Showing 4 changed files with 151 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ The code for Springy Widget is taken and refactored from (https://github.com/mat
<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">

## miscellaneous widgets
<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">
<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">
<img height="480px" src="screenshots/btm2.png"><img height="480px" src="screenshots/music.png">

## Blog
Expand Down
6 changes: 4 additions & 2 deletions lib/core/presentation/routes.dart
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import 'package:flutter_ui_challenges/src/pages/misc/bottomsheet.dart';
import 'package:flutter_ui_challenges/src/pages/food/cake.dart';
import 'package:flutter_ui_challenges/src/pages/misc/image_popup.dart';
import 'package:flutter_ui_challenges/src/pages/misc/musicplayer.dart';
import 'package:flutter_ui_challenges/src/pages/misc/musicplayer2.dart';
import 'package:flutter_ui_challenges/src/pages/onboarding/intro6.dart';
import 'package:flutter_ui_challenges/src/pages/settings/settings1.dart';
import 'package:flutter_ui_challenges/src/pages/settings/settings2.dart';
Expand Down Expand Up @@ -274,10 +275,11 @@ final List<dynamic> pages = [
SubMenuItem("Onboarding 5", Intro5(), path: Intro5.path),
]),
MenuItem(title: "Miscellaneous", items: [

SubMenuItem("Music Player Two", MusicPlayerTwoPage(),
path: MusicPlayerTwoPage.path),
SubMenuItem("Image Popup", ImagePopupPage(),
path: ImagePopupPage.path),
SubMenuItem("Event Invitation", InvitationPageOne(),
path: InvitationPageOne.path),
SubMenuItem("Chat Messaages", ChatTwoPage(), path: ChatTwoPage.path),
SubMenuItem("Form Elements", FormElementPage(),
path: FormElementPage.path),
Expand Down
146 changes: 146 additions & 0 deletions lib/src/pages/misc/musicplayer2.dart
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"),
),
],
),
),
);
}
}
Binary file added screenshots/musicplayer2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 846a9ff

Please sign in to comment.