dynamic code functionality completed

master
Sneha 1 year ago
parent 2c637d3d89
commit def23ffdc0

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 MiB

@ -60,7 +60,7 @@ class _SplashScreenState extends State<SplashScreen> {
loginCheck(); loginCheck();
super.initState(); super.initState();
Future.delayed( Future.delayed(
const Duration(seconds: 3), const Duration(seconds: 5),
() => Navigator.push( () => Navigator.push(
context, context,
MaterialPageRoute(builder: (context) => _defaultHome), MaterialPageRoute(builder: (context) => _defaultHome),
@ -73,7 +73,7 @@ class _SplashScreenState extends State<SplashScreen> {
children: <Widget>[ children: <Widget>[
Container( Container(
decoration: const BoxDecoration( decoration: const BoxDecoration(
image: DecorationImage(image: AssetImage("images/splashscreen.png"), fit: BoxFit.fill,), image: DecorationImage(image: AssetImage("images/splash_screen_new.gif"), fit: BoxFit.fill,),
), ),
), ),

@ -2,6 +2,10 @@ class DynamicCodeModel {
String doctorId = ''; String doctorId = '';
String dynamicCode = ''; String dynamicCode = '';
String recordId = ''; String recordId = '';
String requestedDoctor = '';
String problemDoctorName = '';
String problem = '';
String problemCategory = '';
DynamicCodeModel(); DynamicCodeModel();
@ -10,7 +14,11 @@ class DynamicCodeModel {
rtvm.doctorId = json['doctorId'] ?? ''; rtvm.doctorId = json['doctorId'] ?? '';
rtvm.dynamicCode= json['dynamicCode']??''; rtvm.dynamicCode= json['dynamicCode']??'';
rtvm.recordId= json['recordId']??''; rtvm.requestedDoctor=json['doctorDetails']['doctorName']??'';
rtvm.problem=json['recordDetails']['problem']??'';
rtvm.problemDoctorName=json['recordDetails']['doctorName']??'';
rtvm.problemCategory=json['recordDetails']['problemCategory']??'';
rtvm.recordId= json['recordDetails']['recordId']??'';
return rtvm; return rtvm;
} }

@ -101,67 +101,141 @@ class _DynamicCodeState extends State<DynamicCode> {
Container( Container(
child: Row( child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [ children: [
Column( Row(
mainAxisAlignment: MainAxisAlignment.start,
crossAxisAlignment: CrossAxisAlignment.start,
children: [ children: [
Text( Column(
'Doctor Id', mainAxisAlignment: MainAxisAlignment.start,
style: labelTextStyle(), crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(
'Requested Doctor',
style: labelTextStyle(),
),
SizedBox(height:MediaQuery.of(context).size.height * .01,),
Text(
'Dynamic code',
style: labelTextStyle(),
),
SizedBox(height:MediaQuery.of(context).size.height * .01,),
Text(
'Record Id',
style: labelTextStyle(),
),
],
), ),
SizedBox(height:MediaQuery.of(context).size.height * .01,), SizedBox(width:MediaQuery.of(context).size.width * .01,),
Text( Column(
'Dynamic code', mainAxisAlignment: MainAxisAlignment.start,
style: labelTextStyle(), crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(
':',
style: labelTextStyle(),
),
SizedBox(height:MediaQuery.of(context).size.height * .01,),
Text(
':',
style: labelTextStyle(),
),
SizedBox(height:MediaQuery.of(context).size.height * .01,),
Text(
':',
style: labelTextStyle(),
),
],
), ),
SizedBox(height:MediaQuery.of(context).size.height * .01,), SizedBox(width:MediaQuery.of(context).size.width * .01,),
Text( Column(
'Record Id', mainAxisAlignment: MainAxisAlignment.start,
style: labelTextStyle(), crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text('Dr. '+originalList[index].requestedDoctor.toString().toUpperCase(),style: valuesTextStyle()),
SizedBox(height:MediaQuery.of(context).size.height * .01,),
Text(
originalList[index].dynamicCode,
style: valuesTextStyle(),
),
SizedBox(height:MediaQuery.of(context).size.height * .01,),
Text(
originalList[index].recordId,
style: valuesTextStyle(),
),
],
), ),
], ],
), ),
SizedBox(width:MediaQuery.of(context).size.width * .01,), SizedBox(height:MediaQuery.of(context).size.height * .01,),
Column( Text('Problem Details',style: problemTextStyle(),),
mainAxisAlignment: MainAxisAlignment.start, SizedBox(height:MediaQuery.of(context).size.height * .01,),
crossAxisAlignment: CrossAxisAlignment.start, Row(
children: [ children: [
Text( Column(
':', mainAxisAlignment: MainAxisAlignment.start,
style: labelTextStyle(), crossAxisAlignment: CrossAxisAlignment.start,
), children: [
SizedBox(height:MediaQuery.of(context).size.height * .01,), Text(
Text( 'Problem',
':', style: labelTextStyle(),
style: labelTextStyle(), ),
SizedBox(height:MediaQuery.of(context).size.height * .01,),
Text(
'Doctor Name',
style: labelTextStyle(),
),
SizedBox(height:MediaQuery.of(context).size.height * .01,),
Text(
'Problem Category',
style: labelTextStyle(),
),
],
), ),
SizedBox(height:MediaQuery.of(context).size.height * .01,), SizedBox(width:MediaQuery.of(context).size.width * .01,),
Text( Column(
':', mainAxisAlignment: MainAxisAlignment.start,
style: labelTextStyle(), crossAxisAlignment: CrossAxisAlignment.start,
), children: [
Text(
':',
], style: labelTextStyle(),
), ),
SizedBox(width:MediaQuery.of(context).size.width * .01,), SizedBox(height:MediaQuery.of(context).size.height * .01,),
Column( Text(
mainAxisAlignment: MainAxisAlignment.start, ':',
crossAxisAlignment: CrossAxisAlignment.start, style: labelTextStyle(),
children: [ ),
Text(originalList[index].doctorId.toString().toUpperCase(),style: valuesTextStyle()), SizedBox(height:MediaQuery.of(context).size.height * .01,),
SizedBox(height:MediaQuery.of(context).size.height * .01,), Text(
Text( ':',
originalList[index].dynamicCode, style: labelTextStyle(),
style: valuesTextStyle(), ),
],
), ),
SizedBox(height:MediaQuery.of(context).size.height * .01,), SizedBox(width:MediaQuery.of(context).size.width * .01,),
Text( Column(
originalList[index].recordId, mainAxisAlignment: MainAxisAlignment.start,
style: valuesTextStyle(), crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(originalList[index].problem.toString().toUpperCase(),style: valuesTextStyle()),
SizedBox(height:MediaQuery.of(context).size.height * .01,),
Text(
'Dr. '+originalList[index].problemDoctorName.toUpperCase(),
style: valuesTextStyle(),
),
SizedBox(height:MediaQuery.of(context).size.height * .01,),
Text(
originalList[index].problemCategory.toUpperCase(),
style: valuesTextStyle(),
),
],
), ),
], ],
), ),

Loading…
Cancel
Save