|
|
|
@ -3,6 +3,8 @@ import 'package:diplomaticquarterapp/core/model/labs/patient_lab_orders.dart';
|
|
|
|
import 'package:diplomaticquarterapp/core/viewModels/medical/labs_view_model.dart';
|
|
|
|
import 'package:diplomaticquarterapp/core/viewModels/medical/labs_view_model.dart';
|
|
|
|
import 'package:diplomaticquarterapp/core/viewModels/project_view_model.dart';
|
|
|
|
import 'package:diplomaticquarterapp/core/viewModels/project_view_model.dart';
|
|
|
|
import 'package:diplomaticquarterapp/pages/base/base_view.dart';
|
|
|
|
import 'package:diplomaticquarterapp/pages/base/base_view.dart';
|
|
|
|
|
|
|
|
import 'package:diplomaticquarterapp/uitl/translations_delegate_base.dart';
|
|
|
|
|
|
|
|
import 'package:diplomaticquarterapp/widgets/others/app_scaffold_widget.dart';
|
|
|
|
import 'package:diplomaticquarterapp/widgets/others/network_base_view.dart';
|
|
|
|
import 'package:diplomaticquarterapp/widgets/others/network_base_view.dart';
|
|
|
|
import 'package:flutter/cupertino.dart';
|
|
|
|
import 'package:flutter/cupertino.dart';
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
@ -41,7 +43,12 @@ class _LaboratoryResultWidgetState extends State<LaboratoryResultWidget> {
|
|
|
|
@override
|
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
projectViewModel = Provider.of(context);
|
|
|
|
projectViewModel = Provider.of(context);
|
|
|
|
return Container(
|
|
|
|
return BaseView<LabsViewModel>(
|
|
|
|
|
|
|
|
onModelReady: (model) =>
|
|
|
|
|
|
|
|
model.getPatientLabResult(patientLabOrder: widget.patientLabOrder),
|
|
|
|
|
|
|
|
builder: (_, model, w) => NetworkBaseView(
|
|
|
|
|
|
|
|
baseViewModel: model,
|
|
|
|
|
|
|
|
child: Container(
|
|
|
|
margin: EdgeInsets.all(15),
|
|
|
|
margin: EdgeInsets.all(15),
|
|
|
|
child: Column(
|
|
|
|
child: Column(
|
|
|
|
children: <Widget>[
|
|
|
|
children: <Widget>[
|
|
|
|
@ -66,7 +73,7 @@ class _LaboratoryResultWidgetState extends State<LaboratoryResultWidget> {
|
|
|
|
child: Column(
|
|
|
|
child: Column(
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
children: <Widget>[
|
|
|
|
children: <Widget>[
|
|
|
|
Texts('Invoice No'),
|
|
|
|
Texts(TranslationBase.of(context).invoiceNo),
|
|
|
|
Texts(widget.billNo),
|
|
|
|
Texts(widget.billNo),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
@ -78,7 +85,7 @@ class _LaboratoryResultWidgetState extends State<LaboratoryResultWidget> {
|
|
|
|
margin: EdgeInsets.only(left: 5, right: 5),
|
|
|
|
margin: EdgeInsets.only(left: 5, right: 5),
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
shape: BoxShape.rectangle,
|
|
|
|
shape: BoxShape.rectangle,
|
|
|
|
color: Colors.red[800],
|
|
|
|
color: Theme.of(context).primaryColor,
|
|
|
|
borderRadius: BorderRadius.all(
|
|
|
|
borderRadius: BorderRadius.all(
|
|
|
|
Radius.circular(5.0),
|
|
|
|
Radius.circular(5.0),
|
|
|
|
)),
|
|
|
|
)),
|
|
|
|
@ -92,7 +99,7 @@ class _LaboratoryResultWidgetState extends State<LaboratoryResultWidget> {
|
|
|
|
color: Colors.white,
|
|
|
|
color: Colors.white,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
Texts(
|
|
|
|
Texts(
|
|
|
|
'Send a copy',
|
|
|
|
TranslationBase.of(context).sendCopy,
|
|
|
|
color: Colors.white,
|
|
|
|
color: Colors.white,
|
|
|
|
)
|
|
|
|
)
|
|
|
|
],
|
|
|
|
],
|
|
|
|
@ -123,12 +130,12 @@ class _LaboratoryResultWidgetState extends State<LaboratoryResultWidget> {
|
|
|
|
)),
|
|
|
|
)),
|
|
|
|
child: Row(
|
|
|
|
child: Row(
|
|
|
|
children: <Widget>[
|
|
|
|
children: <Widget>[
|
|
|
|
Expanded(child: Texts('Special Result')),
|
|
|
|
Expanded(child: Texts(TranslationBase.of(context).specialResult)),
|
|
|
|
Container(
|
|
|
|
Container(
|
|
|
|
width: 25,
|
|
|
|
width: 25,
|
|
|
|
height: 25,
|
|
|
|
height: 25,
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
shape: BoxShape.circle, color: Colors.red[900]),
|
|
|
|
shape: BoxShape.circle, color: Theme.of(context).primaryColor),
|
|
|
|
child: Icon(
|
|
|
|
child: Icon(
|
|
|
|
_isShowMore
|
|
|
|
_isShowMore
|
|
|
|
? Icons.keyboard_arrow_up
|
|
|
|
? Icons.keyboard_arrow_up
|
|
|
|
@ -162,12 +169,7 @@ class _LaboratoryResultWidgetState extends State<LaboratoryResultWidget> {
|
|
|
|
SizedBox(
|
|
|
|
SizedBox(
|
|
|
|
height: 12,
|
|
|
|
height: 12,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
BaseView<LabsViewModel>(
|
|
|
|
Container(
|
|
|
|
onModelReady: (model) => model.getPatientLabResult(
|
|
|
|
|
|
|
|
patientLabOrder: widget.patientLabOrder),
|
|
|
|
|
|
|
|
builder: (_, model, w) => NetworkBaseView(
|
|
|
|
|
|
|
|
baseViewModel: model,
|
|
|
|
|
|
|
|
child: Container(
|
|
|
|
|
|
|
|
child: Column(
|
|
|
|
child: Column(
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
InkWell(
|
|
|
|
InkWell(
|
|
|
|
@ -189,13 +191,13 @@ class _LaboratoryResultWidgetState extends State<LaboratoryResultWidget> {
|
|
|
|
)),
|
|
|
|
)),
|
|
|
|
child: Row(
|
|
|
|
child: Row(
|
|
|
|
children: <Widget>[
|
|
|
|
children: <Widget>[
|
|
|
|
Expanded(child: Texts('General Result')),
|
|
|
|
Expanded(child: Texts(TranslationBase.of(context).generalResult)),
|
|
|
|
Container(
|
|
|
|
Container(
|
|
|
|
width: 25,
|
|
|
|
width: 25,
|
|
|
|
height: 25,
|
|
|
|
height: 25,
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
shape: BoxShape.circle,
|
|
|
|
shape: BoxShape.circle,
|
|
|
|
color: Colors.red[900]),
|
|
|
|
color: Theme.of(context).primaryColor),
|
|
|
|
child: Icon(
|
|
|
|
child: Icon(
|
|
|
|
_isShowMoreGeneral
|
|
|
|
_isShowMoreGeneral
|
|
|
|
? Icons.keyboard_arrow_up
|
|
|
|
? Icons.keyboard_arrow_up
|
|
|
|
@ -224,7 +226,8 @@ class _LaboratoryResultWidgetState extends State<LaboratoryResultWidget> {
|
|
|
|
child: Container(
|
|
|
|
child: Container(
|
|
|
|
width: double.infinity,
|
|
|
|
width: double.infinity,
|
|
|
|
child: Column(
|
|
|
|
child: Column(
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
crossAxisAlignment:
|
|
|
|
|
|
|
|
CrossAxisAlignment.start,
|
|
|
|
children: <Widget>[
|
|
|
|
children: <Widget>[
|
|
|
|
...List.generate(
|
|
|
|
...List.generate(
|
|
|
|
model.labResultLists.length,
|
|
|
|
model.labResultLists.length,
|
|
|
|
@ -242,15 +245,13 @@ class _LaboratoryResultWidgetState extends State<LaboratoryResultWidget> {
|
|
|
|
),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
)
|
|
|
|
)
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
);
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|