搜尋套件、儲存庫與 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 項

原始碼儲存庫

使用此套件的專案

暫無相關資料。