|
|
|
|
@ -11,7 +11,6 @@ import 'package:mc_common_app/widgets/common_widgets/app_bar.dart';
|
|
|
|
|
import 'package:provider/provider.dart';
|
|
|
|
|
import 'package:easy_localization/easy_localization.dart';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class AppointmentDetailListPage extends StatelessWidget {
|
|
|
|
|
const AppointmentDetailListPage({Key? key}) : super(key: key);
|
|
|
|
|
|
|
|
|
|
@ -19,7 +18,7 @@ class AppointmentDetailListPage extends StatelessWidget {
|
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
|
return Scaffold(
|
|
|
|
|
appBar: CustomAppBar(
|
|
|
|
|
title:LocaleKeys.appointment_details.tr(),
|
|
|
|
|
title: LocaleKeys.appointment_details.tr(),
|
|
|
|
|
),
|
|
|
|
|
body: SizedBox(
|
|
|
|
|
width: double.infinity,
|
|
|
|
|
@ -55,14 +54,16 @@ class AppointmentDetailListPage extends StatelessWidget {
|
|
|
|
|
}
|
|
|
|
|
}),
|
|
|
|
|
),
|
|
|
|
|
ShowFillButton(
|
|
|
|
|
title: LocaleKeys.mergeAppointments.tr(),
|
|
|
|
|
maxWidth: double.infinity,
|
|
|
|
|
margin: const EdgeInsets.all(21),
|
|
|
|
|
onPressed: () {
|
|
|
|
|
navigateWithName(context, ProviderAppRoutes.mergeAppointments);
|
|
|
|
|
},
|
|
|
|
|
),
|
|
|
|
|
context.read<AppointmentsVM>().isShowMergeButton()
|
|
|
|
|
? ShowFillButton(
|
|
|
|
|
title: LocaleKeys.mergeAppointments.tr(),
|
|
|
|
|
maxWidth: double.infinity,
|
|
|
|
|
margin: const EdgeInsets.all(21),
|
|
|
|
|
onPressed: () {
|
|
|
|
|
navigateWithName(context, ProviderAppRoutes.mergeAppointments);
|
|
|
|
|
},
|
|
|
|
|
)
|
|
|
|
|
: SizedBox(),
|
|
|
|
|
],
|
|
|
|
|
)),
|
|
|
|
|
);
|
|
|
|
|
|