パッケージ、リポジトリ、アプリカテゴリを検索

flutter_update_dialog のカバー
パッケージ詳細v2.0.0

flutter_update_dialog

Flutter用の美しいアプリバージョンアップデートダイアログ。独自のバージョンアッププップアップウィンドウをカスタマイズできます!

AndroidiOSWebmacOSWindowsLinux
30日間ダウンロード
227
いいね数
58
Pub ポイント
150

パッケージをインストール

flutter pub add flutter_update_dialog

パッケージ概要

公開情報に基づく選定ガイドです。参考としてご利用ください。

Flutterアプリケーション向けのカスタマイズ可能で視覚的に魅力的なバージョンアップダイアログです。新しいアプリバージョンが利用可能になると、開発者がモダンで使いやすい更新プロンプトを表示できるようにします。カスタムスタイルのサポート、オプションの変更履歴表示、およびAndroid、iOS、Web、macOS、Windows、Linuxなど複数のプラットフォームへのシームレスな統合を備えています。ユーザーに最小限の努力で最大の関与を得てアプリを更新するよう促すのに最適です。

用途

  • アプリバージョンアップデートのお知らせ
  • カスタマイズ可能な更新プロンプト
  • アップデートダイアログ内の変更履歴の表示
  • クロスプラットフォームの更新アラート
  • アップデート中のユーザー参加度
  • アプリ内での更新リマインダー

主な機能

  • 高度にカスタマイズ可能なUI
  • 変更履歴の表示をサポートしています
  • クロスプラットフォーム互換性
  • pub を通じた簡単な統合
  • 設定可能な更新動作
  • すべてのデバイス向けのレスポンシブデザイン

適している対象

  • 最新のアップデートダイアログを探している開発者
  • 頻繁なバージョン更新を必要とするアプリ
  • 複数のプラットフォームをターゲットにするプロジェクト
  • ブランディングされた更新体験を望むチーム
  • アクティブなユーザー参加戦略を持つアプリケーション
  • 軽量なアップデートソリューションを必要とするプロジェクト

注意事項

  • 更新ロジックを手動で処理する必要があります
  • UI表示に限定され、ダウンロード機能は含まれない
  • 自動更新用に追加のコードが必要になる可能性があります
  • サイレントバックグラウンドアップデートには適していません
  • バージョン確認に外部サーバーに依存しています
  • バージョンチェックサービスと最適に併用

元の README

関連するソースリポジトリの README 原文のスナップショットです。最新の内容はリポジトリをご覧ください。

flutter_update_dialog

Version Build Status Issue Star

Application version update dialog. With it, you can customize the logic of version update.

You can refer to the following project:

https://github.com/xuexiangjys/flutter_app_update_example

Getting Started

You should ensure that you add the flutter_update_dialog as a dependency in your flutter project.

// pub 集成
dependencies:
  flutter_update_dialog: ^2.0.0

//github  集成
dependencies:
  flutter_update_dialog:
    git:
      url: git://github.com/xuexiangjys/flutter_update_dialog.git
      ref: master

UseCase

Default Style
  void defaultStyle() {
    if (dialog != null && dialog.isShowing()) {
      return;
    }
    dialog = UpdateDialog.showUpdate(context,
        title: "是否升级到4.1.4版本?",
        updateContent: "新版本大小:2.0M\n1.xxxxxxx\n2.xxxxxxx\n3.xxxxxxx",
        onUpdate: onUpdate);
  }
Custom Style
  void customStyle() {
    if (dialog != null && dialog.isShowing()) {
      return;
    }
    dialog = UpdateDialog.showUpdate(context,
        width: 250,
        title: "是否升级到4.1.4版本?",
        updateContent: "新版本大小:2.0M\n1.xxxxxxx\n2.xxxxxxx\n3.xxxxxxx",
        titleTextSize: 14,
        contentTextSize: 12,
        buttonTextSize: 12,
        topImage: Image.asset('assets/bg_update_top.png'),
        extraHeight: 5,
        radius: 8,
        themeColor: Color(0xFFFFAC5D),
        progressBackgroundColor: Color(0x5AFFAC5D),
        isForce: true,
        updateButtonTxt: '升级',
        ignoreButtonTxt: '忽略此版本',
        enableIgnore: true, onIgnore: () {
          ToastUtils.waring("忽略");
          dialog.dismiss();
        },
        onUpdate: onUpdate);
  }

Property value

Name Type Default Description
width double 0.618 * screenWidth dialog width
title String / dialog title
updateContent String / Update the modified content
onUpdate VoidCallback / Click on the update button event
titleTextSize double 16.0 The size of the title text
contentTextSize double 14.0 The size of the update content text
buttonTextSize double 14.0 The size of the button text
themeColor Color Colors.red Theme color
progressBackgroundColor Color 0xFFFFCDD2 The background color of the progress bar
topImage Image / Picture at the top
extraHeight double 5.0 Extra height from top image
radius double 4.0 Angle of corner
enableIgnore bool false Whether to enable the ignore version button
updateButtonText String '更新' Update button text
ignoreButtonText String '忽略此版本' Ignore button text
isForce bool false Whether to force update
onIgnore VoidCallback / Click on the ignore button event

カテゴリー

ソースリポジトリ

このパッケージを使用しているプロジェクト

データはまだありません。