WD: button name change and action on vida screen.

update_flutter_3.24_vida_plus_episode_MDS
taha.alam 11 months ago
parent c69ada4aa1
commit 09480bc994

@ -209,52 +209,49 @@ class StepsWidget extends StatelessWidget {
Positioned(
top: circleTop,
right: 0,
child: InkWell(
onTap: () => index >= 3 ? changeCurrentTab!(4) : null,
child: Column(
crossAxisAlignment: CrossAxisAlignment.end,
children: [
Container(
width: circleHeight,
height: circleHeight,
decoration: BoxDecoration(
border: index == 3
? Border.all(color: Color(0xFFCC9B14), width: 2)
: index > 3
? null
: Border.all(color: Color(0xFFCCCCCC), width: 0.75),
shape: BoxShape.circle,
color: index == 3
? Color(0xFFCC9B14)
: index > 3
? AppGlobal.appGreenColor
: Color(0xFFCCCCCC),
),
child: Center(
child: Icon(
FontAwesomeIcons.check,
size: 20,
color: Colors.white,
)),
),
SizedBox(
height: 5,
),
Column(
crossAxisAlignment: CrossAxisAlignment.center,
children: [
StepDetailsWidget(
stepLabel: "Plan",
marginLeft: 30,
),
StatusLabel(
selectedStepId: index,
stepId: 3,
),
],
child: Column(
crossAxisAlignment: CrossAxisAlignment.end,
children: [
Container(
width: circleHeight,
height: circleHeight,
decoration: BoxDecoration(
border: index == 3
? Border.all(color: Color(0xFFCC9B14), width: 2)
: index > 3
? null
: Border.all(color: Color(0xFFCCCCCC), width: 0.75),
shape: BoxShape.circle,
color: index == 3
? Color(0xFFCC9B14)
: index > 3
? AppGlobal.appGreenColor
: Color(0xFFCCCCCC),
),
],
),
child: Center(
child: Icon(
FontAwesomeIcons.check,
size: 20,
color: Colors.white,
)),
),
SizedBox(
height: 5,
),
Column(
crossAxisAlignment: CrossAxisAlignment.center,
children: [
StepDetailsWidget(
stepLabel: "Plan",
marginLeft: 30,
),
StatusLabel(
selectedStepId: index,
stepId: 3,
),
],
),
],
),
),
],

@ -365,7 +365,7 @@ class _EnterDiagnosisState extends State<EnterDiagnosis> {
children: [
Expanded(
child: AppButton(
title: TranslationBase.of(context).previous,
title: TranslationBase.of(context).cancelSmall,
color: Colors.grey[300]!,
fontColor: Colors.black,
fontWeight: FontWeight.w600,

@ -435,7 +435,7 @@ class _FavoriteDiagnosisState extends State<FavoriteDiagnosis> {
children: [
Expanded(
child: AppButton(
title: TranslationBase.of(context).previous,
title: TranslationBase.of(context).cancelSmall,
color: Colors.grey[300]!,
fontColor: Colors.black,
fontWeight: FontWeight.w600,

@ -1,3 +1,4 @@
import 'package:doctor_app_flutter/config/config.dart';
import 'package:doctor_app_flutter/config/size_config.dart';
import 'package:doctor_app_flutter/core/enum/view_state.dart';
import 'package:doctor_app_flutter/core/viewModel/SOAP_view_model.dart';
@ -287,15 +288,12 @@ class _UpdateSoapIndexVidaPlusState extends State<UpdateSoapIndexVidaPlus>
),
Expanded(
child: AppButton(
title: model.isAddProgress
? TranslationBase.of(context).next
: TranslationBase.of(context).finish,
title: TranslationBase.of(context).submit,
fontWeight: FontWeight.w600,
color: Colors.red[700]!,
color: AppGlobal.appGreenColor,
disabled: !model.isProgressAdded(),
onPressed: () async {
changePageViewIndex(3);
// model.nextOnPlanPage(model);
Navigator.pop(context);
},
),
),

Loading…
Cancel
Save