Skip to content

Commit

Permalink
Apilando Textos
Browse files Browse the repository at this point in the history
  • Loading branch information
Anahi Salgado committed Dec 6, 2018
1 parent 165468b commit 5b63003
Show file tree
Hide file tree
Showing 2 changed files with 79 additions and 1 deletion.
70 changes: 69 additions & 1 deletion platzi_trips_app/lib/review.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,79 @@ import 'package:flutter/material.dart';
class Review extends StatelessWidget {

String pathImage = "asset/img/people.jpg";
String name = "Varuna Yasas";
String details = "1 review 5 photos";
String comment = "There is an amazing place in Sri Lanka";

Review(this.pathImage);
Review(this.pathImage, this.name, this.details, this.comment);

@override
Widget build(BuildContext context) {
// TODO: implement build

final userComment = Container(
margin: EdgeInsets.only(
left: 20.0
),

child: Text(
details,
textAlign: TextAlign.left,
style: TextStyle(
fontFamily: "Lato",
fontSize: 13.0,
fontWeight: FontWeight.w900
),

),

);

final userInfo = Container(
margin: EdgeInsets.only(
left: 20.0
),

child: Text(
details,
textAlign: TextAlign.left,
style: TextStyle(
fontFamily: "Lato",
fontSize: 13.0,
color: Color(0xFFa3a5a7)
),

),

);

final userName = Container(
margin: EdgeInsets.only(
left: 20.0
),

child: Text(
name,
textAlign: TextAlign.left,
style: TextStyle(
fontFamily: "Lato",
fontSize: 17.0
),

),

);

final userDetails = Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
userName,
userInfo,
userComment

],
);

final photo = Container (
margin: EdgeInsets.only(
top: 20.0,
Expand All @@ -31,6 +97,8 @@ class Review extends StatelessWidget {

return Row (
children: <Widget>[
photo,
userComment

],
);
Expand Down
10 changes: 10 additions & 0 deletions platzi_trips_app/lib/review_list.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import 'package:flutter/material.dart';

class ReviewList extends StatelessWidget {
@override
Widget build(BuildContext context) {
// TODO: implement build
return null;
}

}

0 comments on commit 5b63003

Please sign in to comment.