Skip to content

Commit c62e4d3

Browse files
FLUT-965284-[Others]: Addressed review changes
1 parent cffe935 commit c62e4d3

File tree

6 files changed

+84
-30
lines changed

6 files changed

+84
-30
lines changed

Flutter/linear-gauge/animation.md

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -113,30 +113,3 @@ Both the shape and widget marker pointers have the same set of properties and be
113113
### Marker pointer with `bounceOut` animation
114114

115115
![Animate marker pointer in linear gauge](images/animation/shape-pointer/bounceout.gif)
116-
117-
## Animation completed event
118-
119-
The [`onAnimationCompleted`](https://pub.dev/documentation/syncfusion_flutter_gauges/latest/gauges/LinearShapePointer/onAnimationCompleted.html) is triggered when the shape pointer animation is completed. The default value of the [`onAnimationCompleted`](https://pub.dev/documentation/syncfusion_flutter_gauges/latest/gauges/LinearShapePointer/onAnimationCompleted.html) callback is `null`.
120-
121-
{% highlight dart %}
122-
123-
@override
124-
Widget build(BuildContext context) {
125-
return MaterialApp(
126-
home: Scaffold(
127-
body: Center(
128-
child: SfLinearGauge(
129-
markerPointers:[
130-
LinearShapePointer(
131-
onAnimationCompleted: () {
132-
print("Shape Pointer animation is completed");
133-
},
134-
),
135-
],
136-
),
137-
),
138-
),
139-
);
140-
}
141-
142-
{% endhighlight %}

Flutter/linear-gauge/bar-pointer.md

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,4 +362,31 @@ You can add multiple bar pointers in a [`LinearGauge`](https://pub.dev/documenta
362362

363363
{% endhighlight %}
364364

365-
![Add multiple bar pointers in a linear gauge](images/bar-pointer/multiple_bar_pointer.PNG)
365+
![Add multiple bar pointers in a linear gauge](images/bar-pointer/multiple_bar_pointer.PNG)
366+
367+
## Animation completed callback
368+
369+
The [`onAnimationCompleted`](https://pub.dev/documentation/syncfusion_flutter_gauges/latest/gauges/LinearBarPointer/onAnimationCompleted.html) callback in the [`LinearBarPointer`](https://pub.dev/documentation/syncfusion_flutter_gauges/latest/gauges/LinearBarPointer-class.html) will be triggered when the bar pointer animation is completed. The default value of the [onAnimationCompleted](https://pub.dev/documentation/syncfusion_flutter_gauges/latest/gauges/LinearBarPointer/onAnimationCompleted.html) callback is `null`.
370+
371+
{% highlight dart %}
372+
373+
@override
374+
Widget build(BuildContext context) {
375+
return MaterialApp(
376+
home: Scaffold(
377+
body: Center(
378+
child: SfLinearGauge(
379+
barPointer:[
380+
LinearBarPointer(
381+
onAnimationCompleted: () {
382+
print("Bar Pointer animation is completed");
383+
},
384+
),
385+
],
386+
),
387+
),
388+
),
389+
);
390+
}
391+
392+
{% endhighlight %}

Flutter/linear-gauge/range.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ However, to draw concave, convex and exponential-like shapes the [`midValue`](ht
7373

7474
## Customize edge style
7575

76-
The [`edgeStyle`](https://pub.dev/documentation/syncfusion_flutter_gauges/latest/gauges/LinearGaugeRange/edgeStyle.html) property defines the appearance of [`LinearGaugeRange`](https://pub.dev/documentation/syncfusion_flutter_gauges/latest/gauges/LinearGaugeRange-class.html) with either sharp or curved edges. The available options are `startCurve`, `endCurve`, `bothCurve`, and `bothFlat` options.
76+
The [`edgeStyle`](https://pub.dev/documentation/syncfusion_flutter_gauges/latest/gauges/LinearGaugeRange/edgeStyle.html) property defines the appearance of [`LinearGaugeRange`](https://pub.dev/documentation/syncfusion_flutter_gauges/latest/gauges/LinearGaugeRange-class.html) with either sharp or curved edges. The available options are `startCurve`, `endCurve`, `bothCurve`, and `bothFlat`.
7777

7878
The default value is `bothFlat`.
7979

Flutter/linear-gauge/shape-marker-pointer.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -363,3 +363,30 @@ The [`LinearShapePointer`](https://pub.dev/documentation/syncfusion_flutter_gaug
363363
}
364364

365365
{% endhighlight %}
366+
367+
## Animation completed callback
368+
369+
The [`onAnimationCompleted`](https://pub.dev/documentation/syncfusion_flutter_gauges/latest/gauges/LinearShapePointer/onAnimationCompleted.html) callback in the [`LinearShapePointer`](https://pub.dev/documentation/syncfusion_flutter_gauges/latest/gauges/LinearShapePointer-class.html) will be triggered when the shape pointer animation is completed. The default value of the [onAnimationCompleted](https://pub.dev/documentation/syncfusion_flutter_gauges/latest/gauges/LinearShapePointer/onAnimationCompleted.html) callback is `null`.
370+
371+
{% highlight dart %}
372+
373+
@override
374+
Widget build(BuildContext context) {
375+
return MaterialApp(
376+
home: Scaffold(
377+
body: Center(
378+
child: SfLinearGauge(
379+
markerPointers:[
380+
LinearShapePointer(
381+
onAnimationCompleted: () {
382+
print("Shape Pointer animation is completed");
383+
},
384+
),
385+
],
386+
),
387+
),
388+
),
389+
);
390+
}
391+
392+
{% endhighlight %}

Flutter/linear-gauge/widget-marker-pointer.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,3 +250,30 @@ The [`LinearWidgetPointer`](https://pub.dev/documentation/syncfusion_flutter_gau
250250
}
251251

252252
{% endhighlight %}
253+
254+
## Animation completed callback
255+
256+
The [`onAnimationCompleted`](https://pub.dev/documentation/syncfusion_flutter_gauges/latest/gauges/LinearWidgetPointer/onAnimationCompleted.html) callback in the [`LinearWidgetPointer`](https://pub.dev/documentation/syncfusion_flutter_gauges/latest/gauges/LinearWidgetPointer-class.html) will be triggered when the widget pointer animation is completed. The default value of the [onAnimationCompleted](https://pub.dev/documentation/syncfusion_flutter_gauges/latest/gauges/LinearWidgetPointer/onAnimationCompleted.html) callback is `null`.
257+
258+
{% highlight dart %}
259+
260+
@override
261+
Widget build(BuildContext context) {
262+
return MaterialApp(
263+
home: Scaffold(
264+
body: Center(
265+
child: SfLinearGauge(
266+
markerPointers:[
267+
LinearWidgetPointer(
268+
onAnimationCompleted: () {
269+
print("Widget Pointer animation is completed");
270+
},
271+
),
272+
],
273+
),
274+
),
275+
),
276+
);
277+
}
278+
279+
{% endhighlight %}

Flutter/radial-gauge/pointers.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ Pointers can be dragged over the scale to change their values interactively. Thi
136136

137137
{% endhighlight %}
138138

139-
The [`onCreatePointerRenderer`](https://pub.dev/documentation/syncfusion_flutter_gauges/latest/gauges/MarkerPointer/onCreatePointerRenderer.html) callback allows you to create a custom pointer in the radial gauge. This callback can be used only with the [`NeedlePointer`](https://pub.dev/documentation/syncfusion_flutter_gauges/latest/gauges/NeedlePointer-class.html) or [`MarkerPointer`](https://pub.dev/documentation/syncfusion_flutter_gauges/latest/gauges/MarkerPointer-class.html) types.
139+
The [`onCreatePointerRenderer`](https://pub.dev/documentation/syncfusion_flutter_gauges/latest/gauges/MarkerPointer/onCreatePointerRenderer.html) callback allows you to create a custom pointer in the radial gauge. This callback is available for both the [`NeedlePointer`](https://pub.dev/documentation/syncfusion_flutter_gauges/latest/gauges/NeedlePointer-class.html) or [`MarkerPointer`](https://pub.dev/documentation/syncfusion_flutter_gauges/latest/gauges/MarkerPointer-class.html) types.
140140

141141
{% highlight dart %}
142142

0 commit comments

Comments
 (0)