|
|
|
|
@ -34,16 +34,15 @@ class DoctorProfilePage extends StatelessWidget {
|
|
|
|
|
Expanded(
|
|
|
|
|
child: CollapsingListView(
|
|
|
|
|
title: LocaleKeys.doctorProfile.tr(),
|
|
|
|
|
trailing: Consumer<BookAppointmentsViewModel>(
|
|
|
|
|
trailing: appState.isAuthenticated ? Consumer<BookAppointmentsViewModel>(
|
|
|
|
|
builder: (context, viewModel, child) {
|
|
|
|
|
return SizedBox(
|
|
|
|
|
width: 24.h,
|
|
|
|
|
height: 24.h,
|
|
|
|
|
child: Utils.buildSvgWithAssets(
|
|
|
|
|
icon: viewModel.isFavouriteDoctor ? AppAssets.bookmark_filled_icon : AppAssets.bookmark_icon,
|
|
|
|
|
width: 24.h,
|
|
|
|
|
height: 24.h,
|
|
|
|
|
iconColor: viewModel.isFavouriteDoctor ? AppColors.primaryRedColor : AppColors.textColor,
|
|
|
|
|
child: Icon(
|
|
|
|
|
viewModel.isFavouriteDoctor ? Icons.bookmark : Icons.bookmark_border_outlined,
|
|
|
|
|
size: 36.h,
|
|
|
|
|
color: viewModel.isFavouriteDoctor ? AppColors.primaryRedColor : AppColors.textColor,
|
|
|
|
|
).onPress(() async {
|
|
|
|
|
viewModel.toggleFavouriteDoctor();
|
|
|
|
|
await viewModel.insertFavouriteDoctor(
|
|
|
|
|
@ -68,7 +67,7 @@ class DoctorProfilePage extends StatelessWidget {
|
|
|
|
|
}),
|
|
|
|
|
);
|
|
|
|
|
},
|
|
|
|
|
),
|
|
|
|
|
) : SizedBox.shrink(),
|
|
|
|
|
child: SingleChildScrollView(
|
|
|
|
|
child: Column(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
|