Aus öffentlichen Paketdaten erstellte Orientierung.
Ein leichtgewichtiger Flutter-Paket, der entwickelt wurde, um eine swipebare Kartenoberfläche für die Anzeige einer Liste von Fotos zu erstellen, inspiriert von Tinder-artigen Interaktionen. Es ermöglicht reibungslose horizontale Swipes mit intuitiven Gesten und ist ideal für Fotogalerien oder die Entdeckung von bildbasierten Inhalten. Das Paket unterstützt mehrere Plattformen wie Android, iOS, Web, macOS, Windows und Linux und gewährleistet konsistente Ergebnisse über alle Plattformen hinweg. Auf Einfachheit ausgelegt, lässt es sich nahtlos in bestehende Flutter-Projekte integrieren, wobei nur minimale Konfiguration erforderlich ist.
Anwendungsfälle
Foto-Galerien
Bildbrowser-Apps
Tinder-ähnliche Schnittstellen
Inhaltsentdeckungsfunktionen
Soziale Medien-Feeds
Visual Storytelling-Apps
Hauptmerkmale
Gesten zum Wischen nach links/rechts
Glatte Animationsübergänge
Plattformübergreifende Unterstützung
Einfache API-Integration
Anpassbare Kartenansicht
Eingebaute Gestenerkennung
Geeignet für
Entwickler, die bildintensive Apps erstellen
Projekte, die swipebare Karten-UIs erfordern
Mobile und Web-Anwendungen mit visuellem Inhalt
Prototyping interaktiver Layouts
Apps mit benutzergetriebener Inhaltswahl
Hinweise
Eingeschränkte Anpassung über die grundlegende Gestaltung hinaus
Kein integrierter Bildladevorgang (erfordert externes Paket)
Kann eine Leistungsoptimierung für große Bildlisten erfordern
Nicht geeignet für komplexe Drag-and-Drop-Interaktionen
Abhängig von externen Abhängigkeiten für die Bildverarbeitung
Original-README
Originaler README-Schnappschuss aus dem verknüpften Quell-Repository. Aktuelle Inhalte finden Sie im Repository.
A simple flutter package for creating a swiping card layout for list of photos.
photo_card_swiper is a photo slider resembling card stack. Card comprises options to reflect like, dislike and favorite feature. The card elements are highly customisable. This layout is quite common in social media apps like Instagram, tinder etc.
Technical Notes:
The layout for pages is built using stack of draggable widgets using LayoutBuilder. This package supports cards to be tapped too.
Dev have options show 2 or 3 buttons, change the color, icon name and icon color of those buttons too.
How to use it.
the usage is very simple, just use the following code for default rendering of photos. Default values for Icons and Colors are taken care for easy usage.
Array of Photo data to be rendered as cards, Use PhotoCard object to group card details.
[PhotoCard]()
showLoading
Toggle the value to show/hide loading card
This is a optional parameter. value cane be true/false
hideCenterButton
Use this to have only 2 action buttons.
This is a optional parameter. Pass either true/false
leftButtonIcon
Left button Icon
This is a optional parameter. Pass IconData type value
rightButtonIcon
Right button Icon
This is a optional parameter. Pass IconData type value
centerButtonIcon
Center button Icon
This is a optional parameter. Pass IconData type value
leftButtonBackgroundColor
Left button Background Color
This is a optional parameter. Pass Color type value
rightButtonBackgroundColor
Right button Background Color
This is a optional parameter. Pass Color type value
centerButtonBackgroundColor
Center button Background Color
This is a optional parameter. Pass Color type value
leftButtonIconColor
Left button Icon Color
This is a optional parameter. Pass Color type value
rightButtonIconColor
Right button Icon Color
This is a optional parameter. Pass Color type value
centerButtonIconColor
Center button Icon Color
This is a optional parameter. Pass Color type value
leftButtonAction
Left button click handler
This is a optional parameter. Pass method to be called on click.
rightButtonAction
Right button click handler
This is a optional parameter. Pass method to be called on click.
centerButtonAction
Center button click handler
This is a optional parameter. Pass method to be called on click.
onCardTap
Background color of Tabbar
This is a optional parameter. Example pass method with completion handler. (int _index) { }
cardSwiped
Background color of Tabbar
This is a optional parameter. Example pass method with completion handler. (CardActionDirection _direction, int _index) { }
Attributes/Properties of PhotoCard
parameter
description
default
title
String to be displayed in title Text widget
empty string
description
String to be displayed in description Text widget
empty string
imagePath
Image path of image, either local assets folder image or http image path
empty string
isLocalImage
Value is true if imagePath is local assets folder image, Value is true if imagePath is http image path
true
Please note try to load max of 10 photos at one time. This helps stack to be neat. To show more photos load them on pagination basis using cardSwiped method.