Pakete, Repositories und App-Kategorien suchen

Paketdetailsv1.0.4

fancy_dialog

Benutzerdefiniertes Warnungsdialogfeld, inspiriert von FancyGifDialog für Android. Neu ist, dass Sie zwischen zwei Themen wählen können: Fancy und Flat, sowie Bilder und Gifs aus Ihren Assets laden können.

30-Tage-Downloads
52
Likes
35
Pub-Punkte
20

Paket installieren

flutter pub add fancy_dialog

Paketübersicht

Aus öffentlichen Paketdaten erstellte Orientierung.

FancyDialog ist ein Flutter-Paket, das anpassbare Warnungsdialogfelder bietet, die von FancyGifDialog für Android inspiriert sind. Es unterstützt zwei Themen – Fancy und Flat – und ermöglicht Benutzern das Laden von Bildern und GIFs aus lokalen Ressourcen. Ideal zur Verbesserung der App-Oberfläche mit visuell ansprechenden Pop-ups, vereinfacht es die Integration animierter und stilvoller Dialogfelder ohne komplizierte Einrichtung. Das Paket ist leichtgewichtig und für den einfachen Einsatz in mobilen Anwendungen mit ansprechender Benutzerinteraktion konzipiert.

Anwendungsfälle

  • Benutzerdefinierte Warnungen mit Animationen anzeigen
  • Anzeigen von Bild- oder GIF-basierten Benachrichtigungen
  • Verbesserung der Benutzer-Onboarding-Erlebnisse
  • Themenbasierte Bestätigungsdialoge erstellen
  • Verbesserung der visuellen Rückmeldung in Apps

Hauptmerkmale

  • Zwei Themenoptionen: Fancy und Flat
  • Unterstützung für statische Bilder und GIFs aus Assets
  • Einfache API für schnelle Integration
  • Anpassbare Dialogdarstellung
  • Leichte und schnelle Darstellung

Geeignet für

  • Mobile App Entwickler, die attraktive Dialoge suchen
  • Projekte, die animierte oder thematische Warnungen benötigen
  • Apps, die sich auf Benutzererfahrung und Engagement konzentrieren
  • Entwickler, die Flutter für Android und iOS verwenden
  • UI-Designer, die flexible Dialogkomponenten wollen

Hinweise

  • Erfordert, dass Assets in der pubspec.yaml korrekt konfiguriert sind
  • Beschränkt auf Flutter-Anwendungen für mobile Plattformen
  • Die GIF-Unterstützung hängt vom flutter_gif-Paket ab
  • Kann die Bundle-Größe bei großen Assets erhöhen
  • Die Anpassung von Themen erfordert grundlegendes Wissen über Flutter-Styling

Original-README

Originaler README-Schnappschuss aus dem verknüpften Quell-Repository. Aktuelle Inhalte finden Sie im Repository.

Fancy Flutter Alert Dialog

Hits

Build Status Coverage Status GitHub release (latest by date)

GitHub stars Twitter Follow

Pure Dart and Flutter package for Android,IOS and Web

A flutter Package to show custom alert Dialog,you can choose between two themes 'Fancy' and 'Flat'

The package is available in fancy_dialog

Usage

Import the Package

add this dependencies to your app dependencies: fancy_dialog: ^1.0.4

Use the Package

add this import statement import 'package:fancy_dialog/fancy_dialog.dart';

to show a Basic Dialog

showDialog(
              context: context,
              builder: (BuildContext context) => FancyDialog(
                title: "Fancy Gif Dialog",
                descreption: "This is descreption for fancy gif,you can load any image or gif to be displayed :), and you can choose between two themes Fancy and Flat",
                )
            ) 
          

the title and descreption are required and the rest of the parameters are :

  • okFun : the function to be called when the user press Ok button (positive button)

  • cancelFun : the function to be called when the user press cancel button (negative button)

  • cancelColor : the color of the negative button, by default it's Colors.grey

  • oklColor : the color of the positive button, by default it's Colors.pink

  • ok : the text of the positive button, by default it's 'OK !'

  • cancel : the text of the negative button, by default it's 'cancel'

  • animationType : The type of the animation, there are 4 types,which are :

    • FancyAnimation.LEFT_RIGHT the default one
    • FancyAnimation.RIGHT_LEFT
    • FancyAnimation.TOP_BOTTOM
    • FancyAnimation.BOTTOM_TOP
  • gifpath : the path for the image or the GIF to be displayed,or you can choose between 6 Gifs the package provides :

    • FancyGif.MOVE_FORWARD the default one
    • FancyGif.CHECK_MAIL
    • FancyGif.FUNNY_MAN
    • FancyGif.PLAY_MEDIA
    • FancyGif.SUBMIT
    • FancyGif.SHARE
  • theme : Fancy or Flat

    • FancyTheme.FANCY
    • FancyTheme.FLAT

The dialog will be dissmised by default when the user click Ok or cancel, DON'T ADD Navigator.of(context).pop() to okFun or cancelFun

ScreenShots

Contribution

Feel free to contribute,report a bug or to suggest a feature

Thank you :)

Kategorien

Quell-Repository

Projekte, die dieses Paket verwenden

Noch keine Daten verfügbar.