搜尋套件、儲存庫與 APP 分類

套件詳情v1.0.1

somedialog

用資源、網路和 Lottie 處理美觀對話框 UI 的 Flutter 套件

近 30 天下載
12
喜歡數
28
Pub 分數
40

安裝套件

flutter pub add somedialog

套件介紹

根據套件公開資料產生的選型評估,僅供參考。

一個 Flutter 套件,旨在透過資源、網路圖片和 Lottie 動畫簡化視覺上吸引人的對話方塊的建立。它提供了一個易於使用的介面,用於顯示具有豐富媒體內容的自訂對話方塊,提升使用者參與度。此套件支援從本機或遠端來源動態載入內容,非常適合用於啟動畫面、引導流程或互動式警示。該套件以簡單性與效能為設計核心,可輕鬆整合至現有的 Flutter 專案中。

適用情境

  • 引導頁
  • 互動式警示
  • 啟動畫面
  • 載入指示器
  • 使用者確認對話方塊

主要特色

  • 對資源圖像的支援
  • 網路圖像整合
  • Lottie 動畫支援
  • 可自訂對話方塊佈局
  • 與 Flutter 的輕鬆整合

適合對象

  • 應用入門流程
  • 增強的使用者通知
  • 媒體豐富的對話框
  • 簡單的UI互動
  • 尋求快速對話方塊解決方案的 Flutter 開發者

使用建議

  • 需要 Lottie 依賴以支援動畫
  • 有限的平台特定自訂
  • 無內建深色模式支援
  • 依賴外部圖像來源
  • 可能會隨著 Lottie 檔案增加套件大小

原始 README

以下為關聯原始碼儲存庫的 README 原文快照,最新內容請造訪原始碼儲存庫。

Somedialog

pub package License support

Flutter package for handle a nice dialog ui using assets, netwok, and lottie image

Help Maintenance

I've taken the time to make this library, help support to develop it or buy me coffee and snacks to be even more enthusiastic
Buy Me A Coffee Paypal


Dialog

Getting Started

Setup

Add dependency to your pubspec.yaml:

somedialog: ^{latest_version}
Basic use

First, add an import to your code:

import 'package:somedialog/somedialog.dart';

FlatButton(
              child: Text("Show Dialog"),
              onPressed: () {
                SomeDialog(
                  context: context,
                  path: "assets/report.json",
                  mode: SomeMode.Lottie,
                  content:
                      "Please before tracking, double-check the code you entered!",
                  title: "Are you sure ?",
                  submit: () {
                  }
                );
              },
            )

SomeMode

SomeMode
Lottie
Network
Asset

Parameters

parameter types defaultValues
buttonConfig buttonConfig ButtonConfig()
path string
title string
content string
dialogHeight double 310
imageHeight double 150
imageWidth double 150
submit Function
mode SomeMode SomeMode.Lottie

所屬分類

依賴

依賴清單 3 項

原始碼儲存庫

使用此套件的專案

暫無相關資料。