Merge branch 'development' into patients-new-design
@ -0,0 +1,5 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<background android:drawable="@color/ic_launcher_background"/>
|
||||||
|
<foreground android:drawable="@mipmap/ic_launcher_foreground"/>
|
||||||
|
</adaptive-icon>
|
||||||
@ -0,0 +1,5 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<background android:drawable="@color/ic_launcher_background"/>
|
||||||
|
<foreground android:drawable="@mipmap/ic_launcher_foreground"/>
|
||||||
|
</adaptive-icon>
|
||||||
|
Before Width: | Height: | Size: 544 B After Width: | Height: | Size: 5.0 KiB |
|
After Width: | Height: | Size: 13 KiB |
|
After Width: | Height: | Size: 7.5 KiB |
|
After Width: | Height: | Size: 1.9 KiB |
|
Before Width: | Height: | Size: 442 B After Width: | Height: | Size: 2.7 KiB |
|
After Width: | Height: | Size: 6.7 KiB |
|
After Width: | Height: | Size: 4.1 KiB |
|
Before Width: | Height: | Size: 721 B After Width: | Height: | Size: 6.2 KiB |
|
After Width: | Height: | Size: 18 KiB |
|
After Width: | Height: | Size: 9.7 KiB |
|
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 12 KiB |
|
After Width: | Height: | Size: 50 KiB |
|
After Width: | Height: | Size: 18 KiB |
|
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 16 KiB |
|
After Width: | Height: | Size: 67 KiB |
|
After Width: | Height: | Size: 24 KiB |
@ -0,0 +1,4 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<resources>
|
||||||
|
<color name="ic_launcher_background">#ffffff</color>
|
||||||
|
</resources>
|
||||||
@ -1,122 +1,128 @@
|
|||||||
{
|
{
|
||||||
"images" : [
|
"images":[
|
||||||
{
|
{
|
||||||
"size" : "20x20",
|
"idiom":"iphone",
|
||||||
"idiom" : "iphone",
|
"size":"20x20",
|
||||||
"filename" : "Icon-App-20x20@2x.png",
|
"scale":"2x",
|
||||||
"scale" : "2x"
|
"filename":"Icon-App-20x20@2x.png"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"size" : "20x20",
|
"idiom":"iphone",
|
||||||
"idiom" : "iphone",
|
"size":"20x20",
|
||||||
"filename" : "Icon-App-20x20@3x.png",
|
"scale":"3x",
|
||||||
"scale" : "3x"
|
"filename":"Icon-App-20x20@3x.png"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"size" : "29x29",
|
"idiom":"iphone",
|
||||||
"idiom" : "iphone",
|
"size":"29x29",
|
||||||
"filename" : "Icon-App-29x29@1x.png",
|
"scale":"1x",
|
||||||
"scale" : "1x"
|
"filename":"Icon-App-29x29@1x.png"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"size" : "29x29",
|
"idiom":"iphone",
|
||||||
"idiom" : "iphone",
|
"size":"29x29",
|
||||||
"filename" : "Icon-App-29x29@2x.png",
|
"scale":"2x",
|
||||||
"scale" : "2x"
|
"filename":"Icon-App-29x29@2x.png"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"size" : "29x29",
|
"idiom":"iphone",
|
||||||
"idiom" : "iphone",
|
"size":"29x29",
|
||||||
"filename" : "Icon-App-29x29@3x.png",
|
"scale":"3x",
|
||||||
"scale" : "3x"
|
"filename":"Icon-App-29x29@3x.png"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"size" : "40x40",
|
"idiom":"iphone",
|
||||||
"idiom" : "iphone",
|
"size":"40x40",
|
||||||
"filename" : "Icon-App-40x40@2x.png",
|
"scale":"2x",
|
||||||
"scale" : "2x"
|
"filename":"Icon-App-40x40@2x.png"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"size" : "40x40",
|
"idiom":"iphone",
|
||||||
"idiom" : "iphone",
|
"size":"40x40",
|
||||||
"filename" : "Icon-App-40x40@3x.png",
|
"scale":"3x",
|
||||||
"scale" : "3x"
|
"filename":"Icon-App-40x40@3x.png"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"size" : "60x60",
|
"idiom":"iphone",
|
||||||
"idiom" : "iphone",
|
"size":"60x60",
|
||||||
"filename" : "Icon-App-60x60@2x.png",
|
"scale":"2x",
|
||||||
"scale" : "2x"
|
"filename":"Icon-App-60x60@2x.png"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"size" : "60x60",
|
"idiom":"iphone",
|
||||||
"idiom" : "iphone",
|
"size":"60x60",
|
||||||
"filename" : "Icon-App-60x60@3x.png",
|
"scale":"3x",
|
||||||
"scale" : "3x"
|
"filename":"Icon-App-60x60@3x.png"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"size" : "20x20",
|
"idiom":"iphone",
|
||||||
"idiom" : "ipad",
|
"size":"76x76",
|
||||||
"filename" : "Icon-App-20x20@1x.png",
|
"scale":"2x",
|
||||||
"scale" : "1x"
|
"filename":"Icon-App-76x76@2x.png"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"size" : "20x20",
|
"idiom":"ipad",
|
||||||
"idiom" : "ipad",
|
"size":"20x20",
|
||||||
"filename" : "Icon-App-20x20@2x.png",
|
"scale":"1x",
|
||||||
"scale" : "2x"
|
"filename":"Icon-App-20x20@1x.png"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"size" : "29x29",
|
"idiom":"ipad",
|
||||||
"idiom" : "ipad",
|
"size":"20x20",
|
||||||
"filename" : "Icon-App-29x29@1x.png",
|
"scale":"2x",
|
||||||
"scale" : "1x"
|
"filename":"Icon-App-20x20@2x.png"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"size" : "29x29",
|
"idiom":"ipad",
|
||||||
"idiom" : "ipad",
|
"size":"29x29",
|
||||||
"filename" : "Icon-App-29x29@2x.png",
|
"scale":"1x",
|
||||||
"scale" : "2x"
|
"filename":"Icon-App-29x29@1x.png"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"size" : "40x40",
|
"idiom":"ipad",
|
||||||
"idiom" : "ipad",
|
"size":"29x29",
|
||||||
"filename" : "Icon-App-40x40@1x.png",
|
"scale":"2x",
|
||||||
"scale" : "1x"
|
"filename":"Icon-App-29x29@2x.png"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"size" : "40x40",
|
"idiom":"ipad",
|
||||||
"idiom" : "ipad",
|
"size":"40x40",
|
||||||
"filename" : "Icon-App-40x40@2x.png",
|
"scale":"1x",
|
||||||
"scale" : "2x"
|
"filename":"Icon-App-40x40@1x.png"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"size" : "76x76",
|
"idiom":"ipad",
|
||||||
"idiom" : "ipad",
|
"size":"40x40",
|
||||||
"filename" : "Icon-App-76x76@1x.png",
|
"scale":"2x",
|
||||||
"scale" : "1x"
|
"filename":"Icon-App-40x40@2x.png"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"size" : "76x76",
|
"idiom":"ipad",
|
||||||
"idiom" : "ipad",
|
"size":"76x76",
|
||||||
"filename" : "Icon-App-76x76@2x.png",
|
"scale":"1x",
|
||||||
"scale" : "2x"
|
"filename":"Icon-App-76x76@1x.png"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"size" : "83.5x83.5",
|
"idiom":"ipad",
|
||||||
"idiom" : "ipad",
|
"size":"76x76",
|
||||||
"filename" : "Icon-App-83.5x83.5@2x.png",
|
"scale":"2x",
|
||||||
"scale" : "2x"
|
"filename":"Icon-App-76x76@2x.png"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"size" : "1024x1024",
|
"idiom":"ipad",
|
||||||
"idiom" : "ios-marketing",
|
"size":"83.5x83.5",
|
||||||
"filename" : "Icon-App-1024x1024@1x.png",
|
"scale":"2x",
|
||||||
"scale" : "1x"
|
"filename":"Icon-App-83.5x83.5@2x.png"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"size" : "1024x1024",
|
||||||
|
"idiom" : "ios-marketing",
|
||||||
|
"scale" : "1x",
|
||||||
|
"filename" : "ItunesArtwork@2x.png"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"info":{
|
||||||
|
"version":1,
|
||||||
|
"author":"easyappicon"
|
||||||
}
|
}
|
||||||
],
|
|
||||||
"info" : {
|
|
||||||
"version" : 1,
|
|
||||||
"author" : "xcode"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 11 KiB |
|
Before Width: | Height: | Size: 564 B After Width: | Height: | Size: 998 B |
|
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 2.6 KiB |
|
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 4.7 KiB |
|
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 1.7 KiB |
|
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 4.6 KiB |
|
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 7.7 KiB |
|
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 2.6 KiB |
|
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 7.4 KiB |
|
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 14 KiB |
|
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 14 KiB |
|
Before Width: | Height: | Size: 3.7 KiB After Width: | Height: | Size: 26 KiB |
|
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 6.6 KiB |
|
Before Width: | Height: | Size: 3.2 KiB After Width: | Height: | Size: 20 KiB |
|
Before Width: | Height: | Size: 3.5 KiB After Width: | Height: | Size: 21 KiB |
|
After Width: | Height: | Size: 181 KiB |
@ -0,0 +1,330 @@
|
|||||||
|
import 'package:doctor_app_flutter/config/size_config.dart';
|
||||||
|
import 'package:doctor_app_flutter/core/viewModel/doctor_replay_view_model.dart';
|
||||||
|
import 'package:doctor_app_flutter/models/doctor/list_gt_my_patients_question_model.dart';
|
||||||
|
import 'package:doctor_app_flutter/models/patient/patiant_info_model.dart';
|
||||||
|
import 'package:doctor_app_flutter/screens/base/base_view.dart';
|
||||||
|
import 'package:doctor_app_flutter/util/translations_delegate_base.dart';
|
||||||
|
import 'package:doctor_app_flutter/widgets/shared/TextFields.dart';
|
||||||
|
import 'package:doctor_app_flutter/widgets/shared/app_scaffold_widget.dart';
|
||||||
|
import 'package:doctor_app_flutter/widgets/shared/app_texts_widget.dart';
|
||||||
|
import 'package:doctor_app_flutter/widgets/shared/card_with_bg_widget.dart';
|
||||||
|
import 'package:flutter/cupertino.dart';
|
||||||
|
import 'package:flutter/material.dart';
|
||||||
|
import 'package:font_awesome_flutter/font_awesome_flutter.dart';
|
||||||
|
import 'package:hexcolor/hexcolor.dart';
|
||||||
|
|
||||||
|
class DoctorReplayChat extends StatelessWidget {
|
||||||
|
|
||||||
|
final ListGtMyPatientsQuestions reply;
|
||||||
|
TextEditingController msgController = TextEditingController();
|
||||||
|
|
||||||
|
DoctorReplayChat(
|
||||||
|
{Key key, this.reply,
|
||||||
|
});
|
||||||
|
|
||||||
|
@override
|
||||||
|
Widget build(BuildContext context) {
|
||||||
|
return BaseView<DoctorReplayViewModel>(
|
||||||
|
onModelReady: (model) async {},
|
||||||
|
builder: (_, model, w) => AppScaffold(
|
||||||
|
baseViewModel: model,
|
||||||
|
isShowAppBar: false,
|
||||||
|
body: Container(
|
||||||
|
color: Color(0XFFF2F2F2),
|
||||||
|
child: Stack(
|
||||||
|
children: [
|
||||||
|
Container(
|
||||||
|
child: Column(
|
||||||
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
|
children: [
|
||||||
|
Container(
|
||||||
|
padding: EdgeInsets.only(
|
||||||
|
left: 0, right: 5, bottom: 5, top: 5),
|
||||||
|
decoration: BoxDecoration(
|
||||||
|
color: Colors.white,
|
||||||
|
),
|
||||||
|
height: 150,
|
||||||
|
child: Container(
|
||||||
|
padding: EdgeInsets.only(
|
||||||
|
left: 10, right: 10, bottom: 10),
|
||||||
|
margin: EdgeInsets.only(top: 50),
|
||||||
|
child: Column(
|
||||||
|
children: [
|
||||||
|
Row(
|
||||||
|
mainAxisAlignment:
|
||||||
|
MainAxisAlignment.spaceBetween,
|
||||||
|
children: [
|
||||||
|
RichText(
|
||||||
|
text: TextSpan(
|
||||||
|
style: TextStyle(
|
||||||
|
fontSize: 1.6 *
|
||||||
|
SizeConfig.textMultiplier,
|
||||||
|
color: Colors.black),
|
||||||
|
children: <TextSpan>[
|
||||||
|
new TextSpan(
|
||||||
|
text: reply.patientName
|
||||||
|
.toString(),
|
||||||
|
style: TextStyle(
|
||||||
|
color: Color(0xFF2B353E),
|
||||||
|
fontWeight: FontWeight.bold,
|
||||||
|
fontFamily: 'Poppins',
|
||||||
|
fontSize: 20)),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
),
|
||||||
|
InkWell(
|
||||||
|
onTap: () {
|
||||||
|
Navigator.pop(context);
|
||||||
|
},
|
||||||
|
child: Icon(FontAwesomeIcons.times,
|
||||||
|
size: 30,
|
||||||
|
color: Color(0xFF2B353E)))
|
||||||
|
],
|
||||||
|
),
|
||||||
|
Row(
|
||||||
|
mainAxisAlignment:
|
||||||
|
MainAxisAlignment.spaceBetween,
|
||||||
|
children: [
|
||||||
|
InkWell(
|
||||||
|
onTap: () {
|
||||||
|
// TODO: move to doctor profile
|
||||||
|
},
|
||||||
|
child: RichText(
|
||||||
|
text: TextSpan(
|
||||||
|
style: TextStyle(
|
||||||
|
fontSize: 1.6 *
|
||||||
|
SizeConfig.textMultiplier,
|
||||||
|
color: Colors.black),
|
||||||
|
children: <TextSpan>[
|
||||||
|
new TextSpan(
|
||||||
|
text:
|
||||||
|
'Tap here to view patient profile'
|
||||||
|
.toString(),
|
||||||
|
style: TextStyle(
|
||||||
|
fontFamily: 'Poppins',
|
||||||
|
fontSize: 12)),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
Expanded(
|
||||||
|
child: Padding(
|
||||||
|
padding: const EdgeInsets.all(16.0),
|
||||||
|
child: SingleChildScrollView(
|
||||||
|
child: Column(
|
||||||
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
|
children: [
|
||||||
|
|
||||||
|
SizedBox(height: 30,),
|
||||||
|
Container(
|
||||||
|
// color: Color(0xFF2B353E),
|
||||||
|
width: MediaQuery.of(context).size.width * 0.8,
|
||||||
|
padding: EdgeInsets.all(10),
|
||||||
|
decoration: BoxDecoration(
|
||||||
|
color: Color(0xFF2B353E),
|
||||||
|
borderRadius: BorderRadius.all(
|
||||||
|
Radius.circular(10.0),
|
||||||
|
),
|
||||||
|
border: Border.all(
|
||||||
|
color: HexColor('#707070') ,
|
||||||
|
width: 0.30),
|
||||||
|
),
|
||||||
|
child: Column(
|
||||||
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
|
children: <Widget>[
|
||||||
|
Row(
|
||||||
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||||
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
|
children: [
|
||||||
|
Container(
|
||||||
|
margin: EdgeInsets.only(top: 5),
|
||||||
|
width: 60,
|
||||||
|
height: 60,
|
||||||
|
child: Image.asset(
|
||||||
|
1 == 1
|
||||||
|
? 'assets/images/male_avatar.png'
|
||||||
|
: 'assets/images/female_avatar.png',
|
||||||
|
fit: BoxFit.cover,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
Column(
|
||||||
|
children: [
|
||||||
|
AppText(
|
||||||
|
"07 Jan 2021",
|
||||||
|
fontSize: 2.5 * SizeConfig.textMultiplier,
|
||||||
|
fontFamily: 'Poppins',
|
||||||
|
color: Colors.white,
|
||||||
|
// fontSize: 18
|
||||||
|
),
|
||||||
|
AppText(
|
||||||
|
"07:00 PM",
|
||||||
|
fontSize: 2.5 * SizeConfig.textMultiplier,
|
||||||
|
fontFamily: 'Poppins',
|
||||||
|
color: Colors.white,
|
||||||
|
// fontSize: 18
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
SizedBox(
|
||||||
|
height: 10,
|
||||||
|
),
|
||||||
|
Row(
|
||||||
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||||
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
|
children: [
|
||||||
|
Column(
|
||||||
|
children: [
|
||||||
|
Padding(
|
||||||
|
padding: const EdgeInsets.all(8.0),
|
||||||
|
child: Container(
|
||||||
|
width: MediaQuery.of(context).size.width * 0.7,
|
||||||
|
child: AppText(
|
||||||
|
"This procedure should be taken only when the patient is below 99o",
|
||||||
|
fontSize: 15,
|
||||||
|
fontFamily: 'Poppins',
|
||||||
|
color: Colors.white,
|
||||||
|
// fontSize: 18
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
),
|
||||||
|
SizedBox(height: 30,),
|
||||||
|
Row(
|
||||||
|
mainAxisAlignment: MainAxisAlignment.end,
|
||||||
|
children: [
|
||||||
|
Container(
|
||||||
|
// color: Color(0xFF2B353E),
|
||||||
|
width: MediaQuery.of(context).size.width * 0.8,
|
||||||
|
padding: EdgeInsets.all(5),
|
||||||
|
decoration: BoxDecoration(
|
||||||
|
color: Colors.white,// Color(0xFF2B353E),
|
||||||
|
borderRadius: BorderRadius.all(
|
||||||
|
Radius.circular(10.0),
|
||||||
|
),
|
||||||
|
border: Border.all(
|
||||||
|
color: HexColor('#707070') ,
|
||||||
|
width: 0.30),
|
||||||
|
),
|
||||||
|
child: Column(
|
||||||
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
|
children: <Widget>[
|
||||||
|
Row(
|
||||||
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||||
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
|
children: [
|
||||||
|
Container(
|
||||||
|
margin: EdgeInsets.only(top: 5),
|
||||||
|
width: 60,
|
||||||
|
height: 60,
|
||||||
|
child: Image.asset(
|
||||||
|
1 == 1
|
||||||
|
? 'assets/images/male_avatar.png'
|
||||||
|
: 'assets/images/female_avatar.png',
|
||||||
|
fit: BoxFit.cover,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
Column(
|
||||||
|
children: [
|
||||||
|
AppText(
|
||||||
|
"07 Jan 2021",
|
||||||
|
fontSize: 2.5 * SizeConfig.textMultiplier,
|
||||||
|
fontFamily: 'Poppins',
|
||||||
|
color: Color(0xFF2B353E),
|
||||||
|
// fontSize: 18
|
||||||
|
),
|
||||||
|
AppText(
|
||||||
|
"07:00 PM",
|
||||||
|
fontSize: 2.5 * SizeConfig.textMultiplier,
|
||||||
|
fontFamily: 'Poppins',
|
||||||
|
color: Color(0xFF2B353E),
|
||||||
|
// fontSize: 18
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
SizedBox(
|
||||||
|
height: 10,
|
||||||
|
),
|
||||||
|
Row(
|
||||||
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||||
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
|
children: [
|
||||||
|
Column(
|
||||||
|
children: [
|
||||||
|
Padding(
|
||||||
|
padding: const EdgeInsets.all(8.0),
|
||||||
|
child: Container(
|
||||||
|
width: MediaQuery.of(context).size.width * 0.7,
|
||||||
|
child: AppText(
|
||||||
|
"This procedure should be taken only when the patient is below 99o",
|
||||||
|
fontSize: 15,
|
||||||
|
fontFamily: 'Poppins',
|
||||||
|
color: Color(0xFF2B353E),
|
||||||
|
// fontSize: 18
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
)
|
||||||
|
],
|
||||||
|
),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
),
|
||||||
|
bottomSheet: Container(
|
||||||
|
child:TextFields(
|
||||||
|
hasLabelText: msgController.text != ''
|
||||||
|
? true
|
||||||
|
: false,
|
||||||
|
showLabelText: false,
|
||||||
|
hintText: TranslationBase
|
||||||
|
.of(context)
|
||||||
|
.typeHereToReply,
|
||||||
|
fontSize: 13.5,
|
||||||
|
suffixIcon: FontAwesomeIcons.arrowRight,
|
||||||
|
suffixIconColor: Colors.green,
|
||||||
|
// hintColor: Colors.black,
|
||||||
|
fontWeight: FontWeight.w600,
|
||||||
|
maxLines: 50,
|
||||||
|
minLines: 3,
|
||||||
|
controller: msgController,
|
||||||
|
validator: (value) {
|
||||||
|
if (value == null || value == "")
|
||||||
|
return TranslationBase.of(context)
|
||||||
|
.emptyMessage;
|
||||||
|
else
|
||||||
|
return null;
|
||||||
|
}),
|
||||||
|
height: MediaQuery.of(context).size.height * 0.1,
|
||||||
|
),
|
||||||
|
));
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,329 @@
|
|||||||
|
import 'package:doctor_app_flutter/config/size_config.dart';
|
||||||
|
import 'package:doctor_app_flutter/core/viewModel/InsuranceViewModel.dart';
|
||||||
|
import 'package:doctor_app_flutter/core/viewModel/project_view_model.dart';
|
||||||
|
import 'package:doctor_app_flutter/models/patient/patiant_info_model.dart';
|
||||||
|
import 'package:doctor_app_flutter/screens/base/base_view.dart';
|
||||||
|
import 'package:doctor_app_flutter/util/date-utils.dart';
|
||||||
|
import 'package:doctor_app_flutter/util/translations_delegate_base.dart';
|
||||||
|
import 'package:doctor_app_flutter/widgets/patients/profile/patient-profile-header-new-design-app-bar.dart';
|
||||||
|
import 'package:doctor_app_flutter/widgets/shared/Text.dart';
|
||||||
|
import 'package:doctor_app_flutter/widgets/shared/app_scaffold_widget.dart';
|
||||||
|
import 'package:doctor_app_flutter/widgets/shared/app_texts_widget.dart';
|
||||||
|
import 'package:flutter/cupertino.dart';
|
||||||
|
import 'package:flutter/material.dart';
|
||||||
|
import 'package:provider/provider.dart';
|
||||||
|
|
||||||
|
class InsuranceApprovalsDetails extends StatefulWidget {
|
||||||
|
PatiantInformtion patient;
|
||||||
|
int indexInsurance;
|
||||||
|
InsuranceApprovalsDetails({this.patient, this.indexInsurance});
|
||||||
|
@override
|
||||||
|
_InsuranceApprovalsDetailsState createState() =>
|
||||||
|
_InsuranceApprovalsDetailsState(
|
||||||
|
patient: patient, indexInsurance: indexInsurance);
|
||||||
|
}
|
||||||
|
|
||||||
|
class _InsuranceApprovalsDetailsState extends State<InsuranceApprovalsDetails> {
|
||||||
|
PatiantInformtion patient;
|
||||||
|
int indexInsurance;
|
||||||
|
|
||||||
|
_InsuranceApprovalsDetailsState({this.patient, this.indexInsurance});
|
||||||
|
|
||||||
|
@override
|
||||||
|
Widget build(BuildContext context) {
|
||||||
|
ProjectViewModel projectViewModel = Provider.of(context);
|
||||||
|
final routeArgs = ModalRoute.of(context).settings.arguments as Map;
|
||||||
|
|
||||||
|
return BaseView<InsuranceViewModel>(
|
||||||
|
onModelReady: patient.appointmentNo != null
|
||||||
|
? (model) => model.getInsuranceApproval(patient,
|
||||||
|
appointmentNo: patient.appointmentNo)
|
||||||
|
: (model) => model.getInsuranceApproval(patient),
|
||||||
|
builder: (BuildContext context, InsuranceViewModel model, Widget child) =>
|
||||||
|
AppScaffold(
|
||||||
|
isShowAppBar: true,
|
||||||
|
baseViewModel: model,
|
||||||
|
appBar: PatientProfileHeaderNewDesignAppBar(
|
||||||
|
patient, patient.patientType.toString(), patient.arrivedOn),
|
||||||
|
body: SingleChildScrollView(
|
||||||
|
child: Container(
|
||||||
|
child: Column(
|
||||||
|
children: [
|
||||||
|
Padding(
|
||||||
|
padding: const EdgeInsets.all(8.0),
|
||||||
|
child: Column(
|
||||||
|
children: [
|
||||||
|
Row(
|
||||||
|
children: [
|
||||||
|
AppText(
|
||||||
|
'Insurance',
|
||||||
|
fontSize: 15.0,
|
||||||
|
fontWeight: FontWeight.w600,
|
||||||
|
fontFamily: 'Poppins',
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
Row(
|
||||||
|
children: [
|
||||||
|
AppText(
|
||||||
|
'Approvals',
|
||||||
|
fontSize: 30.0,
|
||||||
|
fontWeight: FontWeight.w700,
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
),
|
||||||
|
Container(
|
||||||
|
margin: EdgeInsets.all(10),
|
||||||
|
decoration: BoxDecoration(
|
||||||
|
border: Border.all(
|
||||||
|
width: 0.5,
|
||||||
|
color: Colors.white,
|
||||||
|
),
|
||||||
|
borderRadius: BorderRadius.all(
|
||||||
|
Radius.circular(15.0),
|
||||||
|
),
|
||||||
|
color: Colors.white),
|
||||||
|
child: Padding(
|
||||||
|
padding: const EdgeInsets.all(8.0),
|
||||||
|
child: Column(
|
||||||
|
children: [
|
||||||
|
Row(
|
||||||
|
children: [
|
||||||
|
Texts(
|
||||||
|
model.insuranceApproval[indexInsurance]
|
||||||
|
.approvalDetails.status,
|
||||||
|
color:
|
||||||
|
model.insuranceApproval[indexInsurance]
|
||||||
|
.approvalDetails.status ==
|
||||||
|
"Approved"
|
||||||
|
? Color(0xff359846)
|
||||||
|
: Color(0xffD02127),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
Row(
|
||||||
|
children: [
|
||||||
|
Texts(
|
||||||
|
model.insuranceApproval[indexInsurance]
|
||||||
|
.doctorName
|
||||||
|
.toUpperCase(),
|
||||||
|
color: Colors.black,
|
||||||
|
fontSize: 18,
|
||||||
|
fontWeight: FontWeight.bold,
|
||||||
|
)
|
||||||
|
],
|
||||||
|
),
|
||||||
|
Padding(
|
||||||
|
padding:
|
||||||
|
const EdgeInsets.symmetric(horizontal: 8.0),
|
||||||
|
child: Row(
|
||||||
|
children: [
|
||||||
|
Column(
|
||||||
|
children: [
|
||||||
|
Container(
|
||||||
|
height: 85.0,
|
||||||
|
width: 85.0,
|
||||||
|
child: CircleAvatar(
|
||||||
|
radius:
|
||||||
|
SizeConfig.imageSizeMultiplier *
|
||||||
|
12,
|
||||||
|
// radius: (52)
|
||||||
|
child: ClipRRect(
|
||||||
|
borderRadius:
|
||||||
|
BorderRadius.circular(50),
|
||||||
|
child: Image.network(
|
||||||
|
model
|
||||||
|
.insuranceApproval[
|
||||||
|
indexInsurance]
|
||||||
|
.doctorImage,
|
||||||
|
fit: BoxFit.fill,
|
||||||
|
width: 700,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
backgroundColor: Colors.transparent,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
Padding(
|
||||||
|
padding: const EdgeInsets.symmetric(
|
||||||
|
horizontal: 8.0),
|
||||||
|
child: Column(
|
||||||
|
crossAxisAlignment:
|
||||||
|
CrossAxisAlignment.start,
|
||||||
|
//mainAxisAlignment: MainAxisAlignment.center,
|
||||||
|
children: [
|
||||||
|
SizedBox(
|
||||||
|
height: 25.0,
|
||||||
|
),
|
||||||
|
Row(
|
||||||
|
children: [
|
||||||
|
Texts(
|
||||||
|
'Clinic: ',
|
||||||
|
color: Colors.grey[500],
|
||||||
|
),
|
||||||
|
Texts(
|
||||||
|
model
|
||||||
|
.insuranceApproval[
|
||||||
|
indexInsurance]
|
||||||
|
.clinicName,
|
||||||
|
)
|
||||||
|
],
|
||||||
|
),
|
||||||
|
Row(
|
||||||
|
children: <Widget>[
|
||||||
|
Texts(
|
||||||
|
'Approval No: ',
|
||||||
|
color: Colors.grey[500],
|
||||||
|
),
|
||||||
|
Texts(
|
||||||
|
model
|
||||||
|
.insuranceApproval[
|
||||||
|
indexInsurance]
|
||||||
|
.approvalNo
|
||||||
|
.toString(),
|
||||||
|
)
|
||||||
|
],
|
||||||
|
),
|
||||||
|
Row(
|
||||||
|
children: <Widget>[
|
||||||
|
Texts(
|
||||||
|
'Unused Count:',
|
||||||
|
color: Colors.grey[500],
|
||||||
|
),
|
||||||
|
Texts(model
|
||||||
|
.insuranceApproval[
|
||||||
|
indexInsurance]
|
||||||
|
.unUsedCount
|
||||||
|
.toString())
|
||||||
|
],
|
||||||
|
),
|
||||||
|
Row(
|
||||||
|
children: <Widget>[
|
||||||
|
Texts(
|
||||||
|
'Company Name :',
|
||||||
|
color: Colors.grey[500],
|
||||||
|
),
|
||||||
|
Texts('Sample')
|
||||||
|
],
|
||||||
|
),
|
||||||
|
SizedBox(
|
||||||
|
height: 25.0,
|
||||||
|
),
|
||||||
|
Row(
|
||||||
|
children: [
|
||||||
|
Texts(
|
||||||
|
'Receipt on :',
|
||||||
|
color: Colors.grey[500],
|
||||||
|
),
|
||||||
|
Texts(
|
||||||
|
'${DateUtils.getDayMonthYearDateFormatted(DateUtils.getDateTimeFromServerFormat(model.insuranceApproval[indexInsurance].rceiptOn), isArabic: projectViewModel.isArabic)}',
|
||||||
|
color: Colors.black,
|
||||||
|
fontWeight: FontWeight.w600,
|
||||||
|
fontSize: 14,
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
Row(
|
||||||
|
children: [
|
||||||
|
Texts(
|
||||||
|
'Exp on:',
|
||||||
|
color: Colors.grey[500],
|
||||||
|
),
|
||||||
|
Texts(
|
||||||
|
'${DateUtils.getDayMonthYearDateFormatted(DateUtils.getDateTimeFromServerFormat(model.insuranceApproval[indexInsurance].expiryDate), isArabic: projectViewModel.isArabic)}',
|
||||||
|
color: Colors.black,
|
||||||
|
fontWeight: FontWeight.w600,
|
||||||
|
fontSize: 14,
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
),
|
||||||
|
SizedBox(
|
||||||
|
height: 20.0,
|
||||||
|
),
|
||||||
|
Container(
|
||||||
|
child: Column(
|
||||||
|
children: [
|
||||||
|
Row(
|
||||||
|
mainAxisAlignment:
|
||||||
|
MainAxisAlignment.spaceAround,
|
||||||
|
children: [
|
||||||
|
Texts('Procedure'),
|
||||||
|
Texts('Status'),
|
||||||
|
Texts('Usage Status')
|
||||||
|
],
|
||||||
|
),
|
||||||
|
Divider(
|
||||||
|
color: Colors.black45,
|
||||||
|
),
|
||||||
|
Row(
|
||||||
|
mainAxisAlignment:
|
||||||
|
MainAxisAlignment.spaceAround,
|
||||||
|
children: [
|
||||||
|
Container(
|
||||||
|
height: MediaQuery.of(context)
|
||||||
|
.size
|
||||||
|
.height *
|
||||||
|
0.2, //130.0,
|
||||||
|
width: MediaQuery.of(context)
|
||||||
|
.size
|
||||||
|
.width *
|
||||||
|
0.33,
|
||||||
|
child: Texts(model
|
||||||
|
.insuranceApproval[indexInsurance]
|
||||||
|
.approvalDetails
|
||||||
|
.procedureName),
|
||||||
|
),
|
||||||
|
Container(
|
||||||
|
height: MediaQuery.of(context)
|
||||||
|
.size
|
||||||
|
.height *
|
||||||
|
0.2,
|
||||||
|
width: MediaQuery.of(context)
|
||||||
|
.size
|
||||||
|
.width *
|
||||||
|
0.33,
|
||||||
|
child: Texts(model
|
||||||
|
.insuranceApproval[indexInsurance]
|
||||||
|
.approvalDetails
|
||||||
|
.status),
|
||||||
|
),
|
||||||
|
Container(
|
||||||
|
height: MediaQuery.of(context)
|
||||||
|
.size
|
||||||
|
.height *
|
||||||
|
0.2,
|
||||||
|
width: MediaQuery.of(context)
|
||||||
|
.size
|
||||||
|
.width *
|
||||||
|
0.25,
|
||||||
|
child: Texts(model
|
||||||
|
.insuranceApproval[indexInsurance]
|
||||||
|
.approvalDetails
|
||||||
|
.isInvoicedDesc),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
)
|
||||||
|
],
|
||||||
|
),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
),
|
||||||
|
)),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,182 @@
|
|||||||
|
import 'package:doctor_app_flutter/core/viewModel/project_view_model.dart';
|
||||||
|
import 'package:doctor_app_flutter/util/date-utils.dart';
|
||||||
|
import 'package:doctor_app_flutter/util/translations_delegate_base.dart';
|
||||||
|
import 'package:doctor_app_flutter/widgets/patients/profile/large_avatar.dart';
|
||||||
|
import 'package:eva_icons_flutter/eva_icons_flutter.dart';
|
||||||
|
import 'package:flutter/cupertino.dart';
|
||||||
|
import 'package:flutter/material.dart';
|
||||||
|
import 'package:font_awesome_flutter/font_awesome_flutter.dart';
|
||||||
|
import 'package:provider/provider.dart';
|
||||||
|
|
||||||
|
import 'StarRating.dart';
|
||||||
|
import 'Text.dart';
|
||||||
|
|
||||||
|
class DoctorCardInsurance extends StatelessWidget {
|
||||||
|
final String doctorName;
|
||||||
|
final String branch;
|
||||||
|
final DateTime appointmentDate;
|
||||||
|
final String profileUrl;
|
||||||
|
final String invoiceNO;
|
||||||
|
final String orderNo;
|
||||||
|
final Function onTap;
|
||||||
|
final bool isPrescriptions;
|
||||||
|
final String clinic;
|
||||||
|
final String approvalStatus;
|
||||||
|
final String patientOut;
|
||||||
|
|
||||||
|
DoctorCardInsurance(
|
||||||
|
{this.doctorName,
|
||||||
|
this.branch,
|
||||||
|
this.profileUrl,
|
||||||
|
this.invoiceNO,
|
||||||
|
this.onTap,
|
||||||
|
this.appointmentDate,
|
||||||
|
this.orderNo,
|
||||||
|
this.isPrescriptions = false,
|
||||||
|
this.clinic,
|
||||||
|
this.approvalStatus,
|
||||||
|
this.patientOut});
|
||||||
|
|
||||||
|
@override
|
||||||
|
Widget build(BuildContext context) {
|
||||||
|
ProjectViewModel projectViewModel = Provider.of(context);
|
||||||
|
return Container(
|
||||||
|
margin: EdgeInsets.all(10),
|
||||||
|
decoration: BoxDecoration(
|
||||||
|
border: Border(
|
||||||
|
left: BorderSide(
|
||||||
|
color: approvalStatus == "Approved"
|
||||||
|
? Color(0xff359846)
|
||||||
|
: Color(0xffD02127),
|
||||||
|
width: 3.5),
|
||||||
|
top: BorderSide(color: Colors.white, width: 0.5),
|
||||||
|
bottom: BorderSide(color: Colors.white, width: 0.5),
|
||||||
|
right: BorderSide(color: Colors.white, width: 0.5),
|
||||||
|
),
|
||||||
|
color: Colors.white),
|
||||||
|
child: Padding(
|
||||||
|
padding: const EdgeInsets.all(15.0),
|
||||||
|
child: InkWell(
|
||||||
|
onTap: onTap,
|
||||||
|
child: Column(
|
||||||
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
|
children: <Widget>[
|
||||||
|
Row(
|
||||||
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||||
|
children: [
|
||||||
|
Texts(
|
||||||
|
"$approvalStatus",
|
||||||
|
color: approvalStatus == "Approved"
|
||||||
|
? Color(0xff359846)
|
||||||
|
: Color(0xffD02127),
|
||||||
|
),
|
||||||
|
Container(
|
||||||
|
decoration: BoxDecoration(
|
||||||
|
borderRadius: BorderRadius.all(
|
||||||
|
Radius.circular(25.0),
|
||||||
|
),
|
||||||
|
color: Color(0xff2E303A)),
|
||||||
|
child: Padding(
|
||||||
|
padding: const EdgeInsets.all(5.0),
|
||||||
|
child: Texts(
|
||||||
|
'$patientOut',
|
||||||
|
color: Colors.white,
|
||||||
|
fontSize: 15.0,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
)
|
||||||
|
],
|
||||||
|
),
|
||||||
|
Row(
|
||||||
|
children: [
|
||||||
|
Expanded(
|
||||||
|
child: Texts(
|
||||||
|
doctorName,
|
||||||
|
bold: true,
|
||||||
|
)),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
Row(
|
||||||
|
crossAxisAlignment: CrossAxisAlignment.end,
|
||||||
|
children: <Widget>[
|
||||||
|
Container(
|
||||||
|
child: LargeAvatar(
|
||||||
|
name: doctorName,
|
||||||
|
url: profileUrl,
|
||||||
|
),
|
||||||
|
width: 55,
|
||||||
|
height: 55,
|
||||||
|
),
|
||||||
|
Expanded(
|
||||||
|
flex: 4,
|
||||||
|
child: Container(
|
||||||
|
margin: EdgeInsets.all(10),
|
||||||
|
child: Column(
|
||||||
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
|
children: <Widget>[
|
||||||
|
if (orderNo != null && !isPrescriptions)
|
||||||
|
Row(
|
||||||
|
children: <Widget>[
|
||||||
|
Texts(
|
||||||
|
'order No:',
|
||||||
|
color: Colors.grey[500],
|
||||||
|
),
|
||||||
|
Texts(
|
||||||
|
orderNo ?? '',
|
||||||
|
)
|
||||||
|
],
|
||||||
|
),
|
||||||
|
if (invoiceNO != null && !isPrescriptions)
|
||||||
|
Row(
|
||||||
|
children: <Widget>[
|
||||||
|
Texts(
|
||||||
|
'Invoice:',
|
||||||
|
color: Colors.grey[500],
|
||||||
|
),
|
||||||
|
Texts(
|
||||||
|
invoiceNO,
|
||||||
|
)
|
||||||
|
],
|
||||||
|
),
|
||||||
|
if (isPrescriptions)
|
||||||
|
Row(
|
||||||
|
children: <Widget>[
|
||||||
|
Texts(
|
||||||
|
'Clinic: ',
|
||||||
|
color: Colors.grey[500],
|
||||||
|
),
|
||||||
|
Expanded(
|
||||||
|
child: Texts(
|
||||||
|
clinic,
|
||||||
|
),
|
||||||
|
)
|
||||||
|
],
|
||||||
|
),
|
||||||
|
if (branch != null)
|
||||||
|
Row(
|
||||||
|
children: <Widget>[
|
||||||
|
Texts(
|
||||||
|
'Approval No: ',
|
||||||
|
color: Colors.grey[500],
|
||||||
|
),
|
||||||
|
Texts(
|
||||||
|
branch,
|
||||||
|
)
|
||||||
|
],
|
||||||
|
)
|
||||||
|
]),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
Icon(
|
||||||
|
EvaIcons.eye,
|
||||||
|
size: 38.0,
|
||||||
|
)
|
||||||
|
],
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||