Open romain-bajoit-iot-d opened 3 years ago
What is this problem with people closing their issues. I say this because the problem still remains. Specifically, the issue is still (to keep it brief) an issue.
I also got this issue with the tab bar widget. Hope this issue resolves soon!
Cannot paint some neumorphic widgets. Neumorphic of depth=0, disabled NeumorphicButton, pressed NeumorphicButton ...
Error
``` ======== Exception caught by rendering library ===================================================== The following TypeErrorImpl was thrown during paint(): Expected a value of type 'SkDeletable', but got one of type 'Null' The relevant error-causing widget was: AnimatedContainer file:///Users/romainbajoit/Documents/dev/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_neumorphic-3.1.0/lib/src/widget/container.dart:122:14 When the exception was thrown, this was the stack: dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/errors.dart 236:49 throw_ dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/errors.dart 84:3 castError dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/types.dart 266:34 as lib/_engine/engine/canvaskit/skia_object_cache.dart 146:55 new lib/_engine/engine/canvaskit/mask_filter.dart 10:3 blur ... The following RenderObject was being processed when the exception was fired: RenderDecoratedBox#532e5 relayoutBoundary=up5 ... parentData:Code to reproduce the error
The error is triggered **on build** for the `Neumorpic`. It is not displayed on screen. The error is triggered **when the button is pressed on**. ``` import 'package:flutter_neumorphic/flutter_neumorphic.dart'; void main() => runApp(MainApp()); class MainApp extends StatelessWidget { @override Widget build(BuildContext context) { return NeumorphicApp( title: 'abc', home: ABC(), ); } } class ABC extends StatelessWidget { @override Widget build(BuildContext context) { return Scaffold( body: Center( child: Row( children: [ NeumorphicButton( child: Text('abc'), onPressed: () => print('a'), ), Neumorphic( child: Text('abc'), style: NeumorphicStyle(depth: 0.0), ), ], ), ), ); } } ```Excecution environment
Executed with and without `--no-sound-null-safety`, it does not change the behavior ``` [β] Flutter (Channel beta, 2.0.2, on macOS 11.0.1 20B29 darwin-x64, locale en-BE) β’ Flutter version 2.0.2 at /Users/romainbajoit/Documents/dev/flutter β’ Framework revision 8962f6dc68 (3 weeks ago), 2021-03-11 13:22:20 -0800 β’ Engine revision 5d8bf811b3 β’ Dart version 2.12.1 [β] Android toolchain - develop for Android devices (Android SDK version 30.0.1) β’ Android SDK at /Users/romainbajoit/Library/Android/sdk β’ Platform android-30, build-tools 30.0.1 β’ Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java β’ Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495) β’ All Android licenses accepted. [β] Xcode - develop for iOS and macOS β’ Xcode at /Applications/Xcode.app/Contents/Developer β’ Xcode 12.4, Build version 12D4e β’ CocoaPods version 1.10.1 [β] Chrome - develop for the web β’ Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome [β] Android Studio (version 4.1) β’ Android Studio at /Applications/Android Studio.app/Contents β’ Flutter plugin can be installed from: π¨ https://plugins.jetbrains.com/plugin/9212-flutter β’ Dart plugin can be installed from: π¨ https://plugins.jetbrains.com/plugin/6351-dart β’ Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495) [β] IntelliJ IDEA Ultimate Edition (version 2020.2) β’ IntelliJ at /Applications/IntelliJ IDEA.app β’ Flutter plugin can be installed from: π¨ https://plugins.jetbrains.com/plugin/9212-flutter β’ Dart plugin version 202.6397.47 [β] Connected device (1 available) β’ Chrome (web) β’ chrome β’ web-javascript β’ Google Chrome 89.0.4389.114 β’ No issues found! ```