Skip to content

Commit

Permalink
馃憣 IMPROVE: Look & Feel
Browse files Browse the repository at this point in the history
  • Loading branch information
Abhishek wagh authored and Abhishek wagh committed May 2, 2020
1 parent a1e462d commit 51a0715
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 16 deletions.
24 changes: 14 additions & 10 deletions lib/screens/home_screen.dart
Expand Up @@ -34,9 +34,10 @@ class _HomeScreenState extends State<HomeScreen> {
height: 100.0,
decoration: BoxDecoration(
color: Colors.white,
borderRadius: BorderRadius.circular(10),
boxShadow: [
BoxShadow(
color: Colors.black12,
color: Colors.black26,
offset: Offset(0, 1),
blurRadius: 6.0,
),
Expand All @@ -50,7 +51,7 @@ class _HomeScreenState extends State<HomeScreen> {
backgroundImage: NetworkImage(_channel.profilePictureUrl),
),
SizedBox(
width: 12.0,
width: 20.0,
),
Expanded(
child: Column(
Expand Down Expand Up @@ -95,20 +96,23 @@ class _HomeScreenState extends State<HomeScreen> {
margin: EdgeInsets.symmetric(horizontal: 20.0, vertical: 5.0),
padding: EdgeInsets.all(10.0),
height: 140.0,
decoration: BoxDecoration(color: Colors.white, boxShadow: [
BoxShadow(
color: Colors.black12,
offset: Offset(0, 1),
blurRadius: 6.0,
)
]),
decoration: BoxDecoration(
color: Colors.white,
borderRadius: BorderRadius.circular(10),
boxShadow: [
BoxShadow(
color: Colors.black26,
offset: Offset(0, 1),
blurRadius: 6.0,
)
]),
child: Row(
children: <Widget>[
Image(
width: 150.0,
image: NetworkImage(video.thumbnailUrl),
),
SizedBox(width: 10.0),
SizedBox(width: 15.0),
Expanded(
child: Text(
video.title,
Expand Down
17 changes: 11 additions & 6 deletions lib/screens/video_screen.dart
Expand Up @@ -36,12 +36,17 @@ class _VideoScreenState extends State<VideoScreen> {
),
),
),
body: YoutubePlayer(
controller: _controller,
showVideoProgressIndicator: true,
onReady: () {
print('Player is Ready.');
},
body: Center(
child: Padding(
padding: const EdgeInsets.all(8.0),
child: YoutubePlayer(
controller: _controller,
showVideoProgressIndicator: true,
onReady: () {
print('Player is Ready.');
},
),
),
),
);
}
Expand Down

0 comments on commit 51a0715

Please sign in to comment.