Flutter custom painter Tutorial | Build Drawing App - Cool Project

แชร์
ฝัง
  • เผยแพร่เมื่อ 24 ต.ค. 2024

ความคิดเห็น • 21

  • @AsadFaiz-o3l
    @AsadFaiz-o3l 7 หลายเดือนก่อน

    Work of true Professional... Thanks 😊

  • @ahmedtiger3809
    @ahmedtiger3809 2 ปีที่แล้ว +3

    how to save it ? the drawing

  • @emrahe468
    @emrahe468 3 ปีที่แล้ว +2

    This is one of the best silent tutorials i ever seen :)

  • @lksimmithila
    @lksimmithila ปีที่แล้ว

    after edditing the image, how can we save that image, can u do a vidoe for that well

  • @ahmadzahid8311
    @ahmadzahid8311 ปีที่แล้ว

    nice video. keep up the good work

  • @md.sojibsarker7554
    @md.sojibsarker7554 2 ปีที่แล้ว +2

    New update of flutter included null safety. how I can use null value to check the end point?

    • @hsunleo332
      @hsunleo332 2 ปีที่แล้ว +4

      class DrawingPinter extends CustomPainter {
      final List drawingPoints;
      DrawingPinter(this.drawingPoints);
      @override
      void paint(Canvas canvas, Size size) {
      for (int i = 0; i < drawingPoints.length - 1; i++) {
      DrawingPoint? current = drawingPoints[i];
      DrawingPoint? next = drawingPoints[i + 1];
      if (current != null && next != null) {
      canvas.drawLine(current.offset, next.offset, current.paint);
      }
      }
      }
      @override
      bool shouldRepaint(covariant CustomPainter oldDelegate) => true;
      }

  • @melonpun
    @melonpun 7 หลายเดือนก่อน

    After the latest Flutter update it won't draw on the canvas, is there a way to solve this issue?

  • @SwarajRoutray
    @SwarajRoutray 3 ปีที่แล้ว

    Keep updating more cool projects

  • @Android-jass
    @Android-jass 2 ปีที่แล้ว +1

    Nice video. how can I make the drawing into an image?

  • @grx4.067
    @grx4.067 ปีที่แล้ว

    how to add eraser in it

  • @edipbaranavci7979
    @edipbaranavci7979 2 ปีที่แล้ว

    How to zoom in paint board?

  • @somnathdas8922
    @somnathdas8922 2 ปีที่แล้ว

    Nice bro. Please explain how to adding Text??

  • @Ben-wf5ji
    @Ben-wf5ji 3 ปีที่แล้ว

    Great

  • @grx4.067
    @grx4.067 ปีที่แล้ว +1

    The argument type 'Null' can't be assigned to the parameter type 'DrawingPoint'

    • @comedysnacks4202
      @comedysnacks4202 ปีที่แล้ว

      have you find any solution?

    • @yahya3398
      @yahya3398 ปีที่แล้ว +2

      add a question mark "?" to the list u declared !
      like this ->
      List drawingPoints = [];

  • @rakesh12379
    @rakesh12379 3 ปีที่แล้ว

    Nice tutorial can you please say how to disable multi touch on canvas ?

  • @whoIsDeck
    @whoIsDeck 3 ปีที่แล้ว

    Good work bro :) www

  • @rahulchowdhury279
    @rahulchowdhury279 2 ปีที่แล้ว

    CopyCat.