|
|
|
|
@ -1,3 +1,4 @@
|
|
|
|
|
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/widgets/shared/app_texts_widget.dart';
|
|
|
|
|
import 'package:flutter/cupertino.dart';
|
|
|
|
|
@ -76,11 +77,7 @@ class StepsWidget extends StatelessWidget {
|
|
|
|
|
Column(
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.start,
|
|
|
|
|
children: [
|
|
|
|
|
AppText(
|
|
|
|
|
"Subjective",
|
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
|
fontSize: 12,
|
|
|
|
|
),
|
|
|
|
|
StepWidget(stepLabel: "Subjective",),
|
|
|
|
|
StatusLabel(
|
|
|
|
|
selectedStepId: index,
|
|
|
|
|
stepId: 0,
|
|
|
|
|
@ -132,11 +129,7 @@ class StepsWidget extends StatelessWidget {
|
|
|
|
|
Column(
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.start,
|
|
|
|
|
children: [
|
|
|
|
|
AppText(
|
|
|
|
|
"Objective",
|
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
|
fontSize: 12,
|
|
|
|
|
),
|
|
|
|
|
StepWidget(stepLabel: "Objective",),
|
|
|
|
|
StatusLabel(
|
|
|
|
|
selectedStepId: index,
|
|
|
|
|
stepId: 1,
|
|
|
|
|
@ -152,7 +145,7 @@ class StepsWidget extends StatelessWidget {
|
|
|
|
|
left: MediaQuery
|
|
|
|
|
.of(context)
|
|
|
|
|
.size
|
|
|
|
|
.width * 0.50,
|
|
|
|
|
.width * 0.47,
|
|
|
|
|
child: InkWell(
|
|
|
|
|
onTap: () {
|
|
|
|
|
if (index >= 3) changeCurrentTab(2);
|
|
|
|
|
@ -190,11 +183,7 @@ class StepsWidget extends StatelessWidget {
|
|
|
|
|
Column(
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.start,
|
|
|
|
|
children: [
|
|
|
|
|
AppText(
|
|
|
|
|
"Assessment",
|
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
|
fontSize: 12,
|
|
|
|
|
),
|
|
|
|
|
StepWidget(stepLabel: "Assessment",),
|
|
|
|
|
StatusLabel(
|
|
|
|
|
selectedStepId: index,
|
|
|
|
|
stepId: 2,
|
|
|
|
|
@ -243,13 +232,7 @@ class StepsWidget extends StatelessWidget {
|
|
|
|
|
Column(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
|
|
children: [
|
|
|
|
|
AppText(
|
|
|
|
|
"Plan",
|
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
|
fontSize: 12,
|
|
|
|
|
textAlign: TextAlign.end,
|
|
|
|
|
marginLeft: 30,
|
|
|
|
|
),
|
|
|
|
|
StepWidget(stepLabel: "Plan",marginLeft: 30,),
|
|
|
|
|
StatusLabel(
|
|
|
|
|
selectedStepId: index,
|
|
|
|
|
stepId: 3,
|
|
|
|
|
@ -506,6 +489,25 @@ class StepsWidget extends StatelessWidget {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
class StepWidget extends StatelessWidget {
|
|
|
|
|
final String stepLabel;
|
|
|
|
|
final double marginLeft;
|
|
|
|
|
|
|
|
|
|
const StepWidget({
|
|
|
|
|
Key key, this.stepLabel, this.marginLeft = 0,
|
|
|
|
|
}) : super(key: key);
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
|
return AppText(
|
|
|
|
|
stepLabel,
|
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
|
marginLeft: marginLeft,
|
|
|
|
|
fontSize:SizeConfig.getTextMultiplierBasedOnWidth() * 3.5 //12,
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
class StatusLabel extends StatelessWidget {
|
|
|
|
|
const StatusLabel({
|
|
|
|
|
Key key,
|
|
|
|
|
@ -519,7 +521,7 @@ class StatusLabel extends StatelessWidget {
|
|
|
|
|
@override
|
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
|
return Container(
|
|
|
|
|
width: 65,
|
|
|
|
|
width: SizeConfig.getTextMultiplierBasedOnWidth() * 18.5,
|
|
|
|
|
padding: EdgeInsets.symmetric(horizontal: 2, vertical: 3),
|
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
|
color: stepId == selectedStepId
|
|
|
|
|
@ -541,7 +543,7 @@ class StatusLabel extends StatelessWidget {
|
|
|
|
|
: "Locked",
|
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
|
textAlign: TextAlign.center,
|
|
|
|
|
fontSize: 10,
|
|
|
|
|
fontSize: SizeConfig.getTextMultiplierBasedOnWidth() * 3,
|
|
|
|
|
color: stepId == selectedStepId
|
|
|
|
|
? Color(0xFFCC9B14)
|
|
|
|
|
: stepId < selectedStepId
|
|
|
|
|
|