搜索插件、代码仓与 APP 分类

pal_widgets 封面
插件详情v0.4.0

pal_widgets

一套用于 Flutter 应用程序的惊艳启动界面小部件。

AndroidiOSWebmacOSWindowsLinux
近 30 天下载
52
喜欢数
80
Pub 分数
150

安装插件

flutter pub add pal_widgets

插件介绍

基于插件公开信息、社区数据与项目使用情况整理的选型参考。

pal_widgets 是一个 Flutter 包,提供了一系列视觉上吸引人的引导式入门小部件,旨在通过逐步导览和教练标记来提升用户体验。它帮助开发者分步介绍应用功能,提高用户参与度和理解度。该包支持 Android、iOS、Web、macOS、Windows 和 Linux 多个平台,确保在不同设备上实现一致的引导体验。通过可自定义的动画和直观的 API,简化了交互式引导流程的实现。非常适合希望在引导过程中减少用户摩擦的应用。

适合场景

  • 引导新用户
  • 突出显示应用的关键功能
  • 引导式教程
  • 提高用户留存率
  • 介绍复杂接口
  • 提升首次用户体验

主要特点

  • 预构建的入门小部件
  • 跨平台支持
  • 可自定义动画
  • 轻松集成
  • 交互式教练标记
  • 响应式设计

适合对象

  • 移动和网络应用
  • 产品团队
  • UX设计师
  • 寻求快速入门解决方案的开发者
  • 具有复杂工作流程的应用程序
  • 专注于用户入门的初创公司

使用建议

  • 需要理解 Flutter 布局
  • 可能需要定制以实现品牌一致
  • 大量步骤带来的性能影响
  • 仅限入职使用场景
  • 依赖外部依赖项
  • 不适用于非引导式用户界面流程

原始 README

以下为关联源码仓库的 README 原文快照,最新内容请访问源码仓库。

flutter anchored onboarding screen


build License: MIT Pal widgets pubdev


Pal widgets

A flutter package for better onboarding.

A set of amazing onboarding widgets for your flutter applications.

Install package

add in your pubspec.yaml dependencies

pal-widgets: 0.3.0


List of helpers

Name description status
AnchoredHelper An helper do describe another widget of your page. This creates an overlay above your page :white_check_mark:

Anchored helper

This widgets is highly inspired by google onboardings. This shows a circle around any widgets you want and add an overlay were you can add a message.

First embbed you page or your app with a HelperOrchestrator widget.

HelperOrchestrator(
    child: Scaffold(
        appBar: AppBar(
            title: Text(widget.title),
        ),
        body: ...
    ),
)

You now have to get a key text1 for the widget you want to reference using

Text(
    '$_counter',
    key: HelperOrchestrator.of(context).generateKey('text1'),
),
Example

You can now show an anchored helper using

final helper = AnchoredHelper(
    title: const Text('Title lorem pitume'),
    description: const Text('Lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum'),,
    bgColor: Colors.blue,
    leftBtnText: const Text('cancel'),
    rightBtnText: const Text('Ok, understood'),
    onError: () => print("widget not found"),
    positivBtnStyle: helperOutlineBtnStyle,
    negativeBtnStyle: helperOutlineBtnStyle,
    onLeftBtnTap: () => HelperOrchestrator.of(context).hideHelper(),
    onRightTap: () => HelperOrchestrator.of(context).hideHelper(),
    onTapAnchor: () => HelperOrchestrator.of(context).hideHelper(),
);

// this will show an overlayed anchored widget using the key text1
HelperOrchestrator.of(context).showAnchoredHelper('text1', helper);
properties
Property description Required
title A Text widget to show as title
description A Text widget to show as description
bgColor A Color as Overlayed background :white_check_mark:
leftBtnText A [Text] widget to show within the left button
rightBtnText A [Text] widget to show within the right button
onLeftBtnTap Action on tap left button
onRightTap Action on tap right button
onError Functions to call when widgets encounters any errors
leftBtnStyle Material style to put on negativ button
rightBtnStyle Material style to put on positiv button
onTapAnchor Action to call when user tap on anchor
widgetFactory The Widget factory to create the anchored helper. Default to AnchoredCircleHoleHelper.anchorFactory which creates a full overlay with an animated hole

There is two Hole Anchor widget factories :

  • AnchoredCircleHoleHelper.anchorFactory: creates a circle hole (default value)
  • AnchoredRectHoleHelper.anchorFactory : creates a rectangle hole on strict widget bounds

Any question?

Contact us on our twitter

所属分类

依赖

依赖清单 1 项

源码仓库

使用此插件的项目

暂无相关数据。