From e3ccf398bc441ed0aaf50494ea97186ca6fa6fec Mon Sep 17 00:00:00 2001 From: "taha.alam" Date: Thu, 31 Oct 2024 11:21:31 +0300 Subject: [PATCH] WIP:add button added. --- .../subjective/chief_complaint/chief_complaints.dart | 4 ++-- .../chief_complaint/widgets/add_chief_complaint.dart | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/screens/patients/profile/soap_update_vida_plus/subjective/chief_complaint/chief_complaints.dart b/lib/screens/patients/profile/soap_update_vida_plus/subjective/chief_complaint/chief_complaints.dart index 465eb02d..bdfc0762 100644 --- a/lib/screens/patients/profile/soap_update_vida_plus/subjective/chief_complaint/chief_complaints.dart +++ b/lib/screens/patients/profile/soap_update_vida_plus/subjective/chief_complaint/chief_complaints.dart @@ -16,8 +16,8 @@ class UpdateChiefComplaints extends StatelessWidget { return Padding( padding: const EdgeInsets.all(12.0), child: Column(crossAxisAlignment: CrossAxisAlignment.start, children: [ - AddChiefComplaint( - onAddCheifComplaintClicked: () {}, + AddSoapItem( + onAddSoapItemClicked: () {}, ), if (complaints.isEmpty) ...{ EmptyComplaints() diff --git a/lib/screens/patients/profile/soap_update_vida_plus/subjective/chief_complaint/widgets/add_chief_complaint.dart b/lib/screens/patients/profile/soap_update_vida_plus/subjective/chief_complaint/widgets/add_chief_complaint.dart index e36e627f..66214d72 100644 --- a/lib/screens/patients/profile/soap_update_vida_plus/subjective/chief_complaint/widgets/add_chief_complaint.dart +++ b/lib/screens/patients/profile/soap_update_vida_plus/subjective/chief_complaint/widgets/add_chief_complaint.dart @@ -3,10 +3,10 @@ import 'package:doctor_app_flutter/widgets/shared/buttons/app_buttons_widget.dar import 'package:flutter/material.dart'; import 'package:flutter_svg/flutter_svg.dart'; -class AddChiefComplaint extends StatelessWidget{ - final VoidCallback onAddCheifComplaintClicked; +class AddSoapItem extends StatelessWidget{ + final VoidCallback onAddSoapItemClicked; - const AddChiefComplaint({super.key, required this.onAddCheifComplaintClicked}); + const AddSoapItem({super.key, required this.onAddSoapItemClicked}); @override Widget build(BuildContext context) { return Row( @@ -20,7 +20,7 @@ class AddChiefComplaint extends StatelessWidget{ fontWeight: FontWeight.w600, disabled: true, onPressed: () async { - onAddCheifComplaintClicked(); + onAddSoapItemClicked(); }, ), ),