Skip to content

Commit

Permalink
Till date
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaustav-G23 committed Feb 26, 2022
1 parent 0337306 commit 8c69265
Show file tree
Hide file tree
Showing 4 changed files with 85 additions and 30 deletions.
2 changes: 1 addition & 1 deletion lib/models/destination_model.dart
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ List<Activity> activities = [
),
Activity(
imageUrl: 'assets/images/gondola.jpg',
name: 'Walking Tour and Gonadola Ride',
name: 'Walking Tour and Gondola Ride',
type: 'Sightseeing Tour',
startTimes: ['11:00 pm', '1:00 pm'],
rating: 4,
Expand Down
105 changes: 76 additions & 29 deletions lib/screens/destinationscreen.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import 'package:flutter/material.dart';
import 'package:readmore/readmore.dart';
import 'package:tourism_app/models/destination_model.dart';
import 'package:font_awesome_flutter/font_awesome_flutter.dart';
import 'package:tourism_app/models/activity_model.dart';
Expand All @@ -8,6 +9,7 @@ class DestinationScreen extends StatefulWidget {

final Destination destination;
final String id = 'destination_screen';
String content='The Victoria Memorial is a large marble building, which is considered to be the pride of Kolkata. Built between 1906 and 1921, it is dedicated to the memory of Queen Victoria. Now, it is a museum and a popular tourist spot under the Ministry of Culture';

@override
_DestinationScreenState createState() => _DestinationScreenState();
Expand Down Expand Up @@ -140,8 +142,18 @@ class _DestinationScreenState extends State<DestinationScreen> {
return Stack(
children: <Widget>[
Container(
children:<Widget>[

margin: EdgeInsets.fromLTRB(40.0, 5.0, 20.0, 5.0),
height: height,
width: double.infinity,
decoration: BoxDecoration(
color: Colors.white,
borderRadius: BorderRadius.circular(20.0),
),
]
margin: EdgeInsets.fromLTRB(40.0, 5.0, 20.0, 5.0),
height: 170.0,
height: height,
width: double.infinity,
decoration: BoxDecoration(
color: Colors.white,
Expand All @@ -150,7 +162,7 @@ class _DestinationScreenState extends State<DestinationScreen> {
child: Padding(
padding: EdgeInsets.fromLTRB(100.0,20.0,20.0,20.0),
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
mainAxisAlignment: MainAxisAlignment.start,
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
Row(
Expand All @@ -169,35 +181,35 @@ class _DestinationScreenState extends State<DestinationScreen> {
maxLines: 2,
),
),
Column(
children: <Widget>[
Text(
'₹${activity.price}',
style: TextStyle(
fontSize: 22.0,
fontWeight: FontWeight.w600,
),
),
Text(
'per person',
style: TextStyle(
color: Colors.grey,
fontWeight: FontWeight.w600,
),
)
],
),
// Column(
// children: <Widget>[
// Text(
// '₹${activity.price}',
// style: TextStyle(
// fontSize: 22.0,
// fontWeight: FontWeight.w600,
// ),
// ),
// Text(
// 'per person',
// style: TextStyle(
// color: Colors.grey,
// fontWeight: FontWeight.w600,
// ),
// )
// ],
// ),
],
),
Text(
activity.type,
style: TextStyle(
color: Colors.grey,
),),
_buildRatingStars(activity.rating),
SizedBox(
height: 10.0,
),
// Text(
// activity.type,
// style: TextStyle(
// color: Colors.grey,
// ),),
// _buildRatingStars(activity.rating),
// SizedBox(
// height: 10.0,
// ),
Row(
children: <Widget>[
Container(
Expand Down Expand Up @@ -228,6 +240,31 @@ class _DestinationScreenState extends State<DestinationScreen> {
),
),
],
),
SizedBox(
height: 10.0,
),
Column(
children: <Widget>[
Text(
'DESCRIPTION:',
textAlign: TextAlign.start,
style: TextStyle(
fontSize: 12.0,
fontWeight: FontWeight.w600,
color: Colors.grey,
),
),
],
),
Column(
children: <Widget>[
SingleChildScrollView(
child: ReadMoreText('The Victoria Memorial is a large marble building, which is considered to be the pride of Kolkata. Built between 1906 and 1921, it is dedicated to the memory of Queen Victoria. Now, it is a museum and a popular tourist spot under the Ministry of Culture', trimLines: 1, textAlign: TextAlign.justify, trimMode: TrimMode.Line, trimCollapsedText: 'Show More', trimExpandedText: 'Show Less',
lessStyle: TextStyle(fontSize: 12.0, fontWeight: FontWeight.w600, color: Colors.grey),
moreStyle: TextStyle(fontSize: 12.0, fontWeight: FontWeight.w600, color: Colors.grey))
)
],
)
],
),
Expand Down Expand Up @@ -258,3 +295,13 @@ class _DestinationScreenState extends State<DestinationScreen> {
);
}
}

// Text(
// 'The Victoria Memorial is a large marble building, which is considered to be the pride of Kolkata. Built between 1906 and 1921, it is dedicated to the memory of Queen Victoria. Now, it is a museum and a popular tourist spot under the Ministry of Culture',
//
// style: TextStyle(
// fontSize: 12.0,
// fontWeight: FontWeight.w600,
// color: Colors.grey,
// ),
// ),
7 changes: 7 additions & 0 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,13 @@ packages:
url: "https://pub.dartlang.org"
source: hosted
version: "1.7.0"
readmore:
dependency: "direct main"
description:
name: readmore
url: "https://pub.dartlang.org"
source: hosted
version: "1.0.1"
sky_engine:
dependency: transitive
description: flutter
Expand Down
1 change: 1 addition & 0 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ dependencies:
firebase_core: ^0.3.4
firebase_auth: ^0.8.4+4
cloud_firestore: ^0.9.13+1
readmore: ^1.0.1

dev_dependencies:
flutter_test:
Expand Down

0 comments on commit 8c69265

Please sign in to comment.