WIP:add button added.

update_flutter_3.24_vida_plus_episode_v2
taha.alam 1 year ago
parent 1fbd511161
commit e3ccf398bc

@ -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()

@ -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();
},
),
),

Loading…
Cancel
Save