Code Monkey home page Code Monkey logo

widget_canvas's Introduction

widget_canvas's People

Contributors

definev avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

widget_canvas's Issues

Widget and screen gesture mismatch

There is a problem that I encountered in the last update. When I want to move the widgets with the mouse, both the screen and the widget move, and at the same time, the widget moves much faster than the screen and goes out of the mouse's range. It may be useful to review and edit the constantly updated values โ€‹โ€‹of the widgets in the x and y plane.

widget_screen_mismatch.mp4

Customize the paint order.

Subclasses of RenderTwoDimensionalViewport will typically use firstChild to traverse children in a standard paint order that follows row or column major ordering. so we can customize the paint order. like this.

  @override
  void paint(PaintingContext context, Offset offset) {
    // Paint as wish
    var item = _visibleElements!.removeAt(0);
    _visibleElements!.add(item);

    for (final element in _visibleElements!) {
      if (getChildFor(element.vicinity) case final child?) {
        context.paintChild(child, parentDataOf(child).layoutOffset! + offset);
      }
    }
  }

image

[Feature request] adding scale functionality to canvas.

Hi there! super work. Thank you for keeping it as open-source. I saw your post on Twitter. it seems very performant and also better than InteractiveViewer. It would be great if it could support scaling too. then it would be a perfect replacement for the InteractiveViewer. been trying to do this on my own by using a fork but it is maybe a little complicated for me.

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.