question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Bottomsheet state isn't updated

See original GitHub issue

Describe the bug

I used to track the bottom sheet offset via Text(bottomSheetNavigator.navigatorSheetState.offset.value.toString()). This worked in 0.17, but no longer works in 18. I know bottom sheet state was being touched a bunch in .18 and .19, so maybe a this is a new regression?

To Reproduce

Steps to reproduce the behavior:

  1. Text(bottomSheetNavigator.navigatorSheetState.offset.value.toString())

Environment:

0.19 (it used to work with 0.17)

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:10

github_iconTop GitHub Comments

1reaction
ColtonIdlecommented, Jan 15, 2022

Not stale 😄

1reaction
ColtonIdlecommented, Nov 1, 2021

@jossiwolf worth removing the stale label here too?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Flutter set state not updating variable value in bottomsheet ...
Any setState in bottom sheet with not reflect because, It is in a new context. Try making the bottom sheet a stateful widget...
Read more >
How to Change / Update the State inside Bottom Sheet in Flutter
The reason is, when we click on the icon inside the bottom sheet, we are changing the state of the main widget but...
Read more >
Updating state causes methods on bottom sheet to stop working
Describe what you expected to happen: The method on the bottom sheet should be called regardless of component state update. Reproducible sample ...
Read more >
[solved] Update local state from bottom sheet
Hey everyone I having a problem, I have a bottom sheet with a listview every time when I click on list item, I...
Read more >
BottomSheetBehavior setState method doesn't work before ...
1. Open the sample app · 2. Click in the "Show view" button. The BottomSheet won't expand and it can't be dragged from...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found