What is Custom Painter

Опубликовано: 28 Сентябрь 2022
на канале: CodingMiles
151
2

Custom Painter is  a widget that provides a canvas on which to draw during the paint phase. :To paint in Flutter you can use the CustomPaint widget which basically takes size of its parent if not given the child . The CustomPainter subclass overrides two methods: paint() and shouldRepaint() .