feature_guider 1.0.0 copy "feature_guider: ^1.0.0" to clipboard
feature_guider: ^1.0.0 copied to clipboard

Feature Introduction for First-time Users.

A lightweight and feature-rich tool for functional guidance and tips #

English 中文

Preview of Effects #

Sample

Feature Introduction #

  • Supports custom description widget for GUIDANCE AREA
  • Supports locking the tip position with Widget#key or Rect
  • Supports setting the background mask opacity
  • Supports setting the duration of animation transitions
  • Supports preset options for the position of the description widget
  • Supports setting the padding of the guidance area
  • Supports setting the border radius of the guidance area
  • Supports setting the interval between description and guidance area

Usage #

WidgetsBinding.instance.addPostFrameCallback((timeStamp) {
  guideManager ??= GuideManager(context, opacity: 0.7);
  guideManager!.prepare([
    GuideItem(
      description: "Click here to go back",
      toGuideKey: keyAppBarBack,
      padding: EdgeInsets.zero,
    ),
  ]);
  guideManager!.show();
});
copied to clipboard

GuideManager #

Parameter Description
context BuildContext
opacity Mask opacity, default value is 0.4
duration Tip block animation transition time, default value is 200ms, if set to zero then no animation

GuideItem #

Parameter Description
descriptionWidget Custom description widget
toGuideKey Pass a GlobalKey for guidance area location
toGuideRect Pass a Rect for guidance area location
position Text display position in guidance area enum, presets include screenCenter, alignTopLeft, alignTopRight, alignBottomLeft, alignBottomRight, auto
padding Internal padding for the guidance area
borderRadius Border radius for the guidance area
textInterval Interval between description and guidance area

DescriptionPosition #

  • screenCenter - Center of the screen
  • alignTopLeft - Positions the content above the target area, aligned to the left side
  • alignTopRight - Positions the content above the target area, aligned to the right side
  • alignBottomLeft - Positions the content below the target area, aligned to the left side
  • alignBottomRight - Positions the content below the target area, aligned to the right side
  • auto - Automatically determined based on the position of your component and the dimensions of the text
17
likes
130
points
39
downloads

Publisher

verified publisherkpaxian.xyz

Weekly Downloads

2024.08.22 - 2025.03.06

Feature Introduction for First-time Users.

Repository (GitHub)

Documentation

API reference

License

Apache-2.0 (license)

Dependencies

flutter, flutter_web_plugins, plugin_platform_interface

More

Packages that depend on feature_guider