Skip to content

Commit

Permalink
Fix super.key
Browse files Browse the repository at this point in the history
  • Loading branch information
nielsenko committed Nov 16, 2023
1 parent 36621d3 commit b3fc386
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion example/lib/ui/edit_task_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import 'task_hero.dart';
class EditTaskPage extends StatefulWidget {
final Task task;

const EditTaskPage({Key? key, required this.task}) : super(key: key);
const EditTaskPage({super.key, required this.task});

@override
State<EditTaskPage> createState() => _EditTaskPageState();
Expand Down
4 changes: 2 additions & 2 deletions example/lib/ui/task_hero.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ class TaskHero extends StatelessWidget {
final double? radius;

const TaskHero({
Key? key,
super.key,
required this.task,
this.radius,
}) : super(key: key);
});

@override
Widget build(BuildContext context) {
Expand Down
4 changes: 2 additions & 2 deletions example/lib/ui/task_tile.dart
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ class TaskTile extends StatelessWidget {
final Animation<double> animation;

const TaskTile({
Key? key,
super.key,
required this.task,
required this.onCompletionChanged,
required this.animation,
this.onDismissed,
this.onTap,
}) : super(key: key);
});

@override
Widget build(BuildContext context) {
Expand Down
2 changes: 1 addition & 1 deletion example/lib/ui/todo_list_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import 'task_tile.dart';
class TodoListPage extends StatefulWidget {
final String title;

const TodoListPage({Key? key, required this.title}) : super(key: key);
const TodoListPage({super.key, required this.title});

@override
State<TodoListPage> createState() => _TodoListPageState();
Expand Down

0 comments on commit b3fc386

Please sign in to comment.