Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bottomSheet is not properly popped #644

Closed
aryanA101a opened this issue Nov 4, 2023 · 0 comments · Fixed by #645
Closed

bottomSheet is not properly popped #644

aryanA101a opened this issue Nov 4, 2023 · 0 comments · Fixed by #645

Comments

@aryanA101a
Copy link
Contributor

aryanA101a commented Nov 4, 2023

Bug Description

On pressing "Send a message" button in the LoadProfileBottomScreen, the bottomSheet is not properly popped.

Stack Trace

I/flutter (28405): [Matrix] Error Widget - Looking up a deactivated widget's ancestor is unsafe.
I/flutter (28405): At this point the state of the widget's element tree is no longer stable.
I/flutter (28405): To safely refer to a widget's ancestor in its dispose() method, save a reference to the ancestor by calling dependOnInheritedWidgetOfExactType() in the widget's didChangeDependencies() method.
I/flutter (28405): #0      Element._debugCheckStateIsActiveForAncestorLookup.<anonymous closure>
framework.dart:4558
I/flutter (28405): #1      Element._debugCheckStateIsActiveForAncestorLookup
framework.dart:4572
I/flutter (28405): #2      Element.getElementForInheritedWidgetOfExactType
framework.dart:4607
I/flutter (28405): #3      Provider._inheritedElementOf
provider.dart:339
I/flutter (28405): #4      Provider.of
provider.dart:293
I/flutter (28405): #5      Matrix.of
matrix.dart:56
I/flutter (28405): #6      LoadProfileBottomSheet.build
user_bottom_sheet.dart:37
I/flutter (28405): #7
I/flutter (28405): [Matrix] Something went wrong:  - Looking up a deactivated widget's ancestor is unsafe.
I/flutter (28405): At this point the state of the widget's element tree is no longer stable.
I/flutter (28405): To safely refer to a widget's ancestor in its dispose() method, save a reference to the ancestor by calling dependOnInheritedWidgetOfExactType() in the widget's didChangeDependencies() method.

Steps to Reproduce

  1. On the home screen, press "New Chat" floating action button
  2. Press "Scan QR Code" button, and scan someone else qr
  3. Now press "Send a message" button

Expected Behavior

It should take to the chat screen of scanned person by properly closing the bottom sheet.

App Version

1.15.0

Additional Platform Information

Android

Additional Context

No response

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 a pull request may close this issue.

1 participant