Skip to content

Commit ca3534d

Browse files
committed
Fix linter warnings
1 parent d34ece2 commit ca3534d

File tree

7 files changed

+11
-12
lines changed

7 files changed

+11
-12
lines changed

lib/src/common_widgets/date_time_picker.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ import 'package:starter_architecture_flutter_firebase/src/utils/format.dart';
77

88
class DateTimePicker extends StatelessWidget {
99
const DateTimePicker({
10-
Key? key,
10+
super.key,
1111
required this.labelText,
1212
required this.selectedDate,
1313
required this.selectedTime,
1414
this.onSelectedDate,
1515
this.onSelectedTime,
16-
}) : super(key: key);
16+
});
1717

1818
final String labelText;
1919
final DateTime selectedDate;

lib/src/common_widgets/empty_content.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ import 'package:flutter/material.dart';
22

33
class EmptyContent extends StatelessWidget {
44
const EmptyContent({
5-
Key? key,
5+
super.key,
66
this.title = 'Nothing here',
77
this.message = 'Add a new item to get started',
8-
}) : super(key: key);
8+
});
99
final String title;
1010
final String message;
1111

lib/src/common_widgets/input_dropdown.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ import 'package:flutter/material.dart';
22

33
class InputDropdown extends StatelessWidget {
44
const InputDropdown({
5-
Key? key,
5+
super.key,
66
this.labelText,
77
required this.valueText,
88
required this.valueStyle,
99
this.onPressed,
10-
}) : super(key: key);
10+
});
1111

1212
final String? labelText;
1313
final String valueText;

lib/src/common_widgets/list_items_builder.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ typedef ItemWidgetBuilder<T> = Widget Function(BuildContext context, T item);
66

77
class ListItemsBuilder<T> extends StatelessWidget {
88
const ListItemsBuilder({
9-
Key? key,
9+
super.key,
1010
required this.data,
1111
required this.itemBuilder,
12-
}) : super(key: key);
12+
});
1313
final AsyncValue<List<T>> data;
1414
final ItemWidgetBuilder<T> itemBuilder;
1515

lib/src/features/jobs/presentation/jobs_screen/jobs_screen.dart

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,7 @@ class JobsScreen extends StatelessWidget {
6565
}
6666

6767
class JobListTile extends StatelessWidget {
68-
const JobListTile({Key? key, required this.job, this.onTap})
69-
: super(key: key);
68+
const JobListTile({super.key, required this.job, this.onTap});
7069
final Job job;
7170
final VoidCallback? onTap;
7271

lib/src/utils/show_alert_dialog.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
part of alert_dialogs;
1+
part of 'alert_dialogs.dart';
22

33
Future<bool?> showAlertDialog({
44
required BuildContext context,

lib/src/utils/show_exception_alert_dialog.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
part of alert_dialogs;
1+
part of 'alert_dialogs.dart';
22

33
Future<void> showExceptionAlertDialog({
44
required BuildContext context,

0 commit comments

Comments
 (0)