GithubHelp home page GithubHelp logo

Comments (5)

den0206 avatar den0206 commented on June 8, 2024 5

temporary fix was sent out to PR.

  flutter_neumorphic: 
    git:
      url: https://github.com/den0206/Flutter-Neumorphic.git
      ref: feature/remoce_accentcolor

from flutter-neumorphic.

cipher167 avatar cipher167 commented on June 8, 2024 1

Actually I was also getting that type of error... I spent 7 whole days just going through my lines of code and and finally I managed to fix it.... I just used one neumorphic button and everything just went down hill...
This was the error(s) I got when I was using this package:

`Error: No named parameter with the name 'accentColor'.
app.dart:89
accentColor: theme.variantColor,
^^^^^^^^^^^
/C:/src/flutter/packages/flutter/lib/src/material/theme_data.dart:290:11: Context: Found this candidate, but the arguments don't match.
factory ThemeData({
^
: Error: The getter 'textTheme' isn't defined for the class 'AppBarTheme'.
app_bar.dart:183

  • 'AppBarTheme' is from 'package:flutter/src/material/app_bar_theme.dart' ('/C:/src/flutter/packages/flutter/lib/src/material/app_bar_theme.dart').
    app_bar_theme.dart:1
    Try correcting the name to the name of an existing getter, or defining a getter or field named 'textTheme'.
    style: (appBarTheme.textTheme?.headline5 ??
    ^^^^^^^^^

Target kernel_snapshot failed: Exception
2

FAILURE: Build failed with an exception.

  • Where:
    Script 'C:\src\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 1159

  • What went wrong:
    Execution failed for task ':app:compileFlutterBuildDebug'.

Process 'command 'C:\src\flutter\bin\flutter.bat'' finished with non-zero exit value 1`

Solution:
It seems this neumorphic package was conflicting with the material.dart package, after I deleted the imported flutter neumorphic package everything started working.... Hope this helps somebody, if you got a fix kindly share....

from flutter-neumorphic.

benyawmin avatar benyawmin commented on June 8, 2024 1

temporary fix was sent out to PR.

  flutter_neumorphic: 
    git:
      url: https://github.com/den0206/Flutter-Neumorphic.git
      ref: feature/remoce_accentcolor

I am using the latest version of flutter right now(3.13.0), after adding this line I get this error:
══╡ EXCEPTION CAUGHT BY WIDGETS LIBRARY ╞═══════════════════════════════════════════════════════════
The following _TypeError was thrown building NeumorphicAppBar(dirty, dependencies: [_InheritedTheme,
_LocalizationsScope-[GlobalKey#e350a], _ModalScopeStatus], state: NeumorphicAppBarState#a16ce):
Null check operator used on a null value

The relevant error-causing widget was:
NeumorphicAppBar
NeumorphicAppBar:file:///C:/Users/Benyamin/Desktop/wordcraft/lib/features/wordcraft/presentation/pages/home_page.dart:9:15

When the exception was thrown, this was the stack:
#0 NeumorphicAppBarState.build (package:flutter_neumorphic/src/widget/app_bar.dart:235:66)
#1 StatefulElement.build (package:flutter/src/widgets/framework.dart:5409:27)
#2 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5297:15)
#3 StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:5462:11)
#4 Element.rebuild (package:flutter/src/widgets/framework.dart:5016:7)
#5 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:5279:5)
#6 StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:5453:11)
#7 ComponentElement.mount (package:flutter/src/widgets/framework.dart:5273:5)
... Normal element mounting (22 frames)
#29 Element.inflateWidget (package:flutter/src/widgets/framework.dart:4182:16)
#30 MultiChildRenderObjectElement.inflateWidget (package:flutter/src/widgets/framework.dart:6569:36)
#31 MultiChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:6581:32)
... Normal element mounting (330 frames)
#361 Element.inflateWidget (package:flutter/src/widgets/framework.dart:4182:16)
#362 MultiChildRenderObjectElement.inflateWidget (package:flutter/src/widgets/framework.dart:6569:36)
#363 MultiChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:6581:32)
... Normal element mounting (435 frames)
#798 Element.inflateWidget (package:flutter/src/widgets/framework.dart:4182:16)
#799 Element.updateChild (package:flutter/src/widgets/framework.dart:3707:18)
#800 _LayoutBuilderElement._layout.layoutCallback (package:flutter/src/widgets/layout_builder.dart:135:18)
#801 BuildOwner.buildScope (package:flutter/src/widgets/framework.dart:2719:19)
#802 _LayoutBuilderElement._layout (package:flutter/src/widgets/layout_builder.dart:153:12)
#803 RenderObject.invokeLayoutCallback. (package:flutter/src/rendering/object.dart:2604:59)
#804 PipelineOwner._enableMutationsToDirtySubtrees (package:flutter/src/rendering/object.dart:1059:15)
#805 RenderObject.invokeLayoutCallback (package:flutter/src/rendering/object.dart:2604:14)
#806 RenderConstrainedLayoutBuilder.rebuildIfNecessary (package:flutter/src/widgets/layout_builder.dart:228:7)
#807 _RenderLayoutBuilder.performLayout (package:flutter/src/widgets/layout_builder.dart:313:5)
#808 RenderObject.layout (package:flutter/src/rendering/object.dart:2493:7)
#809 RenderBox.layout (package:flutter/src/rendering/box.dart:2382:11)
#810 _RenderLayoutBuilder.performLayout (package:flutter/src/widgets/layout_builder.dart:315:14)
#811 RenderObject.layout (package:flutter/src/rendering/object.dart:2493:7)
#812 RenderBox.layout (package:flutter/src/rendering/box.dart:2382:11)
#813 RenderView.performLayout (package:flutter/src/rendering/view.dart:178:14)
#814 RenderObject._layoutWithoutResize (package:flutter/src/rendering/object.dart:2332:7)
#815 PipelineOwner.flushLayout (package:flutter/src/rendering/object.dart:1013:18)
#816 RendererBinding.drawFrame (package:flutter/src/rendering/binding.dart:494:19)
#817 WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:918:13)
#818 RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:360:5)
#819 SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:1297:15)
#820 SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:1227:9)
#821 SchedulerBinding.scheduleWarmUpFrame. (package:flutter/src/scheduler/binding.dart:952:7)
#825 _RawReceivePort._handleMessage (dart:isolate-patch/isolate_patch.dart:189:12)
(elided 3 frames from class _Timer and dart:async-patch)

from flutter-neumorphic.

noahvelasco avatar noahvelasco commented on June 8, 2024

To temporarily solve this issue run in your project directory -

"flutter downgrade"

then accept the changes. You might have a few issues (const keywords, or others) but they are solvable by you and not the package. This should suffice until they fix this issue.

from flutter-neumorphic.

den0206 avatar den0206 commented on June 8, 2024

@benyawmin

I am using the latest version of flutter right now(3.13.0), after adding this line I get this error:

fix it : 07f44e0

Try reinstalling it.

  flutter_neumorphic: 
    git:
      url: https://github.com/den0206/Flutter-Neumorphic.git
      ref: feature/remoce_accentcolor

also check pubspec.lock commit hash :

  flutter_neumorphic:
    dependency: "direct main"
    description:
      path: "."
      ref: "feature/remoce_accentcolor"
      resolved-ref: "07f44e0ae36cf68452ed65f0516352da262c9814"   // update it
      url: "https://github.com/den0206/Flutter-Neumorphic.git"
スクリーンショット 2023-10-01 10 31 10

from flutter-neumorphic.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.