flutter-inner-shadow's People
Forkers
peazz last210 do-wa arphaax jamesgaddum ctykaya reiko-dev a-soulspark toanphung ahmedgafsi09flutter-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 RenderObject
s 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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.