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.
134 lines
6.3 KiB
Dart
134 lines
6.3 KiB
Dart
|
|
import 'package:diplomaticquarterapp/core/enum/viewstate.dart';
|
|
import 'package:diplomaticquarterapp/core/viewModels/contactus/findus_view_model.dart';
|
|
import 'package:diplomaticquarterapp/pages/base/base_view.dart';
|
|
import 'package:diplomaticquarterapp/widgets/buttons/button.dart';
|
|
import 'package:diplomaticquarterapp/widgets/data_display/text.dart';
|
|
import 'package:diplomaticquarterapp/widgets/others/app_scaffold_widget.dart';
|
|
import 'package:flutter/cupertino.dart';
|
|
import 'package:flutter/material.dart';
|
|
import 'package:giffy_dialog/giffy_dialog.dart';
|
|
|
|
class PharmaciesPage extends StatefulWidget {
|
|
@override
|
|
_PharmaciesPageState createState() => _PharmaciesPageState();
|
|
}
|
|
|
|
class _PharmaciesPageState extends State<PharmaciesPage> {
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return BaseView<FindusViewModel>(
|
|
onModelReady: (model) => model.getFindUsRequestOrders(),//model.getCOC(),
|
|
builder: (_, model, widget) => AppScaffold(
|
|
baseViewModel: model,
|
|
body: Container(
|
|
margin: EdgeInsets.only(top: 8.0,left: 8.0,right: 8.0 ),
|
|
padding: EdgeInsets.all(15.0),
|
|
child: ListView.builder(
|
|
itemCount: model.FindusPharmaciesModelList.length,//model.cOCItemList.length,
|
|
itemBuilder: (context, index) => Container(
|
|
decoration: BoxDecoration(
|
|
shape: BoxShape.rectangle,
|
|
border: Border.all(color: Colors.white, width: 0.5),
|
|
borderRadius: BorderRadius.all(Radius.circular(5)),
|
|
color: Colors.white,
|
|
),
|
|
// margin: EdgeInsets.all(4),
|
|
child: Padding(
|
|
padding: const EdgeInsets.all(8.0),
|
|
child: Column(
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
children: <Widget>[
|
|
// SizedBox(height: 8,),
|
|
Row(
|
|
mainAxisAlignment:
|
|
MainAxisAlignment.spaceBetween,
|
|
children: <Widget>[
|
|
Expanded(
|
|
child: Row(
|
|
mainAxisAlignment:
|
|
MainAxisAlignment.spaceBetween,
|
|
crossAxisAlignment:
|
|
CrossAxisAlignment.start,
|
|
children: <Widget>[
|
|
GestureDetector(
|
|
onTap: (){
|
|
showDialog(
|
|
context: context,builder: (_) => AssetGiffyDialog(
|
|
title: Text(model.FindusPharmaciesModelList[index].locationName,
|
|
style: TextStyle(
|
|
fontSize: 22.0, fontWeight: FontWeight.w600),
|
|
),image:Image.network(model.FindusPharmaciesModelList[index].projectImageURL.toString(), fit: BoxFit.cover,),
|
|
|
|
// buttonOkText:Text("LOCATION"),
|
|
// buttonOkColor: Colors.grey,
|
|
buttonCancelText:Text('cancel') ,
|
|
buttonCancelColor: Colors.grey,
|
|
// onOkButtonPressed: () { MapsLauncher.launchCoordinates(double.parse(latitude),double.parse(longitude),projectname);},
|
|
// onCancelButtonPressed:(),
|
|
|
|
|
|
|
|
|
|
) );
|
|
},
|
|
child: Container(
|
|
width: 70,
|
|
height: 70,
|
|
// margin: EdgeInsets.only(right: 15),
|
|
child: Image.network(model.FindusPharmaciesModelList[index].projectImageURL.toString())),
|
|
),
|
|
Container(child: Texts('${model.FindusPharmaciesModelList[index].locationName}')),//model.cOCItemList[index].cOCTitl
|
|
IconButton(
|
|
icon: Icon(Icons.person_pin_circle_outlined),
|
|
tooltip: 'Increase volume by 10',
|
|
onPressed: () {
|
|
setState(() {
|
|
// _volume += 10;
|
|
});
|
|
},
|
|
),
|
|
IconButton(
|
|
icon: Icon(Icons.phone),
|
|
tooltip: 'Increase volume by 10',
|
|
onPressed: () {
|
|
setState(() {
|
|
// _volume += 10;
|
|
});
|
|
},
|
|
),
|
|
// Texts(
|
|
// 'Number :${model.FindusHospitalModelList[index].locationName}',
|
|
// variant: 'overline',
|
|
// ),
|
|
],
|
|
),
|
|
),
|
|
// Expanded(
|
|
// child: Column(
|
|
// crossAxisAlignment:
|
|
// CrossAxisAlignment.start,
|
|
// children: <Widget>[
|
|
// Texts('${model.FindusHospitalModelList[index].locationName}'),
|
|
// Texts(
|
|
// '${model.FindusHospitalModelList[index].locationName}',
|
|
// variant: 'overline',
|
|
// ),
|
|
// ],
|
|
// ),
|
|
// ),
|
|
],
|
|
),
|
|
// Texts('${model.FindusHospitalModelList[index].locationName}'),
|
|
Divider(height: 4.5,color: Colors.grey[500],)
|
|
],
|
|
),
|
|
),
|
|
)),
|
|
),
|
|
),
|
|
);
|
|
}
|
|
}
|
|
|