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.

98 lines
3.7 KiB
Dart

import 'package:diplomaticquarterapp/core/model/contactus/get_hmg_locations.dart';
import 'package:diplomaticquarterapp/widgets/hospital_location.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:url_launcher/url_launcher.dart';
class PharmaciesPage extends StatefulWidget {
final List<GetHMGLocationsModel> findusPharmaciesModelList;
PharmaciesPage({Key? key, required this.findusPharmaciesModelList});
@override
_PharmaciesPageState createState() => _PharmaciesPageState();
}
class _PharmaciesPageState extends State<PharmaciesPage> {
@override
Widget build(BuildContext context) {
return SingleChildScrollView(
physics: BouncingScrollPhysics(),
padding: EdgeInsets.only(bottom: 21, top: 21, left: 21, right: 21),
child: Column(
children: [
ListView.separated(
physics: NeverScrollableScrollPhysics(),
shrinkWrap: true,
padding: EdgeInsets.zero,
separatorBuilder: (context, index) => SizedBox(height: 14),
itemBuilder: (context, index) => HospitalLocation(widget.findusPharmaciesModelList[index], showCity: true),
itemCount: widget.findusPharmaciesModelList.length,
),
// Container(
// margin: EdgeInsets.only(top: 14),
// decoration: BoxDecoration(
// borderRadius: BorderRadius.all(
// Radius.circular(10.0),
// ),
// boxShadow: [
// BoxShadow(
// color: Color(0xff000000).withOpacity(.05),
// //spreadRadius: 5,
// blurRadius: 27,
// offset: Offset(0, -3),
// ),
// ],
// color: Colors.white),
// child: Row(
// mainAxisAlignment: MainAxisAlignment.spaceEvenly,
// children: [
// IconButton(
// icon: new Image.asset('assets/images/new-design/youtube.png'),
// iconSize: 48,
// tooltip: 'Youtube',
// onPressed: () {
// setState(() {
// launch("https://www.youtube.com/c/DrsulaimanAlhabibHospitals");
// });
// },
// ),
// IconButton(
// icon: new Image.asset('assets/images/new-design/linkedin.png'),
// tooltip: 'LinkedIn',
// iconSize: 48,
// onPressed: () {
// setState(() {
// launch("https://www.linkedin.com/company/drsulaiman-alhabib-medical-group");
// });
// },
// ),
// IconButton(
// icon: new Image.asset('assets/images/new-design/twitter.png'),
// tooltip: 'Twitter',
// iconSize: 48,
// onPressed: () {
// setState(() {
// launch("https://twitter.com/HMG");
// });
// },
// ),
// IconButton(
// icon: new Image.asset('assets/images/new-design/facebook.png'),
// tooltip: 'facebook',
// iconSize: 48,
// onPressed: () {
// setState(() {
// launch("https://www.facebook.com/DrSulaimanAlHabib?ref=tn_tnmn");
// });
// },
// ),
// ],
// ),
// ),
],
),
);
}
}