add title for type of calendar you are in
This commit is contained in:
parent
a8e94071de
commit
a7b3e14b80
1 changed files with 15 additions and 7 deletions
|
|
@ -214,6 +214,14 @@ class _PatientAccessRequestState extends State<Appointments> {
|
|||
checkforchange();
|
||||
}
|
||||
|
||||
String getTitle() {
|
||||
if (widget.personalSelected == false) {
|
||||
return "Business Appointments";
|
||||
} else {
|
||||
return "Personal Appointments";
|
||||
}
|
||||
}
|
||||
|
||||
void checkforchange() {
|
||||
setState(() {
|
||||
if (widget.personalSelected == false) {
|
||||
|
|
@ -265,13 +273,13 @@ class _PatientAccessRequestState extends State<Appointments> {
|
|||
children: [
|
||||
Column(
|
||||
children: [
|
||||
// const Text(
|
||||
// "Appointments",
|
||||
// style: TextStyle(
|
||||
// fontWeight: FontWeight.bold,
|
||||
// fontSize: 25,
|
||||
// ),
|
||||
// ),
|
||||
Text(
|
||||
getTitle(),
|
||||
style: const TextStyle(
|
||||
fontWeight: FontWeight.bold,
|
||||
fontSize: 25,
|
||||
),
|
||||
),
|
||||
MIHCalendar(
|
||||
calendarWidth: 500,
|
||||
rowHeight: 35,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue