Aus öffentlichen Paketdaten erstellte Orientierung.
flutter_swiper_view ist eine leistungsstarke Karussellkomponente für Flutter mit verschiedenen Layoutoptionen und unendlichem Schleifenbetrieb. Für flüssige, reaktive Swip-Erlebnisse auf Android, iOS, Web, macOS, Windows und Linux entwickelt, unterstützt sie sowohl horizontales als auch vertikales Scrollen mit anpassbaren Animationen. Ideal für Bildgalerien, Produktpräsentationen und interaktive Content-Slider, bietet sie eine flexible Grundlage für dynamische Benutzeroberflächen. Das Paket wird aktiv gepflegt und ist mit allen wichtigen Plattformen kompatibel.
Anwendungsfälle
Bildgalerien
Produktkarussells
Onboarding-Bildschirme
Interaktive Inhaltsschieber
Bildschirmorientierte Navigation
Hauptmerkmale
Mehrere Layouttypen
Unendliche Schleifenunterstützung
Plattformübergreifende Kompatibilität
anpassbare Animationen
Glatte Swip-Gesten
Reaktives Design
Geeignet für
Entwickler, die interaktive Benutzeroberflächen erstellen
Apps, die visuelle Inhaltscarousels benötigen
Multiplattform-Mobil- und Desktop-Apps
Onboarding-Erlebnisse
E-Commerce-Produktanzeigen
Hinweise
Kann eine Leistungsoptimierung für große Datensätze erfordern
Eingeschränkte integrierte Paginierungssteuerung
Benutzerdefinierte Stilisierung für anspruchsvolle Designs erforderlich
Nicht für sehr hohe Aktualisierungshäufigkeiten optimiert
Original-README
Originaler README-Schnappschuss aus dem verknüpften Quell-Repository. Aktuelle Inhalte finden Sie im Repository.
The best swiper for flutter , with multiple layouts, infinite loop. Compatible with Android & iOS.
:sparkles::sparkles: New Features:PageTransformer
Finally, we have PageTransformer like android, just set a transformer to Swiper,
it returns a widget that has been transformed. For now, only support for layout DEFAULT.
Thanks to @FlutterRocks ,you've done great job 👏.
The control also extends from SwiperPlugin,set SwiperControl() to show default control buttons.
Parameter
Default
Description
iconPrevious
Icons.arrow_back_ios
The icon data to display previous control button
iconNext
Icons.arrow_forward_ios
The icon data to display next.
color
Theme.of(context).primaryColor
Control button color
size
30.0
Control button size
padding
const EdgeInsets.all(5.0)
Control button padding
Controller
The Controller is used to control the index of the Swiper, start or stop autoplay.You can create a controller by SwiperController() and save the instance by futher usage.
Method
Description
void move(int index, {bool animation: true})
Move to the spicified index,with animation or not
void next({bool animation: true})
Move to next
void previous({bool animation: true})
Move to previous
void startAutoplay()
Start autoplay
void stopAutoplay()
Stop autoplay
Autoplay
Parameter
Default
Description
autoplayDelay
3000
Autoplay delay milliseconds.
autoplayDisableOnInteraction
true
If set true, autoplay is disabled when use swipes.
The CustomLayoutOption is designed to describe animations.
It is very easy to specify every state of items in Swiper.
CustomLayoutOption(
startIndex: -1, /// Which index is the first item of array below
stateCount: 3/// array length
)..addRotate([ // rotation of every item
-45.0/180,
0.0,
45.0/180
])..addTranslate([ /// offset of every itemconstOffset(-370.0, -40.0),
constOffset(0.0, 0.0),
constOffset(370.0, -40.0)
])