Skip to content

Commit 6c92909

Browse files
tddang-linagorahoangdat
authored andcommitted
Update Flutter to 3.27.4
1 parent da8608c commit 6c92909

File tree

6 files changed

+20
-18
lines changed

6 files changed

+20
-18
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
name: CI
44

55
env:
6-
FLUTTER_VERSION: 3.22.2
6+
FLUTTER_VERSION: 3.27.4
77

88
# Controls when the workflow will run
99
on:

lib/multiple_view_date_range_picker.dart

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class MultipleViewDateRangePicker extends StatefulWidget {
4242
final String? barrierLabel;
4343

4444
const MultipleViewDateRangePicker({
45-
Key? key,
45+
super.key,
4646
this.confirmText = 'Set date',
4747
this.cancelText = 'Cancel',
4848
this.startDateTitle = 'Start date',
@@ -64,7 +64,7 @@ class MultipleViewDateRangePicker extends StatefulWidget {
6464
this.usePointerInterceptor = true,
6565
this.barrierLabel,
6666
this.autoClose = true
67-
}) : super(key: key);
67+
});
6868

6969
@override
7070
State<MultipleViewDateRangePicker> createState() => _MultipleViewDateRangePickerState();
@@ -110,7 +110,9 @@ class _MultipleViewDateRangePickerState extends State<MultipleViewDateRangePicke
110110
.currentContext?.findRenderObject() as RenderBox?;
111111

112112
if (startAndEndDateInputTabletRenderBox == null
113-
|| bottomViewTabletConfirmationButtonsRenderBox == null) return;
113+
|| bottomViewTabletConfirmationButtonsRenderBox == null) {
114+
return;
115+
}
114116

115117
final startAndEndDateInputTabletWidth = startAndEndDateInputTabletRenderBox
116118
.size.width;
@@ -476,7 +478,7 @@ class _MultipleViewDateRangePickerState extends State<MultipleViewDateRangePicke
476478
);
477479
} else if (!_bottomViewTabletConfirmationButtonsOverflow) {
478480
return Padding(
479-
padding: EdgeInsets.all(_tabletDateRangePickerBottomPadding),
481+
padding: const EdgeInsets.all(_tabletDateRangePickerBottomPadding),
480482
child: Row(children: [
481483
_startAndEndDateInputFormTablet(context),
482484
const Spacer(),
@@ -485,7 +487,7 @@ class _MultipleViewDateRangePickerState extends State<MultipleViewDateRangePicke
485487
);
486488
} else {
487489
return Padding(
488-
padding: EdgeInsets.all(_tabletDateRangePickerBottomPadding),
490+
padding: const EdgeInsets.all(_tabletDateRangePickerBottomPadding),
489491
child: Column(
490492
children: [
491493
_startAndEndDateInputFormTablet(context),

lib/single_view_date_picker.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@ class SingleViewDatePicker extends StatelessWidget {
1818
final bool autoClose;
1919

2020
const SingleViewDatePicker({
21-
Key? key,
21+
super.key,
2222
this.title,
2323
this.currentDate,
2424
this.selectDateActionCallback,
2525
this.datePickerController,
2626
this.radius,
2727
this.autoClose = true
28-
}) : super(key: key);
28+
});
2929

3030
@override
3131
Widget build(BuildContext context) {

lib/widgets/responsive_builder.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ class ResponsiveWidget extends StatelessWidget {
88
final Widget? desktop;
99

1010
const ResponsiveWidget({
11-
Key? key,
11+
super.key,
1212
required this.mobile,
1313
this.tablet,
1414
this.tabletLarge,
1515
this.desktop,
16-
}) : super(key: key);
16+
});
1717

1818
@override
1919
Widget build(BuildContext context) {

lib/widgets/text_field_builder.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class TextFieldBuilder extends StatelessWidget {
1919
final List<TextInputFormatter>? inputFormatters;
2020

2121
const TextFieldBuilder({
22-
Key? key,
22+
super.key,
2323
this.onTextChange,
2424
this.onTextSubmitted,
2525
this.textStyle,
@@ -34,7 +34,7 @@ class TextFieldBuilder extends StatelessWidget {
3434
this.hintText,
3535
this.maxWidth,
3636
this.inputFormatters
37-
}) : super(key: key);
37+
});
3838

3939
@override
4040
Widget build(BuildContext context) {

lib/widgets/wrap_text_button.dart

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class WrapTextButton extends StatelessWidget {
1616
final VoidCallback? onTap;
1717

1818
const WrapTextButton(this.title, {
19-
Key? key,
19+
super.key,
2020
this.textStyle,
2121
this.backgroundColor = ColorsUtils.colorPrimary,
2222
this.textColor = Colors.white,
@@ -28,7 +28,7 @@ class WrapTextButton extends StatelessWidget {
2828
this.padding,
2929
this.margin,
3030
this.onTap
31-
}) : super(key: key);
31+
});
3232

3333
@override
3434
Widget build(BuildContext context) {
@@ -42,15 +42,15 @@ class WrapTextButton extends StatelessWidget {
4242
child: TextButton(
4343
onPressed: onTap,
4444
style: ButtonStyle(
45-
backgroundColor: MaterialStateProperty.resolveWith<Color>((Set<MaterialState> states) => backgroundColor),
46-
shape: MaterialStateProperty.all(RoundedRectangleBorder(
45+
backgroundColor: WidgetStateProperty.resolveWith<Color>((Set<WidgetState> states) => backgroundColor),
46+
shape: WidgetStateProperty.all(RoundedRectangleBorder(
4747
borderRadius: BorderRadius.circular(radius ?? 12),
4848
side: borderColor != null
4949
? BorderSide(width: 1, color: borderColor!)
5050
: BorderSide.none
5151
)),
52-
padding: MaterialStateProperty.resolveWith<EdgeInsets>((Set<MaterialState> states) => padding ?? const EdgeInsets.symmetric(vertical: 12)),
53-
elevation: MaterialStateProperty.resolveWith<double>((Set<MaterialState> states) => 0)),
52+
padding: WidgetStateProperty.resolveWith<EdgeInsets>((Set<WidgetState> states) => padding ?? const EdgeInsets.symmetric(vertical: 12)),
53+
elevation: WidgetStateProperty.resolveWith<double>((Set<WidgetState> states) => 0)),
5454
child: Text(title,
5555
maxLines: 1,
5656
overflow: TextOverflow.ellipsis,

0 commit comments

Comments
 (0)