@@ -42,7 +42,7 @@ class MultipleViewDateRangePicker extends StatefulWidget {
42
42
final String ? barrierLabel;
43
43
44
44
const MultipleViewDateRangePicker ({
45
- Key ? key,
45
+ super . key,
46
46
this .confirmText = 'Set date' ,
47
47
this .cancelText = 'Cancel' ,
48
48
this .startDateTitle = 'Start date' ,
@@ -64,7 +64,7 @@ class MultipleViewDateRangePicker extends StatefulWidget {
64
64
this .usePointerInterceptor = true ,
65
65
this .barrierLabel,
66
66
this .autoClose = true
67
- }) : super (key : key) ;
67
+ });
68
68
69
69
@override
70
70
State <MultipleViewDateRangePicker > createState () => _MultipleViewDateRangePickerState ();
@@ -110,7 +110,9 @@ class _MultipleViewDateRangePickerState extends State<MultipleViewDateRangePicke
110
110
.currentContext? .findRenderObject () as RenderBox ? ;
111
111
112
112
if (startAndEndDateInputTabletRenderBox == null
113
- || bottomViewTabletConfirmationButtonsRenderBox == null ) return ;
113
+ || bottomViewTabletConfirmationButtonsRenderBox == null ) {
114
+ return ;
115
+ }
114
116
115
117
final startAndEndDateInputTabletWidth = startAndEndDateInputTabletRenderBox
116
118
.size.width;
@@ -476,7 +478,7 @@ class _MultipleViewDateRangePickerState extends State<MultipleViewDateRangePicke
476
478
);
477
479
} else if (! _bottomViewTabletConfirmationButtonsOverflow) {
478
480
return Padding (
479
- padding: EdgeInsets .all (_tabletDateRangePickerBottomPadding),
481
+ padding: const EdgeInsets .all (_tabletDateRangePickerBottomPadding),
480
482
child: Row (children: [
481
483
_startAndEndDateInputFormTablet (context),
482
484
const Spacer (),
@@ -485,7 +487,7 @@ class _MultipleViewDateRangePickerState extends State<MultipleViewDateRangePicke
485
487
);
486
488
} else {
487
489
return Padding (
488
- padding: EdgeInsets .all (_tabletDateRangePickerBottomPadding),
490
+ padding: const EdgeInsets .all (_tabletDateRangePickerBottomPadding),
489
491
child: Column (
490
492
children: [
491
493
_startAndEndDateInputFormTablet (context),
0 commit comments