Comments (10)
This has been inactive for some time now and the issue was resolved on a couple of versions earlier.
I will be closing this, but feel free to open a new issue if you still have problems @pgainullin.
from flame.
Hi, @pgainullin , thanks for the report!
What version of flutter/dart are you using?
This is probably caused by a recent change in the Flutter SDK that required refactoring of flame, using a new API that used to return Image
and now returns a Future<Image>
.
Currently we are using Flutter version 1.2.0 here, though that's up to debate (which version we should support).
from flame.
Thanks for quick response. I'm using 1.2.1:
Flutter 1.2.1 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 8661d8aecd (7 weeks ago) • 2019-02-14 19:19:53 -0800
Engine • revision 3757390fa4
Tools • Dart 2.1.2 (build 2.1.2-dev.0.0 0a7dcf17eb)
from flame.
Please try to update to flutter version 1.4.10; it should work on the newer versions :)
You can do that by changing the flutter channel to anything greater than stable, I believe.
from flame.
I'm clearly doing something wrong but I'm getting a different error at compile in this case:
flame-0.10.3/lib/svg.dart:26:17: Error: Too few positional arguments: 3 required, 2 given.
svgRoot.draw(canvas, null);
I was only able to solve it by going back to Flame v. 0.10.2 which then results in the original error related to the TextBoxComponent.
from flame.
Fixed on 0.10.4
; @pgainullin , would you please test that for us? Thanks!
from flame.
Thanks! this works without errors though I can't seem to be able to get it to render anything using the pattern
(MyTextBox instance).render(canvas)
within my game render function. best I can do is force it to drawBackground by adding it to the render override of MyTextBox.
from flame.
Hi, @pgainullin! Have you seen the example app called text inside the docs/examples folder? Does that app work? Could you compare and see the differences? Or show your code that is not working and why? So that we can better understand the problem...
from flame.
Hi, @pgainullin , we tested here with the latest versions of flame, the docs/examples/text example is working fine. Could you please either refer to that to see if something is wrong or provide your code that you claim is not working?
from flame.
from flame.
Related Issues (20)
- TextBoxComponent with typer text shows pink image before rendering text HOT 5
- SpriteWidget has unused parameters HOT 1
- Anchor is invalid when transform by matrix4 ?
- Klondike Tutorial, Step 5: Add code and further explanation of FlatButton and others, or at least a link to its code #19 HOT 6
- Strange phenomenon in flame rendering text HOT 7
- Convert ClipComponent factory Constructor to redirecting Constructor. HOT 1
- Unable scroll the text of the ScrollTextBoxComponent if I do not use timePerChar HOT 1
- Can not find asset when Flame Game is used as a module or package HOT 8
- texture packer can't override images HOT 6
- I'd like to call the child onRemove. HOT 4
- Add onComplete callback to ScrollTextBoxComponent HOT 2
- Flame + Forge2D + Riverpod == broken? HOT 1
- Change `Forge2DGame`'s `cameraComponent` constructor parameter to `camera` for consistency with `FlameGame`
- Not compatible contact type HOT 1
- Unverified Breakpoint in VSCode. DebugService: Error serving requestsError: FormatException: Unsupported URI form. HOT 4
- Update doc comment on FixedResolutionViewport
- restitution of FixtureDef HOT 4
- Input System should be improve HOT 1
- Is it possible to make the camera smoothly follow the player? HOT 7
- Doc: In ValuerRoute example you can click the transparent area to spawn multiple route HOT 3
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.
from flame.