Skip to content
Permalink
Browse files

Added mall details screen with information, parking and opening hours

  • Loading branch information...
tattwei46 committed Dec 16, 2018
1 parent 446c41a commit 93649c8e0d3b53ac0cc119b2e4ed9b361856e8e9
@@ -5,6 +5,7 @@ import 'package:font_awesome_flutter/font_awesome_flutter.dart';
import 'package:mallsyok/screen/mall_list_screen.dart';
import 'package:mallsyok/screen/outlet_list_screen.dart';
import 'package:mallsyok/screen/promotion_screen.dart';
import 'package:mallsyok/screen/mall_details_screen.dart';

class PlatformDrawer extends StatelessWidget {
final Mall mall;
@@ -79,7 +80,10 @@ class PlatformDrawer extends StatelessWidget {
leading: const Icon(
FontAwesomeIcons.envelope,
),
onTap: () {},
onTap: () {
Navigator.of(context).push(new MaterialPageRoute(
builder: (BuildContext context) => MallDetailsScreen(mall: mall,)));
},
),
Divider(),
new Align(
@@ -4,6 +4,7 @@ class Mall {
String key;
String mallName;
String mallPhone;
String mallAddress;
String mallWebsite;
String openingHours;
String mallImagePath;
@@ -17,6 +18,7 @@ class Mall {
Mall(
this.mallName,
this.mallPhone,
this.mallAddress,
this.mallWebsite,
this.openingHours,
this.mallImagePath,
@@ -32,6 +34,7 @@ class Mall {
: key = snapshot.documentID,
mallName = snapshot.data["mallName"],
mallPhone = snapshot.data["mallPhone"],
mallAddress = snapshot.data["mallAddress"],
mallWebsite = snapshot.data["mallWebsite"],
openingHours = snapshot.data["openingHours"],
mallImagePath = snapshot.data["mallImagePath"],
@@ -19,70 +19,33 @@ class AppConfig {
static const String TEXT_SEARCH_MALL = "Search a mall";
static const String TEXT_PROMOTION = "Promotion";
static const String TEXT_STORE_DIRECTORY = "Store Directory";
static const String TEXT_GO_STORE ="Go to store";
static const String TEXT_GETTING_THERE = "Getting There";
static const String TEXT_CONTACT_US = "Contact Us";
static const String TEXT_CHANGE_MALL = "Change Mall";

static const String TEXT_INFORMATION = "Information";
static const String TEXT_PARKING = "Parking";
static const String TEXT_OPENING_HOURS = "Opening Hours";
static const String TEXT_CATEGORY_ALL = "All Category";

// Departmental Store
static const String TEXT_CATEGORY_DEPARTMENT = "Departmental Store";

// Beauty & Hair Salon
static const String TEXT_CATEGORY_BEAUTY = "Beauty & Hair Salon";

// Personal Care & Pharmacy
static const String TEXT_CATEGORY_PHARMACY = "Personal Care & Pharmacy";

// Fitness & Wellness Centre
static const String TEXT_CATEGORY_FITNESS = "Fitness & Wellness";

// Fitness & Wellness Centre
static const String TEXT_CATEGORY_FITNESS_GYM = "Fitness & Wellness Centre";
// Health & Fitness Equipment
static const String TEXT_CATEGORY_FITNESS_EQUIPMENT = "Health & Fitness Equipment";

// Cosmetics & Skincare
static const String TEXT_CATEGORY_COSMETICS = "Cosmetics & Skincare";

// Digital Lifestyle
static const String TEXT_CATEGORY_DIGITAL = "Digital Lifestyle";

// Entertainment
static const String TEXT_CATEGORY_ENTERTAINMENT = "Entertainment";
// Fashion
static const String TEXT_CATEGORY_FASHION = "Fashion";

// Financial Service & ATM
static const String TEXT_CATEGORY_ATM = "Financial Service & ATM";

// Food & Beverages
static const String TEXT_CATEGORY_FOOD = "Food & Beverages";

// Home & Living
static const String TEXT_CATEGORY_HOME = "Home & Living";

// Convenience & Services
static const String TEXT_CATEGORY_CONVENIENCE= "Convenience & Services";

// Optical
static const String TEXT_CATEGORY_OPTICS = "Optical";

// Timepieces & Jewelleries
static const String TEXT_CATEGORY_JEWELLERIES = "Timepieces & Jewelleries";

// Books & Stationaries
static const String TEXT_CATEGORY_BOOK = "Books & Stationaries";

// Toys & Hobbies
static const String TEXT_CATEGORY_TOYS = "Toys & Hobbies";

// Music & Instruments
static const String TEXT_CATEGORY_MUSIC = "Music & Instruments";

// Gifts & Souvenirs
static const String TEXT_CATEGORY_GIFTS = "Gifts & Souvenirs";

// Office
static const String TEXT_CATEGORY_OFFICE = "Office";
}

0 comments on commit 93649c8

Please sign in to comment.
You can’t perform that action at this time.