Skip to content

Conversation

@rohansen856
Copy link
Contributor

@rohansen856 rohansen856 commented Feb 4, 2026

Description

The SnackBar widget was created without a duration parameter. As duration is not specified, the SnackBar will remain visible until explicitly dismissed or until a new SnackBar is shown. This caused the banner to stay on screen indefinitely, creating a poor user experience.

  1. Added duration: const Duration(seconds: 4) to the SnackBar constructor also async Timer to close the snackbar forcefully in 4s.
  2. The user can now also swipe to cancel the snackbar

Fixes #577

Screenshots

image

Checklist

  • Tests have been added or updated to cover the changes
  • Documentation has been updated to reflect the changes
  • Code follows the established coding style guidelines
  • All tests are passing

Signed-off-by: rohansen856 <rohansen856@gmail.com>
@SGI-CAPP-AT2
Copy link
Collaborator

Keep the old style
It should be attached to bottom of screen similar to other snackbars in the App

image

@rohansen856
Copy link
Contributor Author

Keep the old style It should be attached to bottom of screen similar to other snackbars in the App

image

Sure thing! Also in that case should i keep the swipe to dismiss functionality or discard that too...?

@SGI-CAPP-AT2
Copy link
Collaborator

Keep the old style It should be attached to bottom of screen similar to other snackbars in the App

image

Swipe down to dismiss should be there. (No Left or Right)

@rohansen856
Copy link
Contributor Author

Keep the old style It should be attached to bottom of screen similar to other snackbars in the App
image

Swipe down to dismiss should be there. (No Left or Right)

Got it! implementing with the next commit.

Signed-off-by: rohansen856 <rohansen856@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TaskServer is not configured” banner does not disappear

2 participants