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

NeumorphicButton throws error with version flutter_neumorphic 3.0.1 #158

Closed
msarkrish opened this issue Jul 27, 2020 · 5 comments
Closed

Comments

@msarkrish
Copy link

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

The relevant error-causing widget was:
Scaffold file:///home/krishnakumar/Flutter_Projects/dhwark/lib/screens/home_screen.dart:34:12
When the exception was thrown, this was the stack:
#0 Object.noSuchMethod (dart:core-patch/object_patch.dart:53: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:4661:12)
#4 ComponentElement.mount (package:flutter/src/widgets/framework.dart:4476:5)
...
════════════════════════════════════════════════════════════════════════════════════════════════════
I/flutter (10924): Another exception was thrown: NoSuchMethodError: The getter 'current' was called on null.
I/flutter (10924): Another exception was thrown: Each child must be laid out exactly once.
I/flutter (10924): Another exception was thrown: NoSuchMethodError: The getter 'current' was called on null.
I/flutter (10924): Another exception was thrown: Each child must be laid out exactly once.
I/flutter (10924): Another exception was thrown: NoSuchMethodError: The getter 'current' was called on null.
I/flutter (10924): Another exception was thrown: Each child must be laid out exactly once.
I/flutter (10924): Another exception was thrown: NoSuchMethodError: The getter 'current' was called on null.
I/flutter (10924): Another exception was thrown: Each child must be laid out exactly once.
I/flutter (10924): Another exception was thrown: NoSuchMethodError: The getter 'current' was called on null.
I/flutter (10924): Another exception was thrown: Each child must be laid out exactly once.
I/flutter (10924): Another exception was thrown: NoSuchMethodError: The getter 'current' was called on null.
I/flutter (10924): Another exception was thrown: Each child must be laid out exactly once.

════════ Exception caught by rendering library ═════════════════════════════════════════════════════
Each child must be laid out exactly once.
The relevant error-causing widget was:
Scaffold file:///home/krishnakumar/Flutter_Projects/dhwark/lib/screens/home_screen.dart:34:12
I/flutter (10924): Another exception was thrown: NoSuchMethodError: The getter 'current' was called on null.
════════════════════════════════════════════════════════════════════════════════════════════════════
I/flutter (10924): Another exception was thrown: Each child must be laid out exactly once.

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

The relevant error-causing widget was:
Scaffold file:///home/krishnakumar/Flutter_Projects/dhwark/lib/screens/home_screen.dart:34:12
When the exception was thrown, this was the stack:
#0 Object.noSuchMethod (dart:core-patch/object_patch.dart:53: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:4661:12)
#4 ComponentElement.mount (package:flutter/src/widgets/framework.dart:4476:5)
...
════════════════════════════════════════════════════════════════════════════════════════════════════
I/flutter (10924): Another exception was thrown: NoSuchMethodError: The getter 'current' was called on null.
I/flutter (10924): Another exception was thrown: Each child must be laid out exactly once.
I/flutter (10924): Another exception was thrown: NoSuchMethodError: The getter 'current' was called on null.
I/flutter (10924): Another exception was thrown: Each child must be laid out exactly once.
I/flutter (10924): Another exception was thrown: NoSuchMethodError: The getter 'current' was called on null.
I/flutter (10924): Another exception was thrown: Each child must be laid out exactly once.
I/flutter (10924): Another exception was thrown: NoSuchMethodError: The getter 'current' was called on null.
I/flutter (10924): Another exception was thrown: Each child must be laid out exactly once.
I/flutter (10924): Another exception was thrown: NoSuchMethodError: The getter 'current' was called on null.
I/flutter (10924): Another exception was thrown: Each child must be laid out exactly once.
I/flutter (10924): Another exception was thrown: NoSuchMethodError: The getter 'current' was called on null.
I/flutter (10924): Another exception was thrown: Each child must be laid out exactly once.

════════ Exception caught by rendering library ═════════════════════════════════════════════════════
Each child must be laid out exactly once.
The relevant error-causing widget was:
Scaffold file:///home/krishnakumar/Flutter_Projects/dhwark/lib/screens/home_screen.dart:34:12
════════════════════════════════════════════════════════════════════════════════════════════════════
I/flutter (10924): Another exception was thrown: NoSuchMethodError: The getter 'current' was called on null.
I/flutter (10924): Another exception was thrown: Each child must be laid out exactly once.

@edex96
Copy link

edex96 commented Aug 2, 2020

Same here

══╡ EXCEPTION CAUGHT BY WIDGETS LIBRARY ╞═══════════════════════════════════════════════════════════
The following NoSuchMethodError was thrown building DefaultTextStyle(debugLabel: ((((englishLike
body1 2014).merge(blackMountainView bodyText2)).apply).copyWith).copyWith, inherit: false, color:
Color(0xff40494f), family: Signika_regular, familyFallback: [Signika], size: 14.0, weight: 400,
baseline: alphabetic, decoration: TextDecoration.none, softWrap: wrapping at box width, overflow:
clip):
The getter 'current' was called on null.
Receiver: null
Tried calling: current
The relevant error-causing widget was:
  Material
  
lib\widgets\GamesAction.dart:25
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)

@guit4eva
Copy link

+1

@eliraudcoel
Copy link

The same for me... ;)
+1

@Sully55
Copy link

Sully55 commented Aug 25, 2020

Same

@shelarsuhas
Copy link

+1

florent37 added a commit that referenced this issue Sep 9, 2020
Closes: #158 : Retrieving theme with correct method
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

6 participants