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

The getter 'current' was called on null. #165

Closed
Sully55 opened this issue Aug 25, 2020 · 5 comments
Closed

The getter 'current' was called on null. #165

Sully55 opened this issue Aug 25, 2020 · 5 comments

Comments

@Sully55
Copy link

Sully55 commented Aug 25, 2020

Launching lib/main.dart on iPhone 11 Pro Max in debug mode...
Running Xcode build...
Xcode build done. 28.9s
Waiting for iPhone 11 Pro Max to report its views...
Debug service listening on ws://127.0.0.1:64802/Q67mBkethH4=/ws
Syncing files to device iPhone 11 Pro Max...

══╡ EXCEPTION CAUGHT BY WIDGETS LIBRARY ╞═══════════════════════════════════════════════════════════
The following NoSuchMethodError was thrown building Buttons:
The getter 'current' was called on null.
Receiver: null
Tried calling: current

The relevant error-causing widget was:
Buttons

When the exception was thrown, this was the stack:
#0 Object.noSuchMethod (dart:core-patch/object_patch.dart:51:5)
#1 _NeumorphicButtonState.updateInitialStyle (package:flutter_neumorphic/src/widget/button.dart:95:49)
#2 _NeumorphicButtonState.didChangeDependencies (package:flutter_neumorphic/src/widget/button.dart:110:5)
#3 StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:4705:12)
#4 ComponentElement.mount (package:flutter/src/widgets/framework.dart:4520:5)
... Normal element mounting (25 frames)
#29 Element.inflateWidget (package:flutter/src/widgets/framework.dart:3490:14)
#30 MultiChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:5991:32)
... Normal element mounting (94 frames)
#124 Element.inflateWidget (package:flutter/src/widgets/framework.dart:3490:14)
#125 MultiChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:5991:32)
... Normal element mounting (136 frames)
#261 Element.inflateWidget (package:flutter/src/widgets/framework.dart:3490:14)
#262 MultiChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:5991:32)
... Normal element mounting (258 frames)
#520 Element.inflateWidget (package:flutter/src/widgets/framework.dart:3490:14)
#521 Element.updateChild (package:flutter/src/widgets/framework.dart:3258:18)
#522 RenderObjectToWidgetElement._rebuild (package:flutter/src/widgets/binding.dart:1174:16)
#523 RenderObjectToWidgetElement.mount (package:flutter/src/widgets/binding.dart:1145:5)
#524 RenderObjectToWidgetAdapter.attachToRenderTree. (package:flutter/src/widgets/binding.dart:1087:17)
#525 BuildOwner.buildScope (package:flutter/src/widgets/framework.dart:2620:19)
#526 RenderObjectToWidgetAdapter.attachToRenderTree (package:flutter/src/widgets/binding.dart:1086:13)
#527 WidgetsBinding.attachRootWidget (package:flutter/src/widgets/binding.dart:927:7)
#528 WidgetsBinding.scheduleAttachRootWidget. (package:flutter/src/widgets/binding.dart:908:7)
(elided 11 frames from class _RawReceivePortImpl, class _Timer, dart:async, and dart:async-patch)

════════════════════════════════════════════════════════════════════════════════════════════════════

════════ Exception caught by widgets library ═══════════════════════════════════════════════════════
The following NoSuchMethodError was thrown building Buttons:
The getter 'current' was called on null.
Receiver: null
Tried calling: current

The relevant error-causing widget was:
When the exception was thrown, this was the stack:
#0 Object.noSuchMethod (dart:core-patch/object_patch.dart:51:5)
#1 _NeumorphicButtonState.updateInitialStyle (package:flutter_neumorphic/src/widget/button.dart:95:49)
#2 _NeumorphicButtonState.didChangeDependencies (package:flutter_neumorphic/src/widget/button.dart:110:5)
#3 StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:4705:12)
#4 ComponentElement.mount (package:flutter/src/widgets/framework.dart:4520:5)
...
════════════════════════════════════════════════════════════════════════════════════════════════════
[VERBOSE-2:profiler_metrics_ios.mm(184)] Error retrieving thread information: (ipc/send) invalid destination port

@Sully55 Sully55 closed this as completed Aug 25, 2020
@leidig54
Copy link

What was the solution here?

@FelipeMarra-zz
Copy link

FelipeMarra-zz commented Sep 7, 2020

What was the solution here?

Yeah, kind of passing through the same problem right now
Everything was working in an older version, I updated it, changed the parameters that no longer exist and etc, but this problem is related to the Neumorphic Theme, I'm not using it, thought it was not obligatory

@hewa-jalal
Copy link

we need a solution for this, why just close it!

@leidig54
Copy link

I’m my case I just needed to wrap the widget it Nuemorphic theme

@hewa-jalal
Copy link

hewa-jalal commented Sep 13, 2020

@leidig54 yes that work, but i think it's still better to be able to just use it without needing the theme widget.

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

No branches or pull requests

4 participants