add title for type of calendar you are in
This commit is contained in:
@@ -214,6 +214,14 @@ class _PatientAccessRequestState extends State<Appointments> {
|
|||||||
checkforchange();
|
checkforchange();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
String getTitle() {
|
||||||
|
if (widget.personalSelected == false) {
|
||||||
|
return "Business Appointments";
|
||||||
|
} else {
|
||||||
|
return "Personal Appointments";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void checkforchange() {
|
void checkforchange() {
|
||||||
setState(() {
|
setState(() {
|
||||||
if (widget.personalSelected == false) {
|
if (widget.personalSelected == false) {
|
||||||
@@ -265,13 +273,13 @@ class _PatientAccessRequestState extends State<Appointments> {
|
|||||||
children: [
|
children: [
|
||||||
Column(
|
Column(
|
||||||
children: [
|
children: [
|
||||||
// const Text(
|
Text(
|
||||||
// "Appointments",
|
getTitle(),
|
||||||
// style: TextStyle(
|
style: const TextStyle(
|
||||||
// fontWeight: FontWeight.bold,
|
fontWeight: FontWeight.bold,
|
||||||
// fontSize: 25,
|
fontSize: 25,
|
||||||
// ),
|
),
|
||||||
// ),
|
),
|
||||||
MIHCalendar(
|
MIHCalendar(
|
||||||
calendarWidth: 500,
|
calendarWidth: 500,
|
||||||
rowHeight: 35,
|
rowHeight: 35,
|
||||||
|
|||||||
Reference in New Issue
Block a user