@ -28,321 +28,623 @@ class _ExaminationItemsState extends State<ExaminationItems> {
void initState ( ) {
/ / TODO: implement initState
super . initState ( ) ;
this . examinations = examinations ;
this . examinations = widget. examination;
}
@ override
Widget build ( BuildContext context ) {
ProjectViewModel projectViewModel = Provider . of ( context ) ;
return Column (
children: [
Expanded (
child: ListView . builder (
itemCount: examinations ? . length ? ? 0 ,
itemBuilder: ( context , index ) = > Column (
children: [
ListTileTheme (
horizontalTitleGap: 0 ,
child: CheckboxListTile (
activeColor: Color ( 0xFFD02127 ) ,
checkColor: Colors . white ,
contentPadding: EdgeInsets . zero ,
side: MaterialStateBorderSide . resolveWith (
return SingleChildScrollView (
child: Column (
children: examinations ? . map ( ( value ) = > Column (
children: [
ListTileTheme (
horizontalTitleGap: 0 ,
child: CheckboxListTile (
activeColor: Color ( 0xFFD02127 ) ,
checkColor: Colors . white ,
contentPadding: EdgeInsets . zero ,
side: MaterialStateBorderSide . resolveWith (
( Set < MaterialState > states ) {
if ( states . contains ( MaterialState . selected ) ) {
return const BorderSide ( color: Color ( 0xFFD02127 ) ) ;
}
return const BorderSide ( color: Color ( 0xFFE6E6E6 ) ) ;
} ,
) ,
shape: RoundedRectangleBorder (
borderRadius: BorderRadius . circular ( 16 ) ) ,
value: examinations ? [ index ] . isSelected ,
controlAffinity: ListTileControlAffinity . leading ,
onChanged: ( bool ? value ) {
setState ( ( ) {
examinations ? [ index ] . isSelected = value ? ? false ;
} ) ;
} ,
title: AppText (
examinations ! [ index ] . name ! ,
color: Color ( 0XFF575757 ) ,
fontSize: 14 ,
fontWeight: FontWeight . w400 ,
if ( states . contains ( MaterialState . selected ) ) {
return const BorderSide ( color: Color ( 0xFFD02127 ) ) ;
}
return const BorderSide ( color: Color ( 0xFFE6E6E6 ) ) ;
} ,
) ,
shape: RoundedRectangleBorder (
borderRadius: BorderRadius . circular ( 16 ) ) ,
value: value . isSelected ,
controlAffinity: ListTileControlAffinity . leading ,
onChanged: ( bool ? selected ) {
setState ( ( ) {
value ? . isSelected = selected ? ? false ;
} ) ;
} ,
title: AppText (
value . name ! ,
color: Color ( 0XFF575757 ) ,
fontSize: 14 ,
fontWeight: FontWeight . w400 ,
) ,
) ,
) ,
( value . isSelected = = true )
? Container (
padding: EdgeInsets . symmetric ( horizontal: 12 ) ,
child: Column (
crossAxisAlignment: CrossAxisAlignment . start ,
children: [
Container (
margin: EdgeInsets . only ( bottom: 8 ) ,
child: AppText (
TranslationBase . of ( context ) . condition ,
fontWeight: FontWeight . bold ,
fontFamily: ' Poppins ' ,
fontSize: SizeConfig . textMultiplier ! * 1.6 ,
) ,
) ,
) ,
( examinations ? [ index ] . isSelected = = true )
? Container (
padding: EdgeInsets . symmetric ( horizontal: 12 ) ,
child: Column (
crossAxisAlignment: CrossAxisAlignment . start ,
children: [
Container (
margin: EdgeInsets . only ( bottom: 8 ) ,
child: AppText (
TranslationBase . of ( context ) . condition ,
fontWeight: FontWeight . bold ,
fontFamily: ' Poppins ' ,
fontSize: SizeConfig . textMultiplier ! * 1.6 ,
SizedBox (
width: MediaQuery . sizeOf ( context ) . width ,
height: 24 ,
child: ListView . builder (
shrinkWrap: true ,
scrollDirection: Axis . horizontal ,
itemCount: value
. conditionsList
? . length ? ?
0 ,
itemBuilder: ( context , currentIndex ) = > InkWell (
onTap: ( ) {
setState ( ( ) {
value
. selectedCondition =
int . parse ( value
. conditionsList ? [
currentIndex ]
. conditionName ? ?
" -1 " ) ;
} ) ;
} ,
child: Row (
children: [
Container (
padding: EdgeInsets . all ( 2.0 ) ,
margin: EdgeInsets . symmetric (
horizontal: 6 ) ,
width: 20 ,
height: 20 ,
decoration: BoxDecoration (
color: Colors . white ,
shape: BoxShape . circle ,
border: Border . all (
color: Colors . grey , width: 1 ) ,
) ,
child: Container (
decoration: BoxDecoration (
color: value
. selectedCondition = =
int . parse ( value
. conditionsList ? [
currentIndex ]
. conditionName ? ?
" -1 " )
? HexColor ( " #D02127 " )
: Colors . white ,
shape: BoxShape . circle ,
) ,
) ,
) ,
) ,
SizedBox (
width: MediaQuery . sizeOf ( context ) . width ,
height: 24 ,
child: ListView . builder (
shrinkWrap: true ,
scrollDirection: Axis . horizontal ,
itemCount: examinations ? [ index ]
. conditionsList
? . length ? ?
0 ,
itemBuilder: ( context , currentIndex ) = > InkWell (
onTap: ( ) {
setState ( ( ) {
examinations ? [ index ]
. selectedCondition =
int . parse ( examinations ? [ index ]
. conditionsList ? [
currentIndex ]
. conditionName ? ?
" -1 " ) ;
} ) ;
} ,
child: Row (
children: [
Container (
padding: EdgeInsets . all ( 2.0 ) ,
margin: EdgeInsets . symmetric (
horizontal: 6 ) ,
width: 20 ,
height: 20 ,
decoration: BoxDecoration (
color: Colors . white ,
shape: BoxShape . circle ,
border: Border . all (
color: Colors . grey , width: 1 ) ,
) ,
child: Container (
decoration: BoxDecoration (
color: examinations ? [ index ]
. selectedCondition = =
int . parse ( examinations ? [
index ]
. conditionsList ? [
currentIndex ]
. conditionName ? ?
" -1 " )
? HexColor ( " #D02127 " )
: Colors . white ,
shape: BoxShape . circle ,
) ,
) ,
) ,
AppText (
examinations ? [ index ]
. conditionsList ? [
currentIndex ]
. conditionCode ? ?
' ' ,
fontWeight: FontWeight . normal ,
fontFamily: ' Poppins ' ,
fontSize:
SizeConfig . textMultiplier ! *
1.6 ,
) ,
] ,
) ,
) ) ,
) ,
/ / Row (
/ / children: [
/ / if ( examinations ? [ index ]
/ / . conditionsList ? . length = = 1 )
/ / Expanded (
/ / child: InkWell (
/ / onTap: ( ) {
/ / setState ( ( ) {
/ / examinations ? [ index ] . selectedCondition =
/ / int . parse ( examinations ? [ index ]
/ / . conditionsList ? [ 0 ]
/ / . conditionName ? ?
/ / " -1 " ) ;
/ / } ) ;
/ / } ,
/ / child: Row (
/ / children: [
/ / Container (
/ / padding: EdgeInsets . all ( 2.0 ) ,
/ / margin:
/ / EdgeInsets . symmetric ( horizontal: 6 ) ,
/ / width: 20 ,
/ / height: 20 ,
/ / decoration: BoxDecoration (
/ / color: Colors . white ,
/ / shape: BoxShape . circle ,
/ / border: Border . all (
/ / color: Colors . grey , width: 1 ) ,
/ / ) ,
/ / child: Container (
/ / decoration: BoxDecoration (
/ / color: examinations ? [ index ] . selectedCondition = =
/ / int . parse ( examinations ? [ index ]
/ / . conditionsList ? [ 0 ]
/ / . conditionName ? ?
/ / " -1 " )
/ / ? HexColor ( " #D02127 " )
/ / : Colors . white ,
/ / shape: BoxShape . circle ,
/ / ) ,
/ / ) ,
/ / ) ,
/ / AppText (
/ / examinations ? [ index ]
/ / . conditionsList ? [ 0 ]
/ / . conditionCode ? ?
/ / TranslationBase . of ( context ) . normal ,
/ / fontWeight: FontWeight . normal ,
/ / fontFamily: ' Poppins ' ,
/ / fontSize:
/ / SizeConfig . textMultiplier ! * 1.6 ,
/ / ) ,
/ / ] ,
/ / ) ,
/ / ) ) ,
/ / Expanded (
/ / child: InkWell (
/ / onTap: ( ) {
/ / setState ( ( ) {
/ / setState ( ( ) {
/ / examinations ? [ index ] . selectedCondition =
/ / int . parse ( examinations ? [ index ]
/ / . conditionsList ? [ 1 ]
/ / . conditionName ? ?
/ / " -1 " ) ;
/ / } ) ;
/ / } ) ;
/ / } ,
/ / child: Row (
/ / children: [
/ / Container (
/ / padding: EdgeInsets . all ( 2.0 ) ,
/ / margin:
/ / EdgeInsets . symmetric ( horizontal: 6 ) ,
/ / width: 20 ,
/ / height: 20 ,
/ / decoration: BoxDecoration (
/ / color: Colors . white ,
/ / shape: BoxShape . circle ,
/ / border: Border . all (
/ / color: Colors . grey , width: 1 ) ,
/ / ) ,
/ / child: Container (
/ / decoration: BoxDecoration (
/ / color: examinations ? [ index ] . selectedCondition = =
/ / int . parse ( examinations ? [ index ]
/ / . conditionsList ? [ 1 ]
/ / . conditionName ? ?
/ / " -1 " )
/ / ? HexColor ( " #D02127 " )
/ / : Colors . white ,
/ / shape: BoxShape . circle ,
/ / ) ,
/ / ) ,
/ / ) ,
/ / AppText (
/ / examinations ? [ index ]
/ / . conditionsList ? [ 1 ]
/ / . conditionCode ? ?
/ / TranslationBase . of ( context ) . abnormal ,
/ / fontWeight: FontWeight . normal ,
/ / fontFamily: ' Poppins ' ,
/ / fontSize:
/ / SizeConfig . textMultiplier ! * 1.6 ,
/ / ) ,
/ / ] ,
/ / ) ,
/ / ) ) ,
/ / Expanded (
/ / child: InkWell (
/ / onTap: ( ) {
/ / setState ( ( ) {
/ / setState ( ( ) {
/ / examinations ? [ index ] . selectedCondition =
/ / int . parse ( examinations ? [ index ]
/ / . conditionsList ? [ 2 ]
/ / . conditionName ? ?
/ / " -1 " ) ;
/ / } ) ;
/ / } ) ;
/ /
/ / } ,
/ / child: Row (
/ / children: [
/ / Container (
/ / padding: EdgeInsets . all ( 2.0 ) ,
/ / margin:
/ / EdgeInsets . symmetric ( horizontal: 6 ) ,
/ / width: 20 ,
/ / height: 20 ,
/ / decoration: BoxDecoration (
/ / color: Colors . white ,
/ / shape: BoxShape . circle ,
/ / border: Border . all (
/ / color: Colors . grey , width: 1 ) ,
/ / ) ,
/ / child: Container (
/ / decoration: BoxDecoration (
/ / color: examinations ? [ index ] . selectedCondition = =
/ / int . parse ( examinations ? [ index ]
/ / . conditionsList ? [ 2 ]
/ / . conditionName ? ?
/ / " -1 " )
/ / ? HexColor ( " #D02127 " )
/ / : Colors . white ,
/ / shape: BoxShape . circle ,
/ / ) ,
/ / ) ,
/ / ) ,
/ / Expanded (
/ / child: AppText (
/ / examinations ? [ index ]
/ / . conditionsList ? [ 2 ]
/ / . conditionCode ? ?
/ / TranslationBase . of ( context ) . notExamined ,
/ / fontWeight: FontWeight . normal ,
/ / fontFamily: ' Poppins ' ,
/ / fontSize:
/ / SizeConfig . textMultiplier ! * 1.6 ,
/ / ) ,
/ / ) ,
/ / ] ,
/ / ) ,
/ / ) ) ,
/ / ] ,
/ / ) ,
Container (
margin: EdgeInsets . only ( top: 8 ) ,
child: AppTextFieldCustom (
hintText: TranslationBase . of ( context ) . remarks ,
controller: examinations ? [ index ] . remarksController ,
minLines: 2 ,
maxLines: 4 ,
inputType: TextInputType . multiline ,
onChanged: ( value ) { } ,
onClick: ( ) { } ,
onFieldSubmitted: ( ) { } ,
AppText (
value
. conditionsList ? [
currentIndex ]
. conditionCode ? ?
' ' ,
fontWeight: FontWeight . normal ,
fontFamily: ' Poppins ' ,
fontSize:
SizeConfig . textMultiplier ! *
1.6 ,
) ,
) ,
] ,
) ,
)
: SizedBox . shrink ( ) ,
] ,
) ,
) ,
) ,
] ,
] ,
) ,
) ) ,
) ,
/ / Row (
/ / children: [
/ / if ( examinations ? [ index ]
/ / . conditionsList ? . length = = 1 )
/ / Expanded (
/ / child: InkWell (
/ / onTap: ( ) {
/ / setState ( ( ) {
/ / examinations ? [ index ] . selectedCondition =
/ / int . parse ( examinations ? [ index ]
/ / . conditionsList ? [ 0 ]
/ / . conditionName ? ?
/ / " -1 " ) ;
/ / } ) ;
/ / } ,
/ / child: Row (
/ / children: [
/ / Container (
/ / padding: EdgeInsets . all ( 2.0 ) ,
/ / margin:
/ / EdgeInsets . symmetric ( horizontal: 6 ) ,
/ / width: 20 ,
/ / height: 20 ,
/ / decoration: BoxDecoration (
/ / color: Colors . white ,
/ / shape: BoxShape . circle ,
/ / border: Border . all (
/ / color: Colors . grey , width: 1 ) ,
/ / ) ,
/ / child: Container (
/ / decoration: BoxDecoration (
/ / color: examinations ? [ index ] . selectedCondition = =
/ / int . parse ( examinations ? [ index ]
/ / . conditionsList ? [ 0 ]
/ / . conditionName ? ?
/ / " -1 " )
/ / ? HexColor ( " #D02127 " )
/ / : Colors . white ,
/ / shape: BoxShape . circle ,
/ / ) ,
/ / ) ,
/ / ) ,
/ / AppText (
/ / examinations ? [ index ]
/ / . conditionsList ? [ 0 ]
/ / . conditionCode ? ?
/ / TranslationBase . of ( context ) . normal ,
/ / fontWeight: FontWeight . normal ,
/ / fontFamily: ' Poppins ' ,
/ / fontSize:
/ / SizeConfig . textMultiplier ! * 1.6 ,
/ / ) ,
/ / ] ,
/ / ) ,
/ / ) ) ,
/ / Expanded (
/ / child: InkWell (
/ / onTap: ( ) {
/ / setState ( ( ) {
/ / setState ( ( ) {
/ / examinations ? [ index ] . selectedCondition =
/ / int . parse ( examinations ? [ index ]
/ / . conditionsList ? [ 1 ]
/ / . conditionName ? ?
/ / " -1 " ) ;
/ / } ) ;
/ / } ) ;
/ / } ,
/ / child: Row (
/ / children: [
/ / Container (
/ / padding: EdgeInsets . all ( 2.0 ) ,
/ / margin:
/ / EdgeInsets . symmetric ( horizontal: 6 ) ,
/ / width: 20 ,
/ / height: 20 ,
/ / decoration: BoxDecoration (
/ / color: Colors . white ,
/ / shape: BoxShape . circle ,
/ / border: Border . all (
/ / color: Colors . grey , width: 1 ) ,
/ / ) ,
/ / child: Container (
/ / decoration: BoxDecoration (
/ / color: examinations ? [ index ] . selectedCondition = =
/ / int . parse ( examinations ? [ index ]
/ / . conditionsList ? [ 1 ]
/ / . conditionName ? ?
/ / " -1 " )
/ / ? HexColor ( " #D02127 " )
/ / : Colors . white ,
/ / shape: BoxShape . circle ,
/ / ) ,
/ / ) ,
/ / ) ,
/ / AppText (
/ / examinations ? [ index ]
/ / . conditionsList ? [ 1 ]
/ / . conditionCode ? ?
/ / TranslationBase . of ( context ) . abnormal ,
/ / fontWeight: FontWeight . normal ,
/ / fontFamily: ' Poppins ' ,
/ / fontSize:
/ / SizeConfig . textMultiplier ! * 1.6 ,
/ / ) ,
/ / ] ,
/ / ) ,
/ / ) ) ,
/ / Expanded (
/ / child: InkWell (
/ / onTap: ( ) {
/ / setState ( ( ) {
/ / setState ( ( ) {
/ / examinations ? [ index ] . selectedCondition =
/ / int . parse ( examinations ? [ index ]
/ / . conditionsList ? [ 2 ]
/ / . conditionName ? ?
/ / " -1 " ) ;
/ / } ) ;
/ / } ) ;
/ /
/ / } ,
/ / child: Row (
/ / children: [
/ / Container (
/ / padding: EdgeInsets . all ( 2.0 ) ,
/ / margin:
/ / EdgeInsets . symmetric ( horizontal: 6 ) ,
/ / width: 20 ,
/ / height: 20 ,
/ / decoration: BoxDecoration (
/ / color: Colors . white ,
/ / shape: BoxShape . circle ,
/ / border: Border . all (
/ / color: Colors . grey , width: 1 ) ,
/ / ) ,
/ / child: Container (
/ / decoration: BoxDecoration (
/ / color: examinations ? [ index ] . selectedCondition = =
/ / int . parse ( examinations ? [ index ]
/ / . conditionsList ? [ 2 ]
/ / . conditionName ? ?
/ / " -1 " )
/ / ? HexColor ( " #D02127 " )
/ / : Colors . white ,
/ / shape: BoxShape . circle ,
/ / ) ,
/ / ) ,
/ / ) ,
/ / Expanded (
/ / child: AppText (
/ / examinations ? [ index ]
/ / . conditionsList ? [ 2 ]
/ / . conditionCode ? ?
/ / TranslationBase . of ( context ) . notExamined ,
/ / fontWeight: FontWeight . normal ,
/ / fontFamily: ' Poppins ' ,
/ / fontSize:
/ / SizeConfig . textMultiplier ! * 1.6 ,
/ / ) ,
/ / ) ,
/ / ] ,
/ / ) ,
/ / ) ) ,
/ / ] ,
/ / ) ,
Container (
margin: EdgeInsets . only ( top: 8 ) ,
child: AppTextFieldCustom (
hintText: TranslationBase . of ( context ) . remarks ,
controller: value . remarksController ,
minLines: 2 ,
maxLines: 4 ,
inputType: TextInputType . multiline ,
onChanged: ( value ) { } ,
onClick: ( ) { } ,
onFieldSubmitted: ( ) { } ,
) ,
) ,
] ,
) ,
)
: SizedBox . shrink ( ) ,
] ,
) , ) ? . toList ( ) ? ? [ ]
/ / Expanded (
/ / child: ListView . builder (
/ / shrinkWrap: true ,
/ / itemCount: examinations ? . length ? ? 0 ,
/ / itemBuilder: ( context , index ) = > Column (
/ / children: [
/ / ListTileTheme (
/ / horizontalTitleGap: 0 ,
/ / child: CheckboxListTile (
/ / activeColor: Color ( 0xFFD02127 ) ,
/ / checkColor: Colors . white ,
/ / contentPadding: EdgeInsets . zero ,
/ / side: MaterialStateBorderSide . resolveWith (
/ / ( Set < MaterialState > states ) {
/ / if ( states . contains ( MaterialState . selected ) ) {
/ / return const BorderSide ( color: Color ( 0xFFD02127 ) ) ;
/ / }
/ / return const BorderSide ( color: Color ( 0xFFE6E6E6 ) ) ;
/ / } ,
/ / ) ,
/ / shape: RoundedRectangleBorder (
/ / borderRadius: BorderRadius . circular ( 16 ) ) ,
/ / value: examinations ? [ index ] . isSelected ,
/ / controlAffinity: ListTileControlAffinity . leading ,
/ / onChanged: ( bool ? value ) {
/ / setState ( ( ) {
/ / examinations ? [ index ] . isSelected = value ? ? false ;
/ / } ) ;
/ / } ,
/ / title: AppText (
/ / examinations ! [ index ] . name ! ,
/ / color: Color ( 0XFF575757 ) ,
/ / fontSize: 14 ,
/ / fontWeight: FontWeight . w400 ,
/ / ) ,
/ / ) ,
/ / ) ,
/ / ( examinations ? [ index ] . isSelected = = true )
/ / ? Container (
/ / padding: EdgeInsets . symmetric ( horizontal: 12 ) ,
/ / child: Column (
/ / crossAxisAlignment: CrossAxisAlignment . start ,
/ / children: [
/ / Container (
/ / margin: EdgeInsets . only ( bottom: 8 ) ,
/ / child: AppText (
/ / TranslationBase . of ( context ) . condition ,
/ / fontWeight: FontWeight . bold ,
/ / fontFamily: ' Poppins ' ,
/ / fontSize: SizeConfig . textMultiplier ! * 1.6 ,
/ / ) ,
/ / ) ,
/ / SizedBox (
/ / width: MediaQuery . sizeOf ( context ) . width ,
/ / height: 24 ,
/ / child: ListView . builder (
/ / shrinkWrap: true ,
/ / scrollDirection: Axis . horizontal ,
/ / itemCount: examinations ? [ index ]
/ / . conditionsList
/ / ? . length ? ?
/ / 0 ,
/ / itemBuilder: ( context , currentIndex ) = > InkWell (
/ / onTap: ( ) {
/ / setState ( ( ) {
/ / examinations ? [ index ]
/ / . selectedCondition =
/ / int . parse ( examinations ? [ index ]
/ / . conditionsList ? [
/ / currentIndex ]
/ / . conditionName ? ?
/ / " -1 " ) ;
/ / } ) ;
/ / } ,
/ / child: Row (
/ / children: [
/ / Container (
/ / padding: EdgeInsets . all ( 2.0 ) ,
/ / margin: EdgeInsets . symmetric (
/ / horizontal: 6 ) ,
/ / width: 20 ,
/ / height: 20 ,
/ / decoration: BoxDecoration (
/ / color: Colors . white ,
/ / shape: BoxShape . circle ,
/ / border: Border . all (
/ / color: Colors . grey , width: 1 ) ,
/ / ) ,
/ / child: Container (
/ / decoration: BoxDecoration (
/ / color: examinations ? [ index ]
/ / . selectedCondition = =
/ / int . parse ( examinations ? [
/ / index ]
/ / . conditionsList ? [
/ / currentIndex ]
/ / . conditionName ? ?
/ / " -1 " )
/ / ? HexColor ( " #D02127 " )
/ / : Colors . white ,
/ / shape: BoxShape . circle ,
/ / ) ,
/ / ) ,
/ / ) ,
/ / AppText (
/ / examinations ? [ index ]
/ / . conditionsList ? [
/ / currentIndex ]
/ / . conditionCode ? ?
/ / ' ' ,
/ / fontWeight: FontWeight . normal ,
/ / fontFamily: ' Poppins ' ,
/ / fontSize:
/ / SizeConfig . textMultiplier ! *
/ / 1.6 ,
/ / ) ,
/ / ] ,
/ / ) ,
/ / ) ) ,
/ / ) ,
/ / / / Row (
/ / / / children: [
/ / / / if ( examinations ? [ index ]
/ / / / . conditionsList ? . length = = 1 )
/ / / / Expanded (
/ / / / child: InkWell (
/ / / / onTap: ( ) {
/ / / / setState ( ( ) {
/ / / / examinations ? [ index ] . selectedCondition =
/ / / / int . parse ( examinations ? [ index ]
/ / / / . conditionsList ? [ 0 ]
/ / / / . conditionName ? ?
/ / / / " -1 " ) ;
/ / / / } ) ;
/ / / / } ,
/ / / / child: Row (
/ / / / children: [
/ / / / Container (
/ / / / padding: EdgeInsets . all ( 2.0 ) ,
/ / / / margin:
/ / / / EdgeInsets . symmetric ( horizontal: 6 ) ,
/ / / / width: 20 ,
/ / / / height: 20 ,
/ / / / decoration: BoxDecoration (
/ / / / color: Colors . white ,
/ / / / shape: BoxShape . circle ,
/ / / / border: Border . all (
/ / / / color: Colors . grey , width: 1 ) ,
/ / / / ) ,
/ / / / child: Container (
/ / / / decoration: BoxDecoration (
/ / / / color: examinations ? [ index ] . selectedCondition = =
/ / / / int . parse ( examinations ? [ index ]
/ / / / . conditionsList ? [ 0 ]
/ / / / . conditionName ? ?
/ / / / " -1 " )
/ / / / ? HexColor ( " #D02127 " )
/ / / / : Colors . white ,
/ / / / shape: BoxShape . circle ,
/ / / / ) ,
/ / / / ) ,
/ / / / ) ,
/ / / / AppText (
/ / / / examinations ? [ index ]
/ / / / . conditionsList ? [ 0 ]
/ / / / . conditionCode ? ?
/ / / / TranslationBase . of ( context ) . normal ,
/ / / / fontWeight: FontWeight . normal ,
/ / / / fontFamily: ' Poppins ' ,
/ / / / fontSize:
/ / / / SizeConfig . textMultiplier ! * 1.6 ,
/ / / / ) ,
/ / / / ] ,
/ / / / ) ,
/ / / / ) ) ,
/ / / / Expanded (
/ / / / child: InkWell (
/ / / / onTap: ( ) {
/ / / / setState ( ( ) {
/ / / / setState ( ( ) {
/ / / / examinations ? [ index ] . selectedCondition =
/ / / / int . parse ( examinations ? [ index ]
/ / / / . conditionsList ? [ 1 ]
/ / / / . conditionName ? ?
/ / / / " -1 " ) ;
/ / / / } ) ;
/ / / / } ) ;
/ / / / } ,
/ / / / child: Row (
/ / / / children: [
/ / / / Container (
/ / / / padding: EdgeInsets . all ( 2.0 ) ,
/ / / / margin:
/ / / / EdgeInsets . symmetric ( horizontal: 6 ) ,
/ / / / width: 20 ,
/ / / / height: 20 ,
/ / / / decoration: BoxDecoration (
/ / / / color: Colors . white ,
/ / / / shape: BoxShape . circle ,
/ / / / border: Border . all (
/ / / / color: Colors . grey , width: 1 ) ,
/ / / / ) ,
/ / / / child: Container (
/ / / / decoration: BoxDecoration (
/ / / / color: examinations ? [ index ] . selectedCondition = =
/ / / / int . parse ( examinations ? [ index ]
/ / / / . conditionsList ? [ 1 ]
/ / / / . conditionName ? ?
/ / / / " -1 " )
/ / / / ? HexColor ( " #D02127 " )
/ / / / : Colors . white ,
/ / / / shape: BoxShape . circle ,
/ / / / ) ,
/ / / / ) ,
/ / / / ) ,
/ / / / AppText (
/ / / / examinations ? [ index ]
/ / / / . conditionsList ? [ 1 ]
/ / / / . conditionCode ? ?
/ / / / TranslationBase . of ( context ) . abnormal ,
/ / / / fontWeight: FontWeight . normal ,
/ / / / fontFamily: ' Poppins ' ,
/ / / / fontSize:
/ / / / SizeConfig . textMultiplier ! * 1.6 ,
/ / / / ) ,
/ / / / ] ,
/ / / / ) ,
/ / / / ) ) ,
/ / / / Expanded (
/ / / / child: InkWell (
/ / / / onTap: ( ) {
/ / / / setState ( ( ) {
/ / / / setState ( ( ) {
/ / / / examinations ? [ index ] . selectedCondition =
/ / / / int . parse ( examinations ? [ index ]
/ / / / . conditionsList ? [ 2 ]
/ / / / . conditionName ? ?
/ / / / " -1 " ) ;
/ / / / } ) ;
/ / / / } ) ;
/ / / /
/ / / / } ,
/ / / / child: Row (
/ / / / children: [
/ / / / Container (
/ / / / padding: EdgeInsets . all ( 2.0 ) ,
/ / / / margin:
/ / / / EdgeInsets . symmetric ( horizontal: 6 ) ,
/ / / / width: 20 ,
/ / / / height: 20 ,
/ / / / decoration: BoxDecoration (
/ / / / color: Colors . white ,
/ / / / shape: BoxShape . circle ,
/ / / / border: Border . all (
/ / / / color: Colors . grey , width: 1 ) ,
/ / / / ) ,
/ / / / child: Container (
/ / / / decoration: BoxDecoration (
/ / / / color: examinations ? [ index ] . selectedCondition = =
/ / / / int . parse ( examinations ? [ index ]
/ / / / . conditionsList ? [ 2 ]
/ / / / . conditionName ? ?
/ / / / " -1 " )
/ / / / ? HexColor ( " #D02127 " )
/ / / / : Colors . white ,
/ / / / shape: BoxShape . circle ,
/ / / / ) ,
/ / / / ) ,
/ / / / ) ,
/ / / / Expanded (
/ / / / child: AppText (
/ / / / examinations ? [ index ]
/ / / / . conditionsList ? [ 2 ]
/ / / / . conditionCode ? ?
/ / / / TranslationBase . of ( context ) . notExamined ,
/ / / / fontWeight: FontWeight . normal ,
/ / / / fontFamily: ' Poppins ' ,
/ / / / fontSize:
/ / / / SizeConfig . textMultiplier ! * 1.6 ,
/ / / / ) ,
/ / / / ) ,
/ / / / ] ,
/ / / / ) ,
/ / / / ) ) ,
/ / / / ] ,
/ / / / ) ,
/ / Container (
/ / margin: EdgeInsets . only ( top: 8 ) ,
/ / child: AppTextFieldCustom (
/ / hintText: TranslationBase . of ( context ) . remarks ,
/ / controller: examinations ? [ index ] . remarksController ,
/ / minLines: 2 ,
/ / maxLines: 4 ,
/ / inputType: TextInputType . multiline ,
/ / onChanged: ( value ) { } ,
/ / onClick: ( ) { } ,
/ / onFieldSubmitted: ( ) { } ,
/ / ) ,
/ / ) ,
/ / ] ,
/ / ) ,
/ / )
/ / : SizedBox . shrink ( ) ,
/ / ] ,
/ / ) ,
/ / ) ,
/ / ) ,
/ / ] ,
) ,
) ;
}
}