|
|
|
@ -1,6 +1,7 @@
|
|
|
|
import 'dart:ui';
|
|
|
|
import 'dart:ui';
|
|
|
|
|
|
|
|
|
|
|
|
import 'package:doctor_app_flutter/config/size_config.dart';
|
|
|
|
import 'package:doctor_app_flutter/config/size_config.dart';
|
|
|
|
|
|
|
|
import 'package:doctor_app_flutter/core/viewModel/project_view_model.dart';
|
|
|
|
import 'package:doctor_app_flutter/screens/patients/patient_search/patient_search_header.dart';
|
|
|
|
import 'package:doctor_app_flutter/screens/patients/patient_search/patient_search_header.dart';
|
|
|
|
import 'package:doctor_app_flutter/screens/patients/profile/referral/referred-patient-screen.dart';
|
|
|
|
import 'package:doctor_app_flutter/screens/patients/profile/referral/referred-patient-screen.dart';
|
|
|
|
import 'package:doctor_app_flutter/util/helpers.dart';
|
|
|
|
import 'package:doctor_app_flutter/util/helpers.dart';
|
|
|
|
@ -10,6 +11,7 @@ import 'package:doctor_app_flutter/widgets/shared/app_texts_widget.dart';
|
|
|
|
import 'package:doctor_app_flutter/widgets/shared/text_fields/text_fields_utils.dart';
|
|
|
|
import 'package:doctor_app_flutter/widgets/shared/text_fields/text_fields_utils.dart';
|
|
|
|
import 'package:flutter/cupertino.dart';
|
|
|
|
import 'package:flutter/cupertino.dart';
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
|
|
|
import 'package:provider/provider.dart';
|
|
|
|
|
|
|
|
|
|
|
|
import '../../ReferralDischargedPatientPage.dart';
|
|
|
|
import '../../ReferralDischargedPatientPage.dart';
|
|
|
|
import 'my-referral-inpatient-screen.dart';
|
|
|
|
import 'my-referral-inpatient-screen.dart';
|
|
|
|
@ -45,6 +47,8 @@ class _PatientReferralScreen extends State<PatientReferralScreen>
|
|
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
|
|
|
|
ProjectViewModel projectsProvider = Provider.of<ProjectViewModel>(context);
|
|
|
|
|
|
|
|
|
|
|
|
return AppScaffold(
|
|
|
|
return AppScaffold(
|
|
|
|
isShowAppBar: true,
|
|
|
|
isShowAppBar: true,
|
|
|
|
appBar: PatientSearchHeader(
|
|
|
|
appBar: PatientSearchHeader(
|
|
|
|
@ -75,7 +79,7 @@ class _PatientReferralScreen extends State<PatientReferralScreen>
|
|
|
|
tabs: [
|
|
|
|
tabs: [
|
|
|
|
Container(
|
|
|
|
Container(
|
|
|
|
decoration: Helpers.getBoxTabsBoxDecoration(
|
|
|
|
decoration: Helpers.getBoxTabsBoxDecoration(
|
|
|
|
isActive: index == 0, isFirst: true),
|
|
|
|
isActive: index == 0, isFirst: true, projectViewModel:projectsProvider ),
|
|
|
|
child: Center(
|
|
|
|
child: Center(
|
|
|
|
child: Helpers.getTabText(title:TranslationBase.of(context).myReferredPatient, isActive:index == 0 )
|
|
|
|
child: Helpers.getTabText(title:TranslationBase.of(context).myReferredPatient, isActive:index == 0 )
|
|
|
|
),
|
|
|
|
),
|
|
|
|
@ -83,7 +87,7 @@ class _PatientReferralScreen extends State<PatientReferralScreen>
|
|
|
|
Center(
|
|
|
|
Center(
|
|
|
|
child: Container(
|
|
|
|
child: Container(
|
|
|
|
decoration:Helpers.getBoxTabsBoxDecoration(
|
|
|
|
decoration:Helpers.getBoxTabsBoxDecoration(
|
|
|
|
isActive: index == 1, isMiddle: true),
|
|
|
|
isActive: index == 1, isMiddle: true, projectViewModel:projectsProvider ),
|
|
|
|
child: Center(
|
|
|
|
child: Center(
|
|
|
|
child:Helpers.getTabText(title:TranslationBase.of(context).referral, isActive:index == 1 )
|
|
|
|
child:Helpers.getTabText(title:TranslationBase.of(context).referral, isActive:index == 1 )
|
|
|
|
),
|
|
|
|
),
|
|
|
|
@ -92,7 +96,7 @@ class _PatientReferralScreen extends State<PatientReferralScreen>
|
|
|
|
Center(
|
|
|
|
Center(
|
|
|
|
child: Container(
|
|
|
|
child: Container(
|
|
|
|
decoration:Helpers.getBoxTabsBoxDecoration(
|
|
|
|
decoration:Helpers.getBoxTabsBoxDecoration(
|
|
|
|
isActive: index == 2, isLast: true),
|
|
|
|
isActive: index == 2, isLast: true, projectViewModel:projectsProvider ),
|
|
|
|
child: Center(
|
|
|
|
child: Center(
|
|
|
|
child: Helpers.getTabText(title:TranslationBase.of(context).discharged, isActive:index == 2 ),
|
|
|
|
child: Helpers.getTabText(title:TranslationBase.of(context).discharged, isActive:index == 2 ),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|