prescription detail ui changes.
parent
8cb342cb24
commit
8e27d8210a
@ -1,219 +0,0 @@
|
|||||||
import 'package:diplomaticquarterapp/core/model/AlHabibMedicalService/H2O/insert_user_activity_request_model.dart';
|
|
||||||
import 'package:diplomaticquarterapp/core/model/hospitals/hospitals_model.dart';
|
|
||||||
import 'package:diplomaticquarterapp/core/viewModels/AlHabibMedicalService/H2O_view_model.dart';
|
|
||||||
import 'package:diplomaticquarterapp/pages/settings/settings.dart';
|
|
||||||
import 'package:diplomaticquarterapp/uitl/translations_delegate_base.dart';
|
|
||||||
import 'package:diplomaticquarterapp/widgets/buttons/defaultButton.dart';
|
|
||||||
import 'package:diplomaticquarterapp/widgets/data_display/text.dart';
|
|
||||||
import 'package:diplomaticquarterapp/widgets/transitions/fade_page.dart';
|
|
||||||
import 'package:flutter/cupertino.dart';
|
|
||||||
import 'package:flutter/material.dart';
|
|
||||||
|
|
||||||
import '../../routes.dart';
|
|
||||||
|
|
||||||
class NewConfirmSendEmailDialog extends StatefulWidget {
|
|
||||||
final String email;
|
|
||||||
final GestureTapCallback onTapSendEmail;
|
|
||||||
|
|
||||||
NewConfirmSendEmailDialog({this.email, this.onTapSendEmail});
|
|
||||||
|
|
||||||
@override
|
|
||||||
_NewConfirmSendEmailDialogState createState() => _NewConfirmSendEmailDialogState();
|
|
||||||
}
|
|
||||||
|
|
||||||
class _NewConfirmSendEmailDialogState extends State<NewConfirmSendEmailDialog> {
|
|
||||||
@override
|
|
||||||
void initState() {
|
|
||||||
super.initState();
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
|
||||||
Widget build(BuildContext context) {
|
|
||||||
return Dialog(
|
|
||||||
backgroundColor: Colors.white,
|
|
||||||
shape: RoundedRectangleBorder(),
|
|
||||||
insetPadding: EdgeInsets.only(left: 21, right: 21),
|
|
||||||
child: Container(
|
|
||||||
padding: EdgeInsets.only(left: 20, right: 20, top: 36, bottom: 36),
|
|
||||||
child: Column(
|
|
||||||
mainAxisSize: MainAxisSize.min,
|
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
|
||||||
children: [
|
|
||||||
Row(
|
|
||||||
crossAxisAlignment: CrossAxisAlignment.center,
|
|
||||||
children: [
|
|
||||||
Expanded(
|
|
||||||
child: Text(
|
|
||||||
TranslationBase.of(context).confirm,
|
|
||||||
style: TextStyle(fontSize: 24, fontWeight: FontWeight.w600, color: Color(0xff2B353E), height: 35 / 24, letterSpacing: -0.96),
|
|
||||||
),
|
|
||||||
),
|
|
||||||
IconButton(
|
|
||||||
padding: EdgeInsets.zero,
|
|
||||||
icon: Icon(Icons.close),
|
|
||||||
constraints: BoxConstraints(),
|
|
||||||
onPressed: () {
|
|
||||||
Navigator.pop(context);
|
|
||||||
},
|
|
||||||
)
|
|
||||||
],
|
|
||||||
),
|
|
||||||
Text(
|
|
||||||
TranslationBase.of(context).sendConfEmail,
|
|
||||||
style: TextStyle(fontSize: 16, fontWeight: FontWeight.w600, color: Color(0xff808080), letterSpacing: -0.48),
|
|
||||||
),
|
|
||||||
SizedBox(height: 18),
|
|
||||||
Container(
|
|
||||||
padding: EdgeInsets.symmetric(vertical: 16, horizontal: 11),
|
|
||||||
decoration: BoxDecoration(
|
|
||||||
borderRadius: BorderRadius.all(Radius.circular(10.0)),
|
|
||||||
color: Color(0xffEAEAEA),
|
|
||||||
),
|
|
||||||
child: Row(
|
|
||||||
children: [
|
|
||||||
Expanded(
|
|
||||||
child: Text(
|
|
||||||
widget.email,
|
|
||||||
style: TextStyle(fontSize: 16, fontWeight: FontWeight.w600, color: Color(0xff2B353E), letterSpacing: -0.48),
|
|
||||||
),
|
|
||||||
),
|
|
||||||
IconButton(
|
|
||||||
padding: EdgeInsets.zero,
|
|
||||||
icon: Icon(Icons.edit),
|
|
||||||
iconSize: 16,
|
|
||||||
constraints: BoxConstraints(),
|
|
||||||
onPressed: () {
|
|
||||||
Navigator.pop(context);
|
|
||||||
Navigator.push(
|
|
||||||
context,
|
|
||||||
FadePage(
|
|
||||||
page: Settings(
|
|
||||||
type: 1,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
);
|
|
||||||
},
|
|
||||||
)
|
|
||||||
],
|
|
||||||
),
|
|
||||||
),
|
|
||||||
SizedBox(height: 18),
|
|
||||||
Row(
|
|
||||||
mainAxisSize: MainAxisSize.min,
|
|
||||||
children: [
|
|
||||||
Expanded(
|
|
||||||
child: DefaultButton(
|
|
||||||
TranslationBase.of(context).cancel,
|
|
||||||
() {
|
|
||||||
Navigator.pop(context);
|
|
||||||
},
|
|
||||||
textColor: Color(0xff2B353E),
|
|
||||||
color: Color(0xffEAEAEA),
|
|
||||||
),
|
|
||||||
),
|
|
||||||
SizedBox(width: 10),
|
|
||||||
Expanded(
|
|
||||||
child: DefaultButton(
|
|
||||||
TranslationBase.of(context).send,
|
|
||||||
() {
|
|
||||||
Navigator.pop(context);
|
|
||||||
widget.onTapSendEmail();
|
|
||||||
},
|
|
||||||
),
|
|
||||||
),
|
|
||||||
],
|
|
||||||
),
|
|
||||||
],
|
|
||||||
),
|
|
||||||
),
|
|
||||||
);
|
|
||||||
return SimpleDialog(
|
|
||||||
// contentPadding: EdgeInsets.fromLTRB(28.0, 24.0, 28.0, 0.0),
|
|
||||||
title: Center(
|
|
||||||
child: Texts(
|
|
||||||
TranslationBase.of(context).confirm,
|
|
||||||
color: Colors.black,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
children: [
|
|
||||||
Column(
|
|
||||||
crossAxisAlignment: CrossAxisAlignment.center,
|
|
||||||
children: [
|
|
||||||
Center(
|
|
||||||
child: Texts(
|
|
||||||
TranslationBase.of(context).sendConfEmail,
|
|
||||||
fontSize: 14,
|
|
||||||
color: Colors.grey,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
Texts(
|
|
||||||
widget.email,
|
|
||||||
color: Colors.grey,
|
|
||||||
),
|
|
||||||
SizedBox(
|
|
||||||
height: 5,
|
|
||||||
),
|
|
||||||
Divider(),
|
|
||||||
SizedBox(
|
|
||||||
height: 5.0,
|
|
||||||
),
|
|
||||||
InkWell(
|
|
||||||
onTap: () {
|
|
||||||
Navigator.pop(context);
|
|
||||||
},
|
|
||||||
child: Container(
|
|
||||||
width: double.maxFinite,
|
|
||||||
child: Center(
|
|
||||||
child: Texts(
|
|
||||||
TranslationBase.of(context).cancel,
|
|
||||||
color: Colors.red,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
),
|
|
||||||
),
|
|
||||||
SizedBox(
|
|
||||||
height: 15.0,
|
|
||||||
),
|
|
||||||
InkWell(
|
|
||||||
onTap: () {
|
|
||||||
Navigator.pop(context);
|
|
||||||
widget.onTapSendEmail();
|
|
||||||
},
|
|
||||||
child: Container(
|
|
||||||
width: double.maxFinite,
|
|
||||||
child: Center(
|
|
||||||
child: Texts(TranslationBase.of(context).sendEmail),
|
|
||||||
),
|
|
||||||
),
|
|
||||||
),
|
|
||||||
SizedBox(
|
|
||||||
height: 15.0,
|
|
||||||
),
|
|
||||||
InkWell(
|
|
||||||
onTap: () {
|
|
||||||
Navigator.pop(context);
|
|
||||||
Navigator.push(
|
|
||||||
context,
|
|
||||||
FadePage(
|
|
||||||
page: Settings(
|
|
||||||
type: 1,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
);
|
|
||||||
},
|
|
||||||
child: Container(
|
|
||||||
width: double.maxFinite,
|
|
||||||
child: Center(
|
|
||||||
child: Texts(TranslationBase.of(context).updateEmail),
|
|
||||||
),
|
|
||||||
),
|
|
||||||
),
|
|
||||||
SizedBox(
|
|
||||||
height: 20.0,
|
|
||||||
),
|
|
||||||
],
|
|
||||||
)
|
|
||||||
],
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Loading…
Reference in New Issue