Skip to content

Commit

Permalink
Fix linter warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
bizz84 committed Nov 14, 2023
1 parent d34ece2 commit ca3534d
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 12 deletions.
4 changes: 2 additions & 2 deletions lib/src/common_widgets/date_time_picker.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ import 'package:starter_architecture_flutter_firebase/src/utils/format.dart';

class DateTimePicker extends StatelessWidget {
const DateTimePicker({
Key? key,
super.key,
required this.labelText,
required this.selectedDate,
required this.selectedTime,
this.onSelectedDate,
this.onSelectedTime,
}) : super(key: key);
});

final String labelText;
final DateTime selectedDate;
Expand Down
4 changes: 2 additions & 2 deletions lib/src/common_widgets/empty_content.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ import 'package:flutter/material.dart';

class EmptyContent extends StatelessWidget {
const EmptyContent({
Key? key,
super.key,
this.title = 'Nothing here',
this.message = 'Add a new item to get started',
}) : super(key: key);
});
final String title;
final String message;

Expand Down
4 changes: 2 additions & 2 deletions lib/src/common_widgets/input_dropdown.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ import 'package:flutter/material.dart';

class InputDropdown extends StatelessWidget {
const InputDropdown({
Key? key,
super.key,
this.labelText,
required this.valueText,
required this.valueStyle,
this.onPressed,
}) : super(key: key);
});

final String? labelText;
final String valueText;
Expand Down
4 changes: 2 additions & 2 deletions lib/src/common_widgets/list_items_builder.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ typedef ItemWidgetBuilder<T> = Widget Function(BuildContext context, T item);

class ListItemsBuilder<T> extends StatelessWidget {
const ListItemsBuilder({
Key? key,
super.key,
required this.data,
required this.itemBuilder,
}) : super(key: key);
});
final AsyncValue<List<T>> data;
final ItemWidgetBuilder<T> itemBuilder;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,7 @@ class JobsScreen extends StatelessWidget {
}

class JobListTile extends StatelessWidget {
const JobListTile({Key? key, required this.job, this.onTap})
: super(key: key);
const JobListTile({super.key, required this.job, this.onTap});
final Job job;
final VoidCallback? onTap;

Expand Down
2 changes: 1 addition & 1 deletion lib/src/utils/show_alert_dialog.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
part of alert_dialogs;
part of 'alert_dialogs.dart';

Future<bool?> showAlertDialog({
required BuildContext context,
Expand Down
2 changes: 1 addition & 1 deletion lib/src/utils/show_exception_alert_dialog.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
part of alert_dialogs;
part of 'alert_dialogs.dart';

Future<void> showExceptionAlertDialog({
required BuildContext context,
Expand Down

0 comments on commit ca3534d

Please sign in to comment.