Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/move docs #2733

Merged
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ _<span class="feature">inherited</span>_

Called whenever the object needs to paint. The given <a href="https://api.flutter.dev/flutter/dart-ui/Canvas-class.html">Canvas</a> has its
coordinate space configured such that the origin is at the top left of the
box. The area of the box is the size of the <code>size</code> argument.
box. The area of the box is the size of the ```dartsize``` argument.
_<span class="feature">override</span>_


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ _<span class="feature">override</span>_

<p>Called whenever the object needs to paint. The given <a href="https://api.flutter.dev/flutter/dart-ui/Canvas-class.html">Canvas</a> has its
coordinate space configured such that the origin is at the top left of the
box. The area of the box is the size of the <code>size</code> argument.</p>
box. The area of the box is the size of the ```dartsize``` argument.</p>
<p>Paint operations should remain inside the given area. Graphical
operations outside the bounds may be silently ignored, clipped, or not
clipped. It may sometimes be difficult to guarantee that a certain
Expand Down Expand Up @@ -58,7 +58,7 @@ obtain the correct rendering size.</p>

```dart
@override
void paint(Canvas canvas, Size size) {
void paint(Canvas canvas, Size size) \{
final Path path_0 = Path();
path_0.moveTo(size.width * 0.2376568, size.height * 0.4381250);
path_0.cubicTo(
Expand Down Expand Up @@ -371,7 +371,7 @@ void paint(Canvas canvas, Size size) {
final Paint paint0fill = Paint()..style = PaintingStyle.fill;
paint0fill.color = const Color(0xff737373).withOpacity(1.0);
canvas.drawPath(path_0, paint0fill);
}
\}
```


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,17 +37,17 @@ size).</p>
repaints should be avoided as much as possible, a <a href="https://api.flutter.dev/flutter/widgets/RepaintBoundary-class.html">RepaintBoundary</a> or
<a href="https://api.flutter.dev/flutter/rendering/RenderRepaintBoundary-class.html">RenderRepaintBoundary</a> (or other render object with
<a href="https://api.flutter.dev/flutter/rendering/RenderObject/isRepaintBoundary.html">RenderObject.isRepaintBoundary</a> set to true) might be helpful.</p>
<p>The <code>oldDelegate</code> argument will never be null.</p>
<p>The ```dartoldDelegate``` argument will never be null.</p>



## Implementation

```dart
@override
bool shouldRepaint(covariant CustomPainter oldDelegate) {
bool shouldRepaint(covariant CustomPainter oldDelegate) \{
return true;
}
\}
```


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ _<span class="feature">inherited</span>_

Called whenever the object needs to paint. The given <a href="https://api.flutter.dev/flutter/dart-ui/Canvas-class.html">Canvas</a> has its
coordinate space configured such that the origin is at the top left of the
box. The area of the box is the size of the <code>size</code> argument.
box. The area of the box is the size of the ```dartsize``` argument.
_<span class="feature">override</span>_


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ _<span class="feature">override</span>_

<p>Called whenever the object needs to paint. The given <a href="https://api.flutter.dev/flutter/dart-ui/Canvas-class.html">Canvas</a> has its
coordinate space configured such that the origin is at the top left of the
box. The area of the box is the size of the <code>size</code> argument.</p>
box. The area of the box is the size of the ```dartsize``` argument.</p>
<p>Paint operations should remain inside the given area. Graphical
operations outside the bounds may be silently ignored, clipped, or not
clipped. It may sometimes be difficult to guarantee that a certain
Expand Down Expand Up @@ -58,7 +58,7 @@ obtain the correct rendering size.</p>

```dart
@override
void paint(Canvas canvas, Size size) {
void paint(Canvas canvas, Size size) \{
final Path path_0 = Path();
path_0.moveTo(size.width * 0.6581984, size.height * 0.6200040);
path_0.cubicTo(
Expand Down Expand Up @@ -474,7 +474,7 @@ void paint(Canvas canvas, Size size) {
final Paint paint3fill = Paint()..style = PaintingStyle.fill;
paint3fill.color = const Color(0xff737373).withOpacity(1.0);
canvas.drawPath(path_3, paint3fill);
}
\}
```


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,17 +37,17 @@ size).</p>
repaints should be avoided as much as possible, a <a href="https://api.flutter.dev/flutter/widgets/RepaintBoundary-class.html">RepaintBoundary</a> or
<a href="https://api.flutter.dev/flutter/rendering/RenderRepaintBoundary-class.html">RenderRepaintBoundary</a> (or other render object with
<a href="https://api.flutter.dev/flutter/rendering/RenderObject/isRepaintBoundary.html">RenderObject.isRepaintBoundary</a> set to true) might be helpful.</p>
<p>The <code>oldDelegate</code> argument will never be null.</p>
<p>The ```dartoldDelegate``` argument will never be null.</p>



## Implementation

```dart
@override
bool shouldRepaint(covariant CustomPainter oldDelegate) {
bool shouldRepaint(covariant CustomPainter oldDelegate) \{
return true;
}
\}
```


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ _<span class="feature">inherited</span>_

