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

flutter_hot_toast のカバー
パッケージ詳細v0.0.3

flutter_hot_toast

アニメーション付きの非常にクールでシンプルなトースト。React Hot Toastに強く影響されています。

AndroidiOSWebmacOSWindowsLinux
30日間ダウンロード
153
いいね数
33
Pub ポイント
120

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

flutter pub add flutter_hot_toast

パッケージ概要

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

Flutter用の軽量でアニメーション付きのトースト通知パッケージ。React Hot Toastにインスパイアされています。最小限のセットアップで滑らかで視覚的に魅力的なトーストメッセージを提供します。Android、iOS、Web、macOS、Windows、Linuxなど複数のプラットフォームをサポートしています。モダンで魅力的な方法でユーザーへのフィードバックを簡潔に伝えるのに最適です。

用途

  • 迅速なユーザーのフィードバックを表示する
  • 成功またはエラーメッセージを表示する
  • 繊細なアニメーションでUIを向上させる
  • 一時的なアラートを提供する
  • 視覚的ヒントによるユーザーエクスペリエンスの向上

主な機能

  • スムーズなアニメーション
  • 最小構成
  • クロスプラットフォーム対応
  • カスタマイズ可能な外観
  • シンプルな API
  • レスポンシブデザイン

適している対象

  • 初心者のFlutter開発者
  • 軽量な通知が必要なアプリ
  • UIの仕上げに注力したプロジェクト
  • 迅速なプロトタイピング
  • 使いやすいインターフェース

注意事項

  • 基本的なスタイリングを超えるカスタマイズオプションが限られている
  • 複雑な通知ワークフローには適していません
  • 外部のアニメーションライブラリに依存しています
  • ダークモード用に追加のスタイリングが必要になる場合があります
  • シンプルで一時的なメッセージに最適

元の README

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

Flutter Hot Toast

A very cool and simple flutter toast that is highly inspired by React Hot Toast

Features

Video preview

Getting started

First wrap your Material App with GlobalLoaderOverlay

Widget build(BuildContext context) {
    return GlobalLoaderOverlay(
      child: MaterialApp(
        title: 'Flutter Demo',
        theme: ThemeData(
          primarySwatch: Colors.blue,
        ),
        home: const Home(),
      ),
    );
  }

Now you can call the toast to show in any part of your widget that is being encapsulated in the MaterialApp widget by:

context.loaderOverlay.show(
            widget: FlutterHotToast.loading(
              height: 70,
              width: 280,
              label: const Text(
                'loading...😬',
                style: TextStyle(
                  fontSize: 30,
                ),
              ),
            ),
          );

Usage

FloatingActionButton(
        child: const Icon(Icons.add),
        onPressed: () {
          context.loaderOverlay.show(
            widget: FlutterHotToast.loading(
              height: 70,
              width: 280,
              label: const Text(
                'loading...😬',
                style: TextStyle(
                  fontSize: 30,
                ),
              ),
            ),
          );
          Future.delayed(const Duration(seconds: 2), () {
            context.loaderOverlay.show(
              widget: FlutterHotToast.success(
                context,
                height: 70,
                width: 280,
                label: const Text(
                  'success ✅',
                  style: TextStyle(
                    fontSize: 30,
                  ),
                ),
              ),
            );
          });
        },
      ),

Additional information

This package uses lottie, loader_overlay and flutter_animate under the hood.

You can find the repository link at github to contribute to this project.


If you like this project, please follow me on github

カテゴリー

依存関係

依存関係一覧 3 件

ソースリポジトリ

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

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