peckish_animated_hand_tutorial 1.0.2

SDKflutter
Platformandroidioswindowslinuxmacosweb

A package to guide users through tutorials with animated hands.

Peckish Animated Hand Tutorial

MIT License stars pub version

Table of Contents

CustomMaterialIndicator(
  onRefresh: onRefresh, 
  backgroundColor: Colors.white,
  indicatorBuilder: (context, controller) {
    return Padding(
      padding: const EdgeInsets.all(6.0),
      child: CircularProgressIndicator(
        color: Colors.redAccent,
        value: controller.state.isLoading ? null : math.min(controller.value, 1.0),
      ),
    );
  },
  child: child,
)

Parameters

Properties of Peckish Hand Tutorial :

ParameterDescription
childThe widget that will be wrapped by the tutorial. It can be any widget that you want to show the tutorial for.
itemsA list of ShowcaseItem objects, each representing an item in the tutorial.
controllerAn optional ShowcaseController to control the tutorial manually (e.g., to start or stop the tutorial).
animationDurationThe duration of the animation. Defaults to 3 seconds.
handAssetPathThe asset path to the hand image that will be shown during the tutorial. If not provided, the default hand will be used.
handSizeThe size of the hand. Defaults to 50.
initialDelayAn optional delay before the tutorial starts.
handColorThe color of the hand. Defaults to white.
haveRippleEffectA boolean flag indicating whether a ripple effect will be shown. Defaults to false.
onAnimationCompleteA callback function that will be triggered when the animation completes.
triggerWhenAn optional function that defines when the tutorial should be triggered.
toolTipThe tooltip configuration to display in the tutorial. Defaults to an empty tooltip.
tooltipBuilderAn optional custom builder for the tooltip, which takes a string as an argument and returns a widget.

Showcase Item

ParameterDescription
keyA unique key used to identify each showcase item in the tutorial.
tooltipAn optional ToolTip object to display additional information about the showcase item.
triggerA boolean that indicates whether the item should trigger the tutorial.
handAlignmentThe alignment for the hand when pointing to the showcase item.
onAnimationCompleteA callback function that is triggered when the animation for this showcase item is complete.

ToolTip TextStyle

ParameterDescription
fontColorThe color of the text inside the tooltip. Defaults to black.
fontSizeThe font size of the text inside the tooltip. Defaults to 14.0.
paddingThe padding inside the tooltip around the text. Defaults to EdgeInsets.all(8.0).

ToolTip Style

ParameterDescription
backgroundColorThe background color of the tooltip.
alignmentThe alignment of the tooltip relative to its target.
paddingThe padding inside the tooltip.
enableBorderA boolean that enables or disables the border around the tooltip.

ToolTip

ParameterDescription
toolTipMessageA message displayed within the tooltip.
toolTipTypeDefines the type of tooltip (e.g., bubble, simple).
onTooltipTapA function that is triggered when the tooltip is tapped.
toolTipStyleDefines the style (e.g., background color, padding) of the tooltip.
toolTipAlignmentDefines the alignment of the tooltip relative to its target.
toolTipTextStyleDefines the text style (e.g., font size, color) for the tooltip message.

ToolTip Touch Type

Touch TypeDescriptionPreview
TouchRepresents the ripple effect triggered by touch interaction.

ToolTip Type

ToolTip TypePreview
bubble
simple

Additional information

TODO: Reach out to peckish human in case of any query regarding package or improvement. Email id - peckishhuman@gmail.com

Main Contributors


Peckish Human

License

MIT License

Copyright (c) 2021 Simform Solutions

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.