diff --git a/lib/features/schedule/schedule_default/schedule_default.dart b/lib/features/schedule/schedule_default/schedule_default.dart index c583b8355..41030d6e9 100644 --- a/lib/features/schedule/schedule_default/schedule_default.dart +++ b/lib/features/schedule/schedule_default/schedule_default.dart @@ -79,8 +79,8 @@ class _ScheduleDefaultState extends State { weekNumberBuilder: (date) => null, headerStyle: const HeaderStyle( headerTextStyle: TextStyle(fontSize: 0), - leftIconVisible: false, - rightIconVisible: false, + leftIconConfig: null, + rightIconConfig: null, decoration: BoxDecoration(color: Colors.transparent)), heightPerMinute: heightPerMinute, eventTileBuilder: (date, events, boundary, startDuration, endDuration) => diff --git a/lib/features/schedule/schedule_view.dart b/lib/features/schedule/schedule_view.dart index dc6b6a8b7..abfdf0079 100644 --- a/lib/features/schedule/schedule_view.dart +++ b/lib/features/schedule/schedule_view.dart @@ -238,15 +238,19 @@ class _ScheduleViewState extends State decoration: BoxDecoration( color: backgroundColor, ), - leftIcon: Icon( - Icons.chevron_left, - size: 30, - color: chevronColor, + leftIconConfig: calendar_view.IconDataConfig( + icon: (context) => Icon( + Icons.chevron_left, + size: 30, + color: chevronColor + ), ), - rightIcon: Icon( - Icons.chevron_right, - size: 30, - color: chevronColor, + rightIconConfig: calendar_view.IconDataConfig( + icon: (context) => Icon( + Icons.chevron_left, + size: 30, + color: chevronColor + ), )), startDay: calendar_view.WeekDays.sunday, weekDays: [ @@ -323,16 +327,20 @@ class _ScheduleViewState extends State decoration: BoxDecoration( color: backgroundColor, ), - leftIcon: Icon( - Icons.chevron_left, - size: 30, - color: chevronColor, + leftIconConfig: calendar_view.IconDataConfig( + icon: (context) => Icon( + Icons.chevron_left, + size: 30, + color: chevronColor + ), + ), + rightIconConfig: calendar_view.IconDataConfig( + icon: (context) => Icon( + Icons.chevron_left, + size: 30, + color: chevronColor ), - rightIcon: Icon( - Icons.chevron_right, - size: 30, - color: chevronColor, - )), + )), weekDayStringBuilder: (p0) { return weekTitles[p0]; }, diff --git a/pubspec.lock b/pubspec.lock index f1c941a29..fe4f1c156 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -1440,7 +1440,7 @@ packages: source: hosted version: "2.2.2" url_launcher: - dependency: transitive + dependency: "direct main" description: name: url_launcher sha256: "9d06212b1362abc2f0f0d78e6f09f726608c74e3b9462e8368bb03314aa8d603" diff --git a/pubspec.yaml b/pubspec.yaml index 0288d3a54..f2d64f543 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -29,6 +29,7 @@ dependencies: # Web flutter_inappwebview: ^6.1.5 + url_launcher: ^6.3.1 # Utils logger: ^2.4.0