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

Render overflow on logout #500

Open
florian-sabonchi opened this issue Feb 9, 2024 · 2 comments
Open

Render overflow on logout #500

florian-sabonchi opened this issue Feb 9, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@florian-sabonchi
Copy link
Contributor

Describe the bug

A Render overflow is occurred, when a user logout out

Describe how to produce the bug

Go to Profile and click the logout button

Additional context

No response

@florian-sabonchi florian-sabonchi added the bug Something isn't working label Feb 9, 2024
@AraxTheCoder AraxTheCoder self-assigned this Jun 3, 2024
@AraxTheCoder
Copy link
Contributor

I tried to reproduce the overflow error when logging out but instead of an overflow error i got an "Null check operator used on a null value" error which resulted in the short appearance of an error screen which looks identical to the one you would expect from an render overflow.

Is this the error you described?

The following _TypeError was thrown building Consumer<CurrentWardController>(dirty, dependencies:
[_InheritedProviderScope<CurrentWardController?>]):
Null check operator used on a null value

The relevant error-causing widget was:
  Consumer<CurrentWardController>
  Consumer:./mobile-app/apps/tasks/lib/components/user_bottom_sheet.dart:80:20

When the exception was thrown, this was the stack:
#0      _UserBottomSheetState.build.<anonymous closure>.<anonymous closure> (package:tasks/components/user_bottom_sheet.dart:84:103)
#1      Consumer.buildWithChild (package:provider/src/consumer.dart:179:19)
#2      SingleChildStatelessWidget.build (package:nested/nested.dart:259:41)
#3      StatelessElement.build (package:flutter/src/widgets/framework.dart:5550:49)
#4      SingleChildStatelessElement.build (package:nested/nested.dart:279:18)
#5      ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5480:15)
#6      Element.rebuild (package:flutter/src/widgets/framework.dart:5196:7)
#7      BuildOwner.buildScope (package:flutter/src/widgets/framework.dart:2904:19)
#8      WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:989:21)
#9      RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:448:5)
#10     SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:1386:15)
#11     SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:1311:9)
#12     SchedulerBinding._handleDrawFrame (package:flutter/src/scheduler/binding.dart:1169:5)
#13     _invoke (dart:ui/hooks.dart:312:13)
#14     PlatformDispatcher._drawFrame (dart:ui/platform_dispatcher.dart:399:5)
#15     _drawFrame (dart:ui/hooks.dart:283:31)

@florian-sabonchi
Copy link
Contributor Author

I tried to reproduce the overflow error when logging out but instead of an overflow error i got an "Null check operator used on a null value" error which resulted in the short appearance of an error screen which looks identical to the one you would expect from an render overflow.

Is this the error you described?

The following _TypeError was thrown building Consumer<CurrentWardController>(dirty, dependencies:
[_InheritedProviderScope<CurrentWardController?>]):
Null check operator used on a null value

The relevant error-causing widget was:
  Consumer<CurrentWardController>
  Consumer:./mobile-app/apps/tasks/lib/components/user_bottom_sheet.dart:80:20

When the exception was thrown, this was the stack:
#0      _UserBottomSheetState.build.<anonymous closure>.<anonymous closure> (package:tasks/components/user_bottom_sheet.dart:84:103)
#1      Consumer.buildWithChild (package:provider/src/consumer.dart:179:19)
#2      SingleChildStatelessWidget.build (package:nested/nested.dart:259:41)
#3      StatelessElement.build (package:flutter/src/widgets/framework.dart:5550:49)
#4      SingleChildStatelessElement.build (package:nested/nested.dart:279:18)
#5      ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5480:15)
#6      Element.rebuild (package:flutter/src/widgets/framework.dart:5196:7)
#7      BuildOwner.buildScope (package:flutter/src/widgets/framework.dart:2904:19)
#8      WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:989:21)
#9      RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:448:5)
#10     SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:1386:15)
#11     SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:1311:9)
#12     SchedulerBinding._handleDrawFrame (package:flutter/src/scheduler/binding.dart:1169:5)
#13     _invoke (dart:ui/hooks.dart:312:13)
#14     PlatformDispatcher._drawFrame (dart:ui/platform_dispatcher.dart:399:5)
#15     _drawFrame (dart:ui/hooks.dart:283:31)

Yes, thats the error i described i think we should rename

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants