Coder Social home page Coder Social logo

an build error lass 'Picture'. - 'Picture' is from 'dart:ui'. Try correcting the name to the name of an existing method, or defining a method named 'toImageSync'. rasterPicture.toImageSync(scaledWidth, scaledHeight); about vector_graphics HOT 5 CLOSED

dnfield avatar dnfield commented on September 17, 2024
an build error lass 'Picture'. - 'Picture' is from 'dart:ui'. Try correcting the name to the name of an existing method, or defining a method named 'toImageSync'. rasterPicture.toImageSync(scaledWidth, scaledHeight);

from vector_graphics.

Comments (5)

rahulfromearth avatar rahulfromearth commented on September 17, 2024

toImageSync is not available on Flutter 3.3.4 stable
flutter/flutter#77289
We'll have to wait until Flutter 3.5.x is released. I got this same issue.

@dnfield Can we download binaries for Flutter 3.5.0-10.0.pre.78 anywhere?

from vector_graphics.

dnfield avatar dnfield commented on September 17, 2024

In general, right now, this package requires a pretty late version of Flutter and may not be compatible with Stable yet. It should work on beta.

from vector_graphics.

dnfield avatar dnfield commented on September 17, 2024

I'm a little confused. I think this API should work on 3.3.

from vector_graphics.

dnfield avatar dnfield commented on September 17, 2024

Ahh I remember now, it wasn't ready and had to be reverted out of the stable branch. It's availalbe on beta.

from vector_graphics.

bill19 avatar bill19 commented on September 17, 2024

yes ,i found it。

from vector_graphics.

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.