Skip to content

Commit

Permalink
remove token from example
Browse files Browse the repository at this point in the history
  • Loading branch information
tilucasoli committed Nov 21, 2024
1 parent 29aedc5 commit dca6a64
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 300 deletions.
20 changes: 12 additions & 8 deletions examples/todo_list/lib/pages/todo_list_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -66,14 +66,18 @@ class _TodoListPageState extends State<TodoListPage> {
onPressed: () {
Future.delayed(
const Duration(milliseconds: 200),
() => Navigator.push(
context,
MaterialPageRoute(
builder: (context) => AddTaskPage(
controller: _controller,
),
),
),
() {
if (mounted) {
Navigator.push(
context,

Check notice on line 72 in examples/todo_list/lib/pages/todo_list_page.dart

View workflow job for this annotation

GitHub Actions / Test

Don't use 'BuildContext's across async gaps.

Try rewriting the code to not use the 'BuildContext', or guard the use with a 'mounted' check. See https://dart.dev/diagnostics/use_build_context_synchronously to learn more about this problem.
MaterialPageRoute(
builder: (context) => AddTaskPage(
controller: _controller,
),
),
);
}
},
);
},
),
Expand Down
137 changes: 0 additions & 137 deletions examples/todo_list/lib/style/token.dart

This file was deleted.

155 changes: 0 additions & 155 deletions examples/todo_list/lib/style/token.g.dart

This file was deleted.

0 comments on commit dca6a64

Please sign in to comment.