GithubHelp home page GithubHelp logo

mateusfccp / prototype_constrained_box Goto Github PK

View Code? Open in Web Editor NEW
8.0 8.0 2.0 157 KB

A ConstrainedBox-like widget, but the constraints are given by another widget.

License: MIT License

Swift 5.50% Objective-C 0.18% Dart 94.32%
constraints flutter prototype widget

prototype_constrained_box's People

Contributors

mateusfccp avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

prototype_constrained_box's Issues

Exception raised when trying open Flutter Dev Tools

Hello,

I have used this library on a project and when I try to open Flutter Dev Tools > Flutter Inspector I am getting the following exception:

======== Exception caught by Flutter framework =====================================================
The following assertion was thrown during a service extension callback for "ext.flutter.inspector.getRootWidgetSummaryTreeWithPreviews":
'package:flutter/src/foundation/diagnostics.dart': Failed assertion: line 2091 pos 15: 'ifTrue != null || ifFalse != null': is not true.

When the exception was thrown, this was the stack: 
#2      new FlagProperty (package:flutter/src/foundation/diagnostics.dart:2091:15)
#3      PrototypeConstrainedBox.debugFillProperties (package:prototype_constrained_box/src/widget.dart:115:20)
#4      Element.debugFillProperties (package:flutter/src/widgets/framework.dart:4958:14)
#5      RenderObjectElement.debugFillProperties (package:flutter/src/widgets/framework.dart:6622:11)
#6      DiagnosticableNode.builder.<anonymous closure> (package:flutter/src/foundation/diagnostics.dart:2856:17)
#7      DiagnosticableNode.builder (package:flutter/src/foundation/diagnostics.dart:2859:8)
#8      DiagnosticableNode.emptyBodyDescription (package:flutter/src/foundation/diagnostics.dart:2870:77)
#9      DiagnosticsNode.toJsonMap.<anonymous closure> (package:flutter/src/foundation/diagnostics.dart:1617:13)
...
<asynchronous suspension>
#786    _runExtension.<anonymous closure> (dart:developer-patch/developer.dart:112:11)
<asynchronous suspension>
(elided 2 frames from class _AssertionError)

Based on code analysis I was able to determine that the issue is caused by invoking FlagProperty without providing ifTrue or ifFalse parameters. This happens in package:prototype_constrained_box/src/widget.dart:115:20.

Thank you!

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.