From 3e90e49f0d3ab3678c601a431fa386a1c02088e0 Mon Sep 17 00:00:00 2001 From: Evan Cruz Date: Fri, 16 Jun 2023 15:41:45 -0700 Subject: [PATCH] Remove fixed height in month header and fix bug where previous month arrow was using the wrong padding variable --- lib/src/widgets/flutter_rounded_day_picker.dart | 1 - lib/src/widgets/flutter_rounded_month_picker.dart | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/src/widgets/flutter_rounded_day_picker.dart b/lib/src/widgets/flutter_rounded_day_picker.dart index b9c947e..53ff857 100644 --- a/lib/src/widgets/flutter_rounded_day_picker.dart +++ b/lib/src/widgets/flutter_rounded_day_picker.dart @@ -423,7 +423,6 @@ class FlutterRoundedDayPicker extends StatelessWidget { child: Column( children: [ Container( - height: 45, decoration: BoxDecoration( color: style?.backgroundHeaderMonth, borderRadius: orientation == Orientation.landscape diff --git a/lib/src/widgets/flutter_rounded_month_picker.dart b/lib/src/widgets/flutter_rounded_month_picker.dart index a25234f..eaee5ee 100644 --- a/lib/src/widgets/flutter_rounded_month_picker.dart +++ b/lib/src/widgets/flutter_rounded_month_picker.dart @@ -315,7 +315,7 @@ class _FlutterRoundedMonthPickerState extends State /// Arrow Left PositionedDirectional( - top: widget.style?.marginLeftArrowPrevious ?? 0.0, + top: widget.style?.marginTopArrowPrevious ?? 0.0, start: widget.style?.marginLeftArrowPrevious ?? 8.0, child: Semantics( sortKey: _MonthPickerSortKey.previousMonth,