Giter Club home page Giter Club logo

flutter-inner-shadow's People

Contributors

luigi-rosso avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

flutter-inner-shadow's Issues

Issue with transparency...

This is great but when the background color is transparent it seems to shadow the entire canvas rather than just the edge. Is this the expected behavior?

Error: Object has been disposed

Hi! I've been trying to use InnerShadow, but keep hitting the following error (usually when scrolling fast through a ListView containing images covered by an InnerShadow):

The following message was thrown during paint():
Object has been disposed.

The relevant error-causing widget was
    InnerShadow
When the exception was thrown, this was the stack
#0      Canvas._saveLayer  (dart:ui/painting.dart:3436:64)
#1      Canvas.saveLayer  (dart:ui/painting.dart:3425:7)
#2      RenderInnerShadow.paint
#3      RenderObject._paintWithContext
#4      PaintingContext.paintChild
...
The following RenderObject was being processed when the exception was fired: RenderInnerShadow#bfa4b
RenderObject: RenderInnerShadow#bfa4b
    needs compositing
    parentData: <none> (can use size)
    constraints: BoxConstraints(w=202.7, h=117.6)
    size: Size(202.7, 117.6)
    child: RenderColorFilter#6d258
        needs compositing
        parentData: <none> (can use size)
        constraints: BoxConstraints(w=202.7, h=117.6)
        size: Size(202.7, 117.6)
        child: RenderSemanticsAnnotations#013b2
            parentData: <none> (can use size)
            constraints: BoxConstraints(w=202.7, h=117.6)
            size: Size(202.7, 117.6)
            child: RenderImage#4a33e
                parentData: <none> (can use size)
                constraints: BoxConstraints(w=202.7, h=117.6)
                size: Size(202.7, 117.6)
                image: [500ร—281]
                fit: cover
                alignment: center
                invertColors: false
                filterQuality: low

The inner workings of RenderObjects are really not my forte, so I'm not sure where to start debugging this - and I just wondered if you'd seen that before as an issue, and could give me a pointer?

FWIW InnerShadow is being used inside a stateless widget, so I can't see how paint could be being called at a point when the parent is disposed, or InnerShadow itself. (But as I say, not my forte.)

It's the saveLayer on line 81 of the widget that seems to be having the issue.

Thanks in advance!

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.