Called whenever the object needs to paint. The given <a href="https://api.flutter.dev/flutter/dart-ui/Canvas-class.html">Canvas</a> has its
coordinate space configured such that the origin is at the top left of the
box. The area of the box is the size of the <code>size</code> argument.
box. The area of the box is the size of the ```dartsize``` argument.
_<span class="feature">override</span>_


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ _<span class="feature">override</span>_

<p>Called whenever the object needs to paint. The given <a href="https://api.flutter.dev/flutter/dart-ui/Canvas-class.html">Canvas</a> has its
coordinate space configured such that the origin is at the top left of the
box. The area of the box is the size of the <code>size</code> argument.</p>
box. The area of the box is the size of the ```dartsize``` argument.</p>
<p>Paint operations should remain inside the given area. Graphical
operations outside the bounds may be silently ignored, clipped, or not
clipped. It may sometimes be difficult to guarantee that a certain
Expand Down Expand Up @@ -58,7 +58,7 @@ obtain the correct rendering size.</p>

```dart
@override
void paint(Canvas canvas, Size size) {
void paint(Canvas canvas, Size size) \{
final Paint paint0Fill = Paint()..style = PaintingStyle.fill;
paint0Fill.shader = ui.Gradient.linear(
Offset(size.width * 0.6670000, size.height * 0.1670000),
Expand Down Expand Up @@ -160,7 +160,7 @@ void paint(Canvas canvas, Size size) {
1
]);
canvas.drawPath(path_3, paint3Fill);
}
\}
```


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,17 +37,17 @@ size).</p>
repaints should be avoided as much as possible, a <a href="https://api.flutter.dev/flutter/widgets/RepaintBoundary-class.html">RepaintBoundary</a> or
<a href="https://api.flutter.dev/flutter/rendering/RenderRepaintBoundary-class.html">RenderRepaintBoundary</a> (or other render object with
<a href="https://api.flutter.dev/flutter/rendering/RenderObject/isRepaintBoundary.html">RenderObject.isRepaintBoundary</a> set to true) might be helpful.</p>
<p>The <code>oldDelegate</code> argument will never be null.</p>
<p>The ```dartoldDelegate``` argument will never be null.</p>



## Implementation

```dart
@override
bool shouldRepaint(covariant CustomPainter oldDelegate) {
bool shouldRepaint(covariant CustomPainter oldDelegate) \{
return true;
}
\}
```


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ _<span class="feature">inherited</span>_

Called whenever the object needs to paint. The given <a href="https://api.flutter.dev/flutter/dart-ui/Canvas-class.html">Canvas</a> has its
coordinate space configured such that the origin is at the top left of the
box. The area of the box is the size of the <code>size</code> argument.
box. The area of the box is the size of the ```dartsize``` argument.
_<span class="feature">override</span>_


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ _<span class="feature">override</span>_

<p>Called whenever the object needs to paint. The given <a href="https://api.flutter.dev/flutter/dart-ui/Canvas-class.html">Canvas</a> has its
coordinate space configured such that the origin is at the top left of the
box. The area of the box is the size of the <code>size</code> argument.</p>
box. The area of the box is the size of the ```dartsize``` argument.</p>
<p>Paint operations should remain inside the given area. Graphical
operations outside the bounds may be silently ignored, clipped, or not
clipped. It may sometimes be difficult to guarantee that a certain
Expand Down Expand Up @@ -58,7 +58,7 @@ obtain the correct rendering size.</p>

```dart
@override
void paint(Canvas canvas, Size size) {
void paint(Canvas canvas, Size size) \{
final Path path_0 = Path();
path_0.moveTo(size.width * 0.3580000, size.height * 0.1673307);
path_0.cubicTo(
Expand Down Expand Up @@ -474,7 +474,7 @@ void paint(Canvas canvas, Size size) {
final Paint paint1fill = Paint()..style = PaintingStyle.fill;
paint1fill.color = const Color(0xfffcfcfc).withOpacity(1.0);
canvas.drawPath(path_1, paint1fill);
}
\}
```


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,17 +37,17 @@ size).</p>
repaints should be avoided as much as possible, a <a href="https://api.flutter.dev/flutter/widgets/RepaintBoundary-class.html">RepaintBoundary</a> or
<a href="https://api.flutter.dev/flutter/rendering/RenderRepaintBoundary-class.html">RenderRepaintBoundary</a> (or other render object with
<a href="https://api.flutter.dev/flutter/rendering/RenderObject/isRepaintBoundary.html">RenderObject.isRepaintBoundary</a> set to true) might be helpful.</p>
<p>The <code>oldDelegate</code> argument will never be null.</p>
<p>The ```dartoldDelegate``` argument will never be null.</p>



## Implementation

```dart
@override
bool shouldRepaint(covariant CustomPainter oldDelegate) {
bool shouldRepaint(covariant CustomPainter oldDelegate) \{
return true;
}
\}
```


Expand Down
Loading
Loading