You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
107 lines
3.8 KiB
Dart
107 lines
3.8 KiB
Dart
import 'package:diplomaticquarterapp/pages/ContactUs/widgets/card_common_contat.dart';
|
|
import 'package:diplomaticquarterapp/uitl/location_util.dart';
|
|
import 'package:diplomaticquarterapp/widgets/data_display/medical/medical_profile_item.dart';
|
|
import 'package:diplomaticquarterapp/widgets/others/app_scaffold_widget.dart';
|
|
|
|
import 'package:flutter/material.dart';
|
|
import '../../uitl/translations_delegate_base.dart';
|
|
import 'package:diplomaticquarterapp/pages/ErService/widgets/card_common.dart';
|
|
|
|
class ContactUsPage extends StatefulWidget {
|
|
@override
|
|
_ContactUsPageState createState() => _ContactUsPageState();
|
|
}
|
|
|
|
class _ContactUsPageState extends State<ContactUsPage> {
|
|
LocationUtils locationUtils;
|
|
|
|
@override
|
|
void initState() {
|
|
locationUtils = new LocationUtils(isShowConfirmDialog: true, context: context);
|
|
WidgetsBinding.instance.addPostFrameCallback((_) => locationUtils.getCurrentLocation());
|
|
|
|
super.initState();
|
|
}
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return AppScaffold(
|
|
isShowAppBar: true,
|
|
appBarTitle: TranslationBase.of(context).hMGServiceLabel,
|
|
isShowDecPage: false,
|
|
showNewAppBar: true,
|
|
showNewAppBarTitle: true,
|
|
backgroundColor: Color(0xffF8F8F8),
|
|
body: GridView(
|
|
gridDelegate: SliverGridDelegateWithFixedCrossAxisCount(crossAxisCount: 2, crossAxisSpacing: 13, mainAxisSpacing: 9),
|
|
physics: NeverScrollableScrollPhysics(),
|
|
padding: EdgeInsets.all(21),
|
|
shrinkWrap: true,
|
|
children: [
|
|
CardCommonContact(
|
|
image: 'assets/images/new-design/find_us_icon.png',
|
|
text: TranslationBase.of(context).findUs,
|
|
subText: "",
|
|
type: 0,
|
|
),
|
|
CardCommonContact(
|
|
image: 'assets/images/new-design/feedback_icon.png',
|
|
text: TranslationBase.of(context).feedback,
|
|
subText: "",
|
|
type: 1,
|
|
),
|
|
CardCommonContact(
|
|
image: 'assets/images/new-design/live_chat_icon.png',
|
|
text: TranslationBase.of(context).liveChat,
|
|
subText: "",
|
|
type: 2,
|
|
),
|
|
],
|
|
),
|
|
|
|
// Container(
|
|
// margin: EdgeInsets.fromLTRB(10.0, 20.0, 10.0, 10.0),
|
|
// child: Column(
|
|
// crossAxisAlignment: CrossAxisAlignment.start,
|
|
// children: <Widget>[
|
|
// Row(
|
|
// mainAxisSize: MainAxisSize.max,
|
|
// mainAxisAlignment: MainAxisAlignment.start,
|
|
// children: <Widget>[
|
|
// Expanded(
|
|
// child: CardCommonContact(
|
|
// image: 'assets/images/new-design/find_us_icon.png',
|
|
// text: TranslationBase.of(context).findUs,
|
|
// subText: "",
|
|
// type: 0,
|
|
// ),
|
|
// ),
|
|
// Expanded(
|
|
// child: CardCommonContact(image: 'assets/images/new-design/feedback_icon.png', text: TranslationBase.of(context).feedback, subText: "", type: 1),
|
|
// ),
|
|
// ],
|
|
// ),
|
|
// Row(
|
|
// mainAxisSize: MainAxisSize.max,
|
|
// mainAxisAlignment: MainAxisAlignment.start,
|
|
// children: <Widget>[
|
|
// Expanded(
|
|
// child: CardCommonContact(
|
|
// image: 'assets/images/new-design/live_chat_icon.png',
|
|
// text: TranslationBase.of(context).liveChat,
|
|
// subText: TranslationBase.of(context).service,
|
|
// type: 2,
|
|
// ),
|
|
// ),
|
|
// Expanded(
|
|
// child: Container(),
|
|
// ),
|
|
// ],
|
|
// ),
|
|
// ],
|
|
// ),
|
|
// ),
|
|
);
|
|
}
|
|
}
|