|
|
|
@ -1,4 +1,7 @@
|
|
|
|
|
|
|
|
import 'package:doctor_app_flutter/config/size_config.dart';
|
|
|
|
|
|
|
|
import 'package:doctor_app_flutter/core/viewModel/SOAP_view_model.dart';
|
|
|
|
import 'package:doctor_app_flutter/core/viewModel/patient_view_model.dart';
|
|
|
|
import 'package:doctor_app_flutter/core/viewModel/patient_view_model.dart';
|
|
|
|
|
|
|
|
import 'package:doctor_app_flutter/models/SOAP/PostEpisodeReqModel.dart';
|
|
|
|
import 'package:doctor_app_flutter/models/patient/patiant_info_model.dart';
|
|
|
|
import 'package:doctor_app_flutter/models/patient/patiant_info_model.dart';
|
|
|
|
import 'package:doctor_app_flutter/screens/base/base_view.dart';
|
|
|
|
import 'package:doctor_app_flutter/screens/base/base_view.dart';
|
|
|
|
import 'package:doctor_app_flutter/util/translations_delegate_base.dart';
|
|
|
|
import 'package:doctor_app_flutter/util/translations_delegate_base.dart';
|
|
|
|
@ -7,6 +10,10 @@ import 'package:doctor_app_flutter/widgets/patients/profile/patient-profile-head
|
|
|
|
import 'package:doctor_app_flutter/widgets/patients/profile/patient-profile-header-new-design.dart';
|
|
|
|
import 'package:doctor_app_flutter/widgets/patients/profile/patient-profile-header-new-design.dart';
|
|
|
|
import 'package:doctor_app_flutter/widgets/patients/profile/patient-profile-header-new-design_in_patient.dart';
|
|
|
|
import 'package:doctor_app_flutter/widgets/patients/profile/patient-profile-header-new-design_in_patient.dart';
|
|
|
|
import 'package:doctor_app_flutter/widgets/shared/app_scaffold_widget.dart';
|
|
|
|
import 'package:doctor_app_flutter/widgets/shared/app_scaffold_widget.dart';
|
|
|
|
|
|
|
|
import 'package:doctor_app_flutter/widgets/shared/app_texts_widget.dart';
|
|
|
|
|
|
|
|
import 'package:doctor_app_flutter/widgets/shared/buttons/app_buttons_widget.dart';
|
|
|
|
|
|
|
|
import 'package:doctor_app_flutter/widgets/shared/loader/gif_loader_dialog_utils.dart';
|
|
|
|
|
|
|
|
import 'package:doctor_app_flutter/widgets/shared/text_fields/text_fields_utils.dart';
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
import '../../../routes.dart';
|
|
|
|
import '../../../routes.dart';
|
|
|
|
|
|
|
|
|
|
|
|
@ -29,6 +36,8 @@ class _PatientProfileScreenState extends State<PatientProfileScreen>with SingleT
|
|
|
|
String from;
|
|
|
|
String from;
|
|
|
|
String to;
|
|
|
|
String to;
|
|
|
|
TabController _tabController;
|
|
|
|
TabController _tabController;
|
|
|
|
|
|
|
|
int index = 0;
|
|
|
|
|
|
|
|
int _activeTab = 0;
|
|
|
|
@override
|
|
|
|
@override
|
|
|
|
void initState() {
|
|
|
|
void initState() {
|
|
|
|
_tabController = TabController(length: 2,vsync:this);
|
|
|
|
_tabController = TabController(length: 2,vsync:this);
|
|
|
|
@ -59,70 +68,123 @@ class _PatientProfileScreenState extends State<PatientProfileScreen>with SingleT
|
|
|
|
isDischargedPatient = routeArgs['isDischargedPatient'];
|
|
|
|
isDischargedPatient = routeArgs['isDischargedPatient'];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if(isInpatient)
|
|
|
|
if(isInpatient)
|
|
|
|
_tabController.index =0;
|
|
|
|
_activeTab = 0;
|
|
|
|
else
|
|
|
|
else
|
|
|
|
_tabController.index = 1;
|
|
|
|
_activeTab = 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
|
|
|
|
final screenSize = MediaQuery.of(context).size;
|
|
|
|
return BaseView<PatientViewModel>(
|
|
|
|
return BaseView<PatientViewModel>(
|
|
|
|
builder: (_, patientViewModel, w) => AppScaffold(
|
|
|
|
builder: (_, patientViewModel, w) => AppScaffold(
|
|
|
|
baseViewModel: patientViewModel,
|
|
|
|
baseViewModel: patientViewModel,
|
|
|
|
appBarTitle: TranslationBase.of(context).patientProfile,
|
|
|
|
appBarTitle: TranslationBase.of(context).patientProfile,
|
|
|
|
isShowAppBar: true,
|
|
|
|
isShowAppBar: false,//TODO fix button location
|
|
|
|
appBar: PatientProfileHeaderNewDesignAppBar(patient,arrivalType??'0',patientType,isInpatient: isInpatient,),
|
|
|
|
// appBar: PatientProfileHeaderNewDesignAppBar(patient,arrivalType??'0',patientType,isInpatient: isInpatient,),
|
|
|
|
body: SingleChildScrollView(
|
|
|
|
body: SingleChildScrollView(
|
|
|
|
child: isFromSearch ?Column(
|
|
|
|
child: Container(
|
|
|
|
|
|
|
|
child: Column(
|
|
|
|
|
|
|
|
children: [
|
|
|
|
|
|
|
|
Stack(
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
DefaultTabController(
|
|
|
|
PatientProfileHeaderNewDesignAppBar(patient,arrivalType??'0',patientType,isInpatient: isInpatient, height: (patient.patientStatusType != null && patient.patientStatusType == 43)?250:0,),
|
|
|
|
length: 2,
|
|
|
|
if (patient.patientStatusType != null &&
|
|
|
|
initialIndex: isInpatient ? 0 : 1,
|
|
|
|
patient.patientStatusType == 43)
|
|
|
|
child: SizedBox(
|
|
|
|
BaseView<SOAPViewModel>(
|
|
|
|
height: MediaQuery.of(context).size.height * 1.0,
|
|
|
|
onModelReady: (model) async {},
|
|
|
|
width: double.infinity,
|
|
|
|
builder: (_, model, w) => Positioned(
|
|
|
|
child: Scaffold(
|
|
|
|
top: 175,
|
|
|
|
appBar: AppBar(
|
|
|
|
left: 20,
|
|
|
|
backgroundColor: Colors.white,
|
|
|
|
right: 20,
|
|
|
|
automaticallyImplyLeading: false,
|
|
|
|
child: Row(
|
|
|
|
toolbarHeight: 65,
|
|
|
|
children: [
|
|
|
|
elevation: 0,
|
|
|
|
Expanded(child: Container()),
|
|
|
|
bottom: TabBar(
|
|
|
|
if (patient.episodeNo == 0)
|
|
|
|
controller: _tabController,
|
|
|
|
AppButton(
|
|
|
|
indicator: BoxDecoration(
|
|
|
|
title:
|
|
|
|
shape: BoxShape.rectangle,
|
|
|
|
"${TranslationBase.of(context).createNew}\n${TranslationBase.of(context).episode}",
|
|
|
|
borderRadius: BorderRadius.circular(10), // Creates border
|
|
|
|
color: patient.patientStatusType == 43
|
|
|
|
color: Color(0xffD02126),
|
|
|
|
? Colors.red.shade700
|
|
|
|
|
|
|
|
: Colors.grey.shade700,
|
|
|
|
|
|
|
|
fontColor: Colors.white,
|
|
|
|
|
|
|
|
vPadding: 8,
|
|
|
|
|
|
|
|
radius: 30,
|
|
|
|
|
|
|
|
hPadding: 20,
|
|
|
|
|
|
|
|
fontWeight: FontWeight.normal,
|
|
|
|
|
|
|
|
fontSize: 1.6,
|
|
|
|
|
|
|
|
icon: Image.asset(
|
|
|
|
|
|
|
|
"assets/images/create-episod.png",
|
|
|
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
|
|
|
height: 30,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
indicatorColor: Colors.red[500],
|
|
|
|
onPressed: () async {
|
|
|
|
unselectedLabelColor: Color(0xff5A6168),
|
|
|
|
if (patient.patientStatusType == 43) {
|
|
|
|
labelColor: Colors.white,
|
|
|
|
PostEpisodeReqModel
|
|
|
|
tabs: <Widget>[
|
|
|
|
postEpisodeReqModel =
|
|
|
|
Container(
|
|
|
|
PostEpisodeReqModel(
|
|
|
|
width: MediaQuery.of(context).size.width * 0.35,
|
|
|
|
appointmentNo:
|
|
|
|
height: MediaQuery.of(context).size.height * 0.06,
|
|
|
|
patient.appointmentNo,
|
|
|
|
child: Center(
|
|
|
|
patientMRN:
|
|
|
|
child: Text('Inpatient Info'),
|
|
|
|
patient.patientMRN);
|
|
|
|
|
|
|
|
GifLoaderDialogUtils.showMyDialog(
|
|
|
|
|
|
|
|
context);
|
|
|
|
|
|
|
|
await model.postEpisode(
|
|
|
|
|
|
|
|
postEpisodeReqModel);
|
|
|
|
|
|
|
|
GifLoaderDialogUtils.hideDialog(
|
|
|
|
|
|
|
|
context);
|
|
|
|
|
|
|
|
patient.episodeNo = model.episodeID;
|
|
|
|
|
|
|
|
Navigator.of(context).pushNamed(
|
|
|
|
|
|
|
|
CREATE_EPISODE,
|
|
|
|
|
|
|
|
arguments: {
|
|
|
|
|
|
|
|
'patient': patient
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|
|
|
|
if (patient.episodeNo != 0)
|
|
|
|
|
|
|
|
AppButton(
|
|
|
|
|
|
|
|
title:
|
|
|
|
|
|
|
|
"${TranslationBase.of(context).update}\n${TranslationBase.of(context).episode}",
|
|
|
|
|
|
|
|
color: patient.patientStatusType == 43
|
|
|
|
|
|
|
|
? Colors.red.shade700
|
|
|
|
|
|
|
|
: Colors.grey.shade700,
|
|
|
|
|
|
|
|
fontColor: Colors.white,
|
|
|
|
|
|
|
|
vPadding: 8,
|
|
|
|
|
|
|
|
radius: 30,
|
|
|
|
|
|
|
|
hPadding: 20,
|
|
|
|
|
|
|
|
fontWeight: FontWeight.normal,
|
|
|
|
|
|
|
|
fontSize: 1.6,
|
|
|
|
|
|
|
|
icon: Image.asset(
|
|
|
|
|
|
|
|
"assets/images/modilfy-episode.png",
|
|
|
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
|
|
|
height: 30,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
Container(
|
|
|
|
onPressed: () {
|
|
|
|
width: MediaQuery.of(context).size.width * 0.35,
|
|
|
|
if (patient.patientStatusType ==
|
|
|
|
height: MediaQuery.of(context).size.height * 0.06,
|
|
|
|
43) {
|
|
|
|
child: Center(
|
|
|
|
Navigator.of(context).pushNamed(
|
|
|
|
child: Text('OutPatient Info'),
|
|
|
|
UPDATE_EPISODE,
|
|
|
|
),
|
|
|
|
arguments: {
|
|
|
|
|
|
|
|
'patient': patient
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}),
|
|
|
|
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
]),
|
|
|
|
)),
|
|
|
|
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
body: Container(
|
|
|
|
Container(
|
|
|
|
margin: EdgeInsets.only(top: 10),
|
|
|
|
child: isFromSearch ?Column(
|
|
|
|
child: Padding(
|
|
|
|
|
|
|
|
padding: const EdgeInsets.symmetric(vertical: 15.0,horizontal: 15),
|
|
|
|
|
|
|
|
child: TabBarView(
|
|
|
|
|
|
|
|
physics: BouncingScrollPhysics(),
|
|
|
|
|
|
|
|
controller: _tabController,
|
|
|
|
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
GridView.count(
|
|
|
|
|
|
|
|
|
|
|
|
tabsBar(context,screenSize),
|
|
|
|
|
|
|
|
SizedBox(height: 10,),
|
|
|
|
|
|
|
|
if(_activeTab==0)
|
|
|
|
|
|
|
|
Padding(
|
|
|
|
|
|
|
|
padding: const EdgeInsets.symmetric(vertical: 15.0,horizontal: 15),
|
|
|
|
|
|
|
|
child: GridView.count(
|
|
|
|
shrinkWrap: true,
|
|
|
|
shrinkWrap: true,
|
|
|
|
physics: NeverScrollableScrollPhysics(),
|
|
|
|
physics: NeverScrollableScrollPhysics(),
|
|
|
|
crossAxisSpacing: 10,
|
|
|
|
crossAxisSpacing: 10,
|
|
|
|
@ -165,6 +227,7 @@ class _PatientProfileScreenState extends State<PatientProfileScreen>with SingleT
|
|
|
|
patientType: patientType,
|
|
|
|
patientType: patientType,
|
|
|
|
arrivalType: arrivalType,
|
|
|
|
arrivalType: arrivalType,
|
|
|
|
route: ORDER_PRESCRIPTION_NEW,
|
|
|
|
route: ORDER_PRESCRIPTION_NEW,
|
|
|
|
|
|
|
|
isSelectInpatient: _activeTab==0,
|
|
|
|
isInPatient: isInpatient,
|
|
|
|
isInPatient: isInpatient,
|
|
|
|
nameLine1: TranslationBase.of(context).patient,
|
|
|
|
nameLine1: TranslationBase.of(context).patient,
|
|
|
|
nameLine2: TranslationBase.of(context).prescription,
|
|
|
|
nameLine2: TranslationBase.of(context).prescription,
|
|
|
|
@ -224,6 +287,7 @@ class _PatientProfileScreenState extends State<PatientProfileScreen>with SingleT
|
|
|
|
arrivalType: arrivalType,
|
|
|
|
arrivalType: arrivalType,
|
|
|
|
route: REFER_IN_PATIENT_TO_DOCTOR,
|
|
|
|
route: REFER_IN_PATIENT_TO_DOCTOR,
|
|
|
|
isInPatient: true,
|
|
|
|
isInPatient: true,
|
|
|
|
|
|
|
|
isDisable: isDischargedPatient|| isFromSearch,
|
|
|
|
nameLine1: TranslationBase.of(context).referral,
|
|
|
|
nameLine1: TranslationBase.of(context).referral,
|
|
|
|
nameLine2: TranslationBase.of(context).patient,
|
|
|
|
nameLine2: TranslationBase.of(context).patient,
|
|
|
|
icon: 'patient/refer_patient.png'),
|
|
|
|
icon: 'patient/refer_patient.png'),
|
|
|
|
@ -257,8 +321,11 @@ class _PatientProfileScreenState extends State<PatientProfileScreen>with SingleT
|
|
|
|
icon: 'patient/patient_sick_leave.png'),
|
|
|
|
icon: 'patient/patient_sick_leave.png'),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
GridView.count(
|
|
|
|
if(_activeTab==1)
|
|
|
|
|
|
|
|
Padding(
|
|
|
|
|
|
|
|
padding: const EdgeInsets.symmetric(vertical: 15.0,horizontal: 15),
|
|
|
|
|
|
|
|
child: GridView.count(
|
|
|
|
shrinkWrap: true,
|
|
|
|
shrinkWrap: true,
|
|
|
|
physics: NeverScrollableScrollPhysics(),
|
|
|
|
physics: NeverScrollableScrollPhysics(),
|
|
|
|
crossAxisSpacing: 10,
|
|
|
|
crossAxisSpacing: 10,
|
|
|
|
@ -399,16 +466,12 @@ class _PatientProfileScreenState extends State<PatientProfileScreen>with SingleT
|
|
|
|
|
|
|
|
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
):isInpatient?GridView.count(
|
|
|
|
):isInpatient?
|
|
|
|
|
|
|
|
Padding(
|
|
|
|
|
|
|
|
padding: const EdgeInsets.symmetric(vertical: 15.0,horizontal: 15),
|
|
|
|
|
|
|
|
child: GridView.count(
|
|
|
|
shrinkWrap: true,
|
|
|
|
shrinkWrap: true,
|
|
|
|
physics: NeverScrollableScrollPhysics(),
|
|
|
|
physics: NeverScrollableScrollPhysics(),
|
|
|
|
crossAxisSpacing: 10,
|
|
|
|
crossAxisSpacing: 10,
|
|
|
|
@ -451,6 +514,7 @@ class _PatientProfileScreenState extends State<PatientProfileScreen>with SingleT
|
|
|
|
patientType: patientType,
|
|
|
|
patientType: patientType,
|
|
|
|
arrivalType: arrivalType,
|
|
|
|
arrivalType: arrivalType,
|
|
|
|
route: ORDER_PRESCRIPTION_NEW,
|
|
|
|
route: ORDER_PRESCRIPTION_NEW,
|
|
|
|
|
|
|
|
isSelectInpatient :true,
|
|
|
|
nameLine1: TranslationBase.of(context).patient,
|
|
|
|
nameLine1: TranslationBase.of(context).patient,
|
|
|
|
nameLine2: TranslationBase.of(context).prescription,
|
|
|
|
nameLine2: TranslationBase.of(context).prescription,
|
|
|
|
icon: 'patient/order_prescription.png'),
|
|
|
|
icon: 'patient/order_prescription.png'),
|
|
|
|
@ -511,6 +575,7 @@ class _PatientProfileScreenState extends State<PatientProfileScreen>with SingleT
|
|
|
|
arrivalType: arrivalType,
|
|
|
|
arrivalType: arrivalType,
|
|
|
|
route: REFER_IN_PATIENT_TO_DOCTOR,
|
|
|
|
route: REFER_IN_PATIENT_TO_DOCTOR,
|
|
|
|
isInPatient: true,
|
|
|
|
isInPatient: true,
|
|
|
|
|
|
|
|
isDisable: isDischargedPatient|| isFromSearch,
|
|
|
|
nameLine1: TranslationBase.of(context).referral,
|
|
|
|
nameLine1: TranslationBase.of(context).referral,
|
|
|
|
nameLine2: TranslationBase.of(context).patient,
|
|
|
|
nameLine2: TranslationBase.of(context).patient,
|
|
|
|
icon: 'patient/refer_patient.png'),
|
|
|
|
icon: 'patient/refer_patient.png'),
|
|
|
|
@ -542,7 +607,13 @@ class _PatientProfileScreenState extends State<PatientProfileScreen>with SingleT
|
|
|
|
nameLine2: TranslationBase.of(context).leave,
|
|
|
|
nameLine2: TranslationBase.of(context).leave,
|
|
|
|
icon: 'patient/patient_sick_leave.png'),
|
|
|
|
icon: 'patient/patient_sick_leave.png'),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
):GridView.count(
|
|
|
|
),
|
|
|
|
|
|
|
|
):
|
|
|
|
|
|
|
|
Column(
|
|
|
|
|
|
|
|
children: [
|
|
|
|
|
|
|
|
Padding(
|
|
|
|
|
|
|
|
padding: const EdgeInsets.symmetric(vertical: 15.0,horizontal: 15),
|
|
|
|
|
|
|
|
child: GridView.count(
|
|
|
|
shrinkWrap: true,
|
|
|
|
shrinkWrap: true,
|
|
|
|
physics: NeverScrollableScrollPhysics(),
|
|
|
|
physics: NeverScrollableScrollPhysics(),
|
|
|
|
crossAxisSpacing: 10,
|
|
|
|
crossAxisSpacing: 10,
|
|
|
|
@ -608,6 +679,7 @@ class _PatientProfileScreenState extends State<PatientProfileScreen>with SingleT
|
|
|
|
patientType: patientType,
|
|
|
|
patientType: patientType,
|
|
|
|
arrivalType: arrivalType,
|
|
|
|
arrivalType: arrivalType,
|
|
|
|
route: ORDER_PRESCRIPTION_NEW,
|
|
|
|
route: ORDER_PRESCRIPTION_NEW,
|
|
|
|
|
|
|
|
isSelectInpatient: false,
|
|
|
|
nameLine1: TranslationBase.of(context).orders,
|
|
|
|
nameLine1: TranslationBase.of(context).orders,
|
|
|
|
nameLine2: TranslationBase.of(context).prescription,
|
|
|
|
nameLine2: TranslationBase.of(context).prescription,
|
|
|
|
icon: 'patient/order_prescription.png'),
|
|
|
|
icon: 'patient/order_prescription.png'),
|
|
|
|
@ -684,8 +756,70 @@ class _PatientProfileScreenState extends State<PatientProfileScreen>with SingleT
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
));
|
|
|
|
));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Widget tabsBar(
|
|
|
|
|
|
|
|
BuildContext context, Size screenSize ) {
|
|
|
|
|
|
|
|
List<String> _tabs = [
|
|
|
|
|
|
|
|
"Inpatient Info".toUpperCase(),
|
|
|
|
|
|
|
|
"Outpatient Info".toUpperCase(),
|
|
|
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return Container(
|
|
|
|
|
|
|
|
height: screenSize.height * 0.070,
|
|
|
|
|
|
|
|
decoration: TextFieldsUtils.containerBorderDecoration(
|
|
|
|
|
|
|
|
Color(0Xffffffff), Color(0xFFCCCCCC),
|
|
|
|
|
|
|
|
borderRadius: 4, borderWidth: 0),
|
|
|
|
|
|
|
|
child: Row(
|
|
|
|
|
|
|
|
mainAxisSize: MainAxisSize.max,
|
|
|
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
|
|
|
|
|
children: _tabs.map((item) {
|
|
|
|
|
|
|
|
bool _isActive = _tabs[_activeTab] == item ? true : false;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return Expanded(
|
|
|
|
|
|
|
|
child: InkWell(
|
|
|
|
|
|
|
|
onTap: () async {
|
|
|
|
|
|
|
|
setState(() {
|
|
|
|
|
|
|
|
_activeTab = _tabs.indexOf(item);
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
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),
|
|
|
|
|
|
|
|
child: Center(
|
|
|
|
|
|
|
|
child: AppText(
|
|
|
|
|
|
|
|
item,
|
|
|
|
|
|
|
|
fontSize: SizeConfig.textMultiplier * 1.8,
|
|
|
|
|
|
|
|
color: _isActive ? Colors.white : Color(0xFF2B353E),
|
|
|
|
|
|
|
|
fontWeight: FontWeight.w700,
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
}).toList(),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
class AvatarWidget extends StatelessWidget {
|
|
|
|
class AvatarWidget extends StatelessWidget {
|
|
|
|
@ -710,3 +844,5 @@ class AvatarWidget extends StatelessWidget {
|
|
|
|
);
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|