|
|
|
|
@ -11,6 +11,7 @@ import 'package:doctor_app_flutter/models/patient/patient_model.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/routes.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/screens/base/base_view.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/screens/patients/patient_search/patient_search_header.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/util/helpers.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/util/translations_delegate_base.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/widgets/patients/patient_card/PatientCard.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/widgets/shared/app_scaffold_widget.dart';
|
|
|
|
|
@ -105,7 +106,7 @@ class _OutPatientsScreenState extends State<OutPatientsScreen> {
|
|
|
|
|
children: [
|
|
|
|
|
Container(
|
|
|
|
|
// color: Colors.red,
|
|
|
|
|
height: screenSize.height * 0.070,
|
|
|
|
|
height: Helpers.getTabHeight(context),
|
|
|
|
|
decoration: TextFieldsUtils.containerBorderDecoration(
|
|
|
|
|
Color(0Xffffffff), Color(0xFFCCCCCC),
|
|
|
|
|
borderRadius: 4, borderWidth: 0),
|
|
|
|
|
@ -143,52 +144,24 @@ class _OutPatientsScreenState extends State<OutPatientsScreen> {
|
|
|
|
|
child: Center(
|
|
|
|
|
child: Container(
|
|
|
|
|
height: screenSize.height * 0.070,
|
|
|
|
|
decoration:
|
|
|
|
|
TextFieldsUtils.containerBorderDecoration(
|
|
|
|
|
_isActive
|
|
|
|
|
? Color(0xFFD02127 /*B8382B*/)
|
|
|
|
|
: Color(0xFFEAEAEA),
|
|
|
|
|
_isActive
|
|
|
|
|
? Color(0xFFD02127)
|
|
|
|
|
: Color(0xFFEAEAEA),
|
|
|
|
|
borderRadius: 4,
|
|
|
|
|
borderWidth: 0),
|
|
|
|
|
decoration: Helpers.getBoxTabsBoxDecoration(
|
|
|
|
|
isActive: _isActive,
|
|
|
|
|
isFirst: _times.indexOf(item) == 0,
|
|
|
|
|
isLast:
|
|
|
|
|
_times.indexOf(item) == _times.length - 1,
|
|
|
|
|
isMiddle: _times.indexOf(item) != 0 && _times.indexOf(item) != _times.length - 1
|
|
|
|
|
|
|
|
|
|
),
|
|
|
|
|
child: Center(
|
|
|
|
|
child: Row(
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
|
children: [
|
|
|
|
|
AppText(
|
|
|
|
|
item,
|
|
|
|
|
fontSize: SizeConfig.textMultiplier * 1.8,
|
|
|
|
|
color: _isActive
|
|
|
|
|
? Colors.white
|
|
|
|
|
: Color(0xFF2B353E),
|
|
|
|
|
fontWeight: FontWeight.w700,
|
|
|
|
|
),
|
|
|
|
|
Helpers.getTabText(title: item, isActive: _isActive),
|
|
|
|
|
_isActive &&
|
|
|
|
|
_activeLocation != 0 &&
|
|
|
|
|
model.state == ViewState.Idle
|
|
|
|
|
? Container(
|
|
|
|
|
padding: EdgeInsets.all(2),
|
|
|
|
|
margin: EdgeInsets.symmetric(
|
|
|
|
|
horizontal: 5),
|
|
|
|
|
decoration: new BoxDecoration(
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
borderRadius:
|
|
|
|
|
BorderRadius.circular(50),
|
|
|
|
|
),
|
|
|
|
|
constraints: BoxConstraints(
|
|
|
|
|
minWidth: 20,
|
|
|
|
|
minHeight: 20,
|
|
|
|
|
),
|
|
|
|
|
child: new Text(
|
|
|
|
|
model.filterData.length.toString(),
|
|
|
|
|
style: new TextStyle(
|
|
|
|
|
color: Colors.red,
|
|
|
|
|
fontSize: 10),
|
|
|
|
|
textAlign: TextAlign.center,
|
|
|
|
|
),
|
|
|
|
|
)
|
|
|
|
|
? Helpers.getTabCounter(isActive:_isActive,counter: model.filterData.length)
|
|
|
|
|
|
|
|
|
|
: Container(),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
@ -245,7 +218,6 @@ class _OutPatientsScreenState extends State<OutPatientsScreen> {
|
|
|
|
|
},
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
|
|
|
|
|
Expanded(
|
|
|
|
|
child: Container(
|
|
|
|
|
child: model.filterData.isEmpty
|
|
|
|
|
@ -267,7 +239,8 @@ class _OutPatientsScreenState extends State<OutPatientsScreen> {
|
|
|
|
|
.patientStatusType ==
|
|
|
|
|
43))
|
|
|
|
|
return Padding(
|
|
|
|
|
padding: EdgeInsets.symmetric(horizontal: 8, vertical: 0),
|
|
|
|
|
padding: EdgeInsets.symmetric(
|
|
|
|
|
horizontal: 8, vertical: 0),
|
|
|
|
|
child: PatientCard(
|
|
|
|
|
patientInfo: model.filterData[index],
|
|
|
|
|
patientType: patientType,
|
|
|
|
|
|