|
|
|
|
@ -14,16 +14,18 @@ import 'package:flutter/cupertino.dart';
|
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
import 'package:hexcolor/hexcolor.dart';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class UpdateSoapIndexVidaPlus extends StatefulWidget {
|
|
|
|
|
final bool isUpdate;
|
|
|
|
|
|
|
|
|
|
const UpdateSoapIndexVidaPlus({Key? key, this.isUpdate = false}) : super(key: key);
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
_UpdateSoapIndexState createState() => _UpdateSoapIndexState();
|
|
|
|
|
_UpdateSoapIndexVidaPlusState createState() => _UpdateSoapIndexVidaPlusState();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
class _UpdateSoapIndexState extends State<UpdateSoapIndexVidaPlus> with TickerProviderStateMixin {
|
|
|
|
|
class _UpdateSoapIndexVidaPlusState extends State<UpdateSoapIndexVidaPlus>
|
|
|
|
|
with TickerProviderStateMixin {
|
|
|
|
|
PageController? _controller;
|
|
|
|
|
int _currentIndex = 0;
|
|
|
|
|
List<MySelectedAllergy> myAllergiesList = [];
|
|
|
|
|
@ -70,7 +72,9 @@ class _UpdateSoapIndexState extends State<UpdateSoapIndexVidaPlus> with TickerPr
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
children: [
|
|
|
|
|
Container(
|
|
|
|
|
decoration: BoxDecoration(boxShadow: <BoxShadow>[], color: Theme.of(context).scaffoldBackgroundColor),
|
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
|
boxShadow: <BoxShadow>[],
|
|
|
|
|
color: Theme.of(context).scaffoldBackgroundColor),
|
|
|
|
|
child: Column(
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.start,
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
@ -88,8 +92,11 @@ class _UpdateSoapIndexState extends State<UpdateSoapIndexVidaPlus> with TickerPr
|
|
|
|
|
},
|
|
|
|
|
scrollDirection: Axis.horizontal,
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
//todo add widgets here
|
|
|
|
|
|
|
|
|
|
UpdateSubjectivePage(
|
|
|
|
|
changePageViewIndex: changePageViewIndex,
|
|
|
|
|
currentIndex: _currentIndex,
|
|
|
|
|
patientInfo: patient,
|
|
|
|
|
changeLoadingState: changeLoadingState)
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
)
|
|
|
|
|
@ -101,32 +108,35 @@ class _UpdateSoapIndexState extends State<UpdateSoapIndexVidaPlus> with TickerPr
|
|
|
|
|
),
|
|
|
|
|
bottomSheet: _isLoading
|
|
|
|
|
? Container(
|
|
|
|
|
height: 0,
|
|
|
|
|
)
|
|
|
|
|
height: 0,
|
|
|
|
|
)
|
|
|
|
|
: Container(
|
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
borderRadius: BorderRadius.all(
|
|
|
|
|
Radius.circular(0.0),
|
|
|
|
|
),
|
|
|
|
|
border: Border.all(color: HexColor('#707070'), width: 0),
|
|
|
|
|
),
|
|
|
|
|
height: SizeConfig.heightMultiplier! * (SizeConfig.isHeightVeryShort ? 12 : 10),
|
|
|
|
|
width: double.infinity,
|
|
|
|
|
child: Column(
|
|
|
|
|
children: [
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 10,
|
|
|
|
|
),
|
|
|
|
|
Container(
|
|
|
|
|
child: FractionallySizedBox(widthFactor: .80, child: getBottomSheet(model, patient)),
|
|
|
|
|
),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 5,
|
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
borderRadius: BorderRadius.all(
|
|
|
|
|
Radius.circular(0.0),
|
|
|
|
|
),
|
|
|
|
|
border: Border.all(color: HexColor('#707070'), width: 0),
|
|
|
|
|
),
|
|
|
|
|
height: SizeConfig.heightMultiplier! *
|
|
|
|
|
(SizeConfig.isHeightVeryShort ? 12 : 10),
|
|
|
|
|
width: double.infinity,
|
|
|
|
|
child: Column(
|
|
|
|
|
children: [
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 10,
|
|
|
|
|
),
|
|
|
|
|
Container(
|
|
|
|
|
child: FractionallySizedBox(
|
|
|
|
|
widthFactor: .80,
|
|
|
|
|
child: getBottomSheet(model, patient)),
|
|
|
|
|
),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 5,
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
@ -171,7 +181,11 @@ class _UpdateSoapIndexState extends State<UpdateSoapIndexVidaPlus> with TickerPr
|
|
|
|
|
),
|
|
|
|
|
Expanded(
|
|
|
|
|
child: AppButton(
|
|
|
|
|
title: patient.admissionNo != null && patient.admissionNo!.isNotEmpty && !model.isAddExamInProgress ? TranslationBase.of(context).finish : TranslationBase.of(context).next,
|
|
|
|
|
title: patient.admissionNo != null &&
|
|
|
|
|
patient.admissionNo!.isNotEmpty &&
|
|
|
|
|
!model.isAddExamInProgress
|
|
|
|
|
? TranslationBase.of(context).finish
|
|
|
|
|
: TranslationBase.of(context).next,
|
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
|
color: Colors.red[700]!,
|
|
|
|
|
// height: SizeConfig.heightMultiplier! *
|
|
|
|
|
@ -246,7 +260,9 @@ class _UpdateSoapIndexState extends State<UpdateSoapIndexVidaPlus> with TickerPr
|
|
|
|
|
),
|
|
|
|
|
Expanded(
|
|
|
|
|
child: AppButton(
|
|
|
|
|
title: model.isAddProgress ? TranslationBase.of(context).next : TranslationBase.of(context).finish,
|
|
|
|
|
title: model.isAddProgress
|
|
|
|
|
? TranslationBase.of(context).next
|
|
|
|
|
: TranslationBase.of(context).finish,
|
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
|
color: Colors.red[700]!,
|
|
|
|
|
disabled: model.progressNoteText.isEmpty,
|
|
|
|
|
|