Skip to content

Commit

Permalink
Merge pull request #2 from shiqizhenyes/master
Browse files Browse the repository at this point in the history
optimize ui detail on iphone
  • Loading branch information
abuanwar072 committed Jun 1, 2020
2 parents ba0c50f + 1740c86 commit e7cd853
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 25 deletions.
4 changes: 2 additions & 2 deletions lib/screens/details_screen.dart
Expand Up @@ -16,7 +16,7 @@ class DetailsScreen extends StatelessWidget {
alignment: Alignment.topCenter,
children: <Widget>[
Container(
height: size.height * .4,
height: size.height * .5,
width: double.infinity,
decoration: BoxDecoration(
image: DecorationImage(
Expand All @@ -39,7 +39,7 @@ class DetailsScreen extends StatelessWidget {
),
),
Padding(
padding: EdgeInsets.only(top: size.height * .4 - 30),
padding: EdgeInsets.only(top: size.height * .5 - 40),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
Expand Down
52 changes: 29 additions & 23 deletions lib/screens/home_screen.dart
Expand Up @@ -215,7 +215,7 @@ class HomeScreen extends StatelessWidget {
top: 24,
right: size.width * .35,
),
height: 185,
height: 195,
width: double.infinity,
decoration: BoxDecoration(
color: Color(0xFFEAEAEA).withOpacity(.45),
Expand All @@ -224,14 +224,16 @@ class HomeScreen extends StatelessWidget {
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
Text(
"New York Time Best For 11th March 2020",
style: TextStyle(
fontSize: 9,
color: kLightBlackColor,
Container(
margin: EdgeInsets.only(top: 10.0, bottom: 10.0),
child: Text(
"New York Time Best For 11th March 2020",
style: TextStyle(
fontSize: 9,
color: kLightBlackColor,
),
),
),
SizedBox(height: 5),
Text(
"How To Win \nFriends & Influence",
style: Theme.of(context).textTheme.title,
Expand All @@ -240,24 +242,28 @@ class HomeScreen extends StatelessWidget {
"Gary Venchuk",
style: TextStyle(color: kLightBlackColor),
),
SizedBox(height: 10),
Row(
children: <Widget>[
BookRating(score: 4.9),
SizedBox(width: 10),
Expanded(
child: Text(
"When the earth was flat and everyone wanted to win the game of the best and people….",
maxLines: 3,
overflow: TextOverflow.ellipsis,
style: TextStyle(
fontSize: 10,
color: kLightBlackColor,
Padding(
padding: EdgeInsets.only(top: 10, bottom: 10.0),
child: Row(
children: <Widget>[
Padding(
padding: EdgeInsets.only(right: 10.0),
child: BookRating(score: 4.9),
),
Expanded(
child: Text(
"When the earth was flat and everyone wanted to win the game of the best and people….",
maxLines: 3,
overflow: TextOverflow.ellipsis,
style: TextStyle(
fontSize: 10,
color: kLightBlackColor,
),
),
),
),
],
)
],
),
),
],
),
),
Expand Down

0 comments on commit e7cd853

Please sign in to comment.