Skip to content

Commit

Permalink
Wrap toast in IgnorePointer to keep it from blocking clicks - Closes: #…
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilippMatthes committed Jul 1, 2024
1 parent 77becea commit a678b45
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions lib/logging/toast.dart
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,12 @@ class ToastWrapper extends StatelessWidget {
alignment: Alignment.topCenter,
children: [
child, // Should not be rebuilt in the widget tree
const Material(
color: Colors.transparent,
child: Toaster(),
const IgnorePointer(
// Prevents the toast from blocking clicks
child: Material(
color: Colors.transparent,
child: Toaster(),
),
),
],
);
Expand Down

0 comments on commit a678b45

Please sign in to comment.