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();
super.initState();
Future.delayed(
const Duration(seconds: 3),
const Duration(seconds: 5),
() => Navigator.push(
context,
MaterialPageRoute(builder: (context) => _defaultHome),
@ -73,7 +73,7 @@ class _SplashScreenState extends State<SplashScreen> {
children: <Widget>[
Container(
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 dynamicCode = '';
String recordId = '';
String requestedDoctor = '';
String problemDoctorName = '';
String problem = '';
String problemCategory = '';
DynamicCodeModel();
@ -10,7 +14,11 @@ class DynamicCodeModel {
rtvm.doctorId = json['doctorId'] ?? '';
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;
}

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