|
|
|
@ -1,14 +1,9 @@
|
|
|
|
import 'package:doctor_app_flutter/core/viewModel/project_view_model.dart';
|
|
|
|
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:doctor_app_flutter/widgets/patients/profile/large_avatar.dart';
|
|
|
|
import 'package:eva_icons_flutter/eva_icons_flutter.dart';
|
|
|
|
import 'package:eva_icons_flutter/eva_icons_flutter.dart';
|
|
|
|
import 'package:flutter/cupertino.dart';
|
|
|
|
import 'package:flutter/cupertino.dart';
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
import 'package:font_awesome_flutter/font_awesome_flutter.dart';
|
|
|
|
|
|
|
|
import 'package:provider/provider.dart';
|
|
|
|
import 'package:provider/provider.dart';
|
|
|
|
|
|
|
|
|
|
|
|
import 'StarRating.dart';
|
|
|
|
|
|
|
|
import 'Text.dart';
|
|
|
|
import 'Text.dart';
|
|
|
|
|
|
|
|
|
|
|
|
class DoctorCardInsurance extends StatelessWidget {
|
|
|
|
class DoctorCardInsurance extends StatelessWidget {
|
|
|
|
@ -41,22 +36,34 @@ class DoctorCardInsurance extends StatelessWidget {
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
ProjectViewModel projectViewModel = Provider.of(context);
|
|
|
|
ProjectViewModel projectViewModel = Provider.of(context);
|
|
|
|
return Container(
|
|
|
|
return Container(
|
|
|
|
|
|
|
|
width: double.maxFinite,
|
|
|
|
|
|
|
|
height: 160,
|
|
|
|
margin: EdgeInsets.all(10),
|
|
|
|
margin: EdgeInsets.all(10),
|
|
|
|
|
|
|
|
padding: EdgeInsets.only(left: 0, right: 5, bottom: 5, top: 5),
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
border: Border(
|
|
|
|
borderRadius: BorderRadius.circular(15),
|
|
|
|
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,
|
|
|
|
color: Colors.white,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
child: Padding(
|
|
|
|
child: Container(
|
|
|
|
padding: const EdgeInsets.all(15.0),
|
|
|
|
child: Row(
|
|
|
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.start,
|
|
|
|
|
|
|
|
children: [
|
|
|
|
|
|
|
|
Container(
|
|
|
|
|
|
|
|
height: 160,
|
|
|
|
|
|
|
|
width: 5,
|
|
|
|
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
|
|
|
|
borderRadius: BorderRadius.only(
|
|
|
|
|
|
|
|
topLeft: Radius.circular(10),
|
|
|
|
|
|
|
|
bottomLeft: Radius.circular(10),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
color: approvalStatus == "Approved" ? Color(0xff359846) : Color(0xffD02127),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
Expanded(
|
|
|
|
|
|
|
|
child: Container(
|
|
|
|
|
|
|
|
padding: EdgeInsets.only(
|
|
|
|
|
|
|
|
left: projectViewModel.isArabic ? 0 : 15,
|
|
|
|
|
|
|
|
right: projectViewModel.isArabic ? 15 : 0),
|
|
|
|
child: InkWell(
|
|
|
|
child: InkWell(
|
|
|
|
onTap: onTap,
|
|
|
|
onTap: onTap,
|
|
|
|
child: Column(
|
|
|
|
child: Column(
|
|
|
|
@ -80,7 +87,7 @@ class DoctorCardInsurance extends StatelessWidget {
|
|
|
|
child: Padding(
|
|
|
|
child: Padding(
|
|
|
|
padding: const EdgeInsets.all(5.0),
|
|
|
|
padding: const EdgeInsets.all(5.0),
|
|
|
|
child: Texts(
|
|
|
|
child: Texts(
|
|
|
|
'$patientOut'.replaceAll(" ", ""),
|
|
|
|
'$patientOut',
|
|
|
|
color: Colors.white,
|
|
|
|
color: Colors.white,
|
|
|
|
fontSize: 13.0,
|
|
|
|
fontSize: 13.0,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
@ -178,6 +185,10 @@ class DoctorCardInsurance extends StatelessWidget {
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
);
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|