-
Notifications
You must be signed in to change notification settings - Fork 42
FLUT-962617 - [Feature] UG content for Directional Zooming #1236
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
Merged
Merged
Changes from 3 commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
740d295
FLUT-962617-[feature]: Added UG content for directional zooming
AswiniDileep bdf7ede
FLUT-962617-[feature]: Addressed review suggestion
AswiniDileep 6095bc7
FLUT-962617-[feature]: gif compressed
AswiniDileep 5502638
FLUT-962617-[feature]: Updated note section
AswiniDileep f9b54de
FLUT-962617-[feature]: Updated gif with bubbles series
AswiniDileep 9808cda
FLUT-962617-[feature]: Updated gif
AswiniDileep 103dcf2
FLUT-962617-[feature]: Gif updated
AswiniDileep 94ac143
FLUT-962617-[feature]: Updated UG content
AswiniDileep d3338a8
FLUT-962617-[feature]: Error word clearing
AswiniDileep bc76e3b
FLUT-962617-[feature]: Cleared error word
AswiniDileep 282142d
FLUT-962617-[feature]: Addressed review suggestion for content
AswiniDileep b9bb2ca
Update zoom-pan.md
Saravanan-Madhesh File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Binary file added
BIN
+489 KB
Flutter/cartesian-charts/images/zooming-panning/directional-zooming.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -48,6 +48,50 @@ Pinch zooming can be enabled by [`enablePinching`](https://pub.dev/documentation | |
{% endhighlight %} | ||
{% endtabs %} | ||
|
||
## Directional zooming | ||
|
||
The directional zooming feature improves the zoom experience by allowing you to zoom in and out in a specific direction. To enable this feature, set the [`enableDirectionalZooming`]() property to `true`, the default value is `false`. | ||
|
||
Additionally, ensure that `pinch zooming` is enabled and the `zoomMode` is set to `ZoomMode.xy` for directional zooming to work. The following code sample demonstrates how to enable directional zooming. | ||
|
||
{% tabs %} | ||
{% highlight dart hl_lines="7" %} | ||
|
||
late ZoomPanBehavior _zoomPanBehavior; | ||
|
||
@override | ||
void initState(){ | ||
_zoomPanBehavior = ZoomPanBehavior( | ||
// Enables directional zooming | ||
AswiniDileep marked this conversation as resolved.
Show resolved
Hide resolved
|
||
enableDirectionalZooming: true, | ||
enablePinching: true, | ||
zoomMode: ZoomMode.xy, | ||
); | ||
super.initState(); | ||
} | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return Scaffold( | ||
body: SafeArea( | ||
child: Center( | ||
child: Container( | ||
height: 300, | ||
width: 350, | ||
child: SfCartesianChart( | ||
zoomPanBehavior: _zoomPanBehavior | ||
) | ||
) | ||
) | ||
) | ||
); | ||
} | ||
|
||
{% endhighlight %} | ||
{% endtabs %} | ||
|
||
 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Image does not have quality. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Changed gif which has quality. |
||
|
||
## Double tap zooming | ||
|
||
Double tap zooming can be enabled using [`enableDoubleTapZooming`](https://pub.dev/documentation/syncfusion_flutter_charts/latest/charts/ZoomPanBehavior/enableDoubleTapZooming.html) property. Defaults to `false`. | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.