Git Product home page Git Product logo

Comments (10)

erickzanardo avatar erickzanardo commented on May 5, 2024 2

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.

luanpotter avatar luanpotter commented on May 5, 2024

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.

pgainullin avatar pgainullin commented on May 5, 2024

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.

luanpotter avatar luanpotter commented on May 5, 2024

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.

pgainullin avatar pgainullin commented on May 5, 2024

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.

luanpotter avatar luanpotter commented on May 5, 2024

Fixed on 0.10.4; @pgainullin , would you please test that for us? Thanks!

from flame.

pgainullin avatar pgainullin commented on May 5, 2024

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.

luanpotter avatar luanpotter commented on May 5, 2024

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.

luanpotter avatar luanpotter commented on May 5, 2024

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.

pgainullin avatar pgainullin commented on May 5, 2024

from flame.

Related Issues (20)

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.