Skip to content

Commit

Permalink
Widgets BottomNavigationBar
Browse files Browse the repository at this point in the history
  • Loading branch information
Anahi Salgado committed Dec 7, 2018
1 parent cf22941 commit 30dc909
Show file tree
Hide file tree
Showing 4 changed files with 69 additions and 21 deletions.
1 change: 0 additions & 1 deletion platzi_trips_app/lib/card_image_list.dart
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ class CardImageList extends StatelessWidget {
padding: EdgeInsets.all(25.0),
scrollDirection: Axis.horizontal,
children: <Widget>[
CardImage("assets/img/beach.jpeg"),
CardImage("assets/img/beach_palm.jpeg"),
CardImage("assets/img/mountain.jpeg"),
CardImage("assets/img/mountain_stars.jpeg"),
Expand Down
25 changes: 25 additions & 0 deletions platzi_trips_app/lib/home_trips.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import 'package:flutter/material.dart';
import 'package:platzi_trips_app/description_place.dart';
import 'package:platzi_trips_app/header_appbar.dart';
import 'package:platzi_trips_app/review_list.dart';

class HomeTrips extends StatelessWidget {
String descriptionDummy = "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. \n\nLorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.";
@override
Widget build(BuildContext context) {
// TODO: implement build
return Stack(
children: <Widget>[
ListView(
children: <Widget>[
DescriptionPlace("Bahamas", 4, descriptionDummy),
ReviewList()

],
),
HeaderAppBar()
],
);
}

}
22 changes: 2 additions & 20 deletions platzi_trips_app/lib/main.dart
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
import 'package:flutter/material.dart';
import 'description_place.dart';
import 'review_list.dart';
import 'gradient_back.dart';
import 'header_appbar.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
// This widget is the root of your application.
String descriptionDummy = "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. \n\nLorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.";

@override
Widget build(BuildContext context) {
return MaterialApp(
Expand All @@ -25,21 +21,7 @@ class MyApp extends StatelessWidget {
// is not restarted.
primarySwatch: Colors.blue,
),
home: Scaffold(
//body: new DescriptionPlace("Bahamas", 4, descriptionDummy),
body: Stack(
children: <Widget>[
ListView(
children: <Widget>[
DescriptionPlace("Bahamas", 4, descriptionDummy),
ReviewList()

],
),
HeaderAppBar()
],
),
)//MyHomePage(title: 'Flutter Demo Home Page'),
home:
);
}
}
Expand Down
42 changes: 42 additions & 0 deletions platzi_trips_app/lib/platzi_trips.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
import 'package:flutter/material.dart';

class PlatziTrips extends StatefulWidget {
@override
State<StatefulWidget> createState() {
// TODO: implement createState
return null;
}

}

class _PlatziTrips extends State<PlatziTrips> {
@override
Widget build(BuildContext context) {
// TODO: implement build
return Scaffold(
bottomNavigationBar: Theme(
data: Theme.of(context).copyWith(
canvasColor: Colors.white,
primaryColor: Colors.purple
),
child: BottomNavigationBar(
items: [
BottomNavigationBarItem(
icon: Icon(Icons.home),
title: Text("")
),
BottomNavigationBarItem(
icon: Icon(Icons.search),
title: Text("")
),
BottomNavigationBarItem(
icon: Icon(Icons.person),
title: Text("")
),
]
),
),
);
}

}

0 comments on commit 30dc909

Please sign in to comment.