Kategorien, Pakete und Repositories suchen

Cover von imageview360
Paketdetailsv1.3.0

imageview360

Ein Flutter-Paket, das die 360-Grad-Ansicht von Bildern mit Dreh- und Gestenanpassungen bereitstellt.

AndroidiOSWebmacOSWindowsLinux
30-Tage-Downloads
145
Likes
198
Pub-Punkte
150

Paket installieren

flutter pub add imageview360

Paketübersicht

Aus öffentlichen Paketdaten erstellte Orientierung.

imageview360 ist ein Flutter-Paket, das immersive 360-Grad-Bildansicht mit glatter Drehung und anpassbaren Gesten ermöglicht. Es erlaubt Benutzern, Panoramabilder durch Wischen oder Ziehen zu erkunden, was es ideal für virtuelle Touren, Produktpräsentationen und interaktive Medien macht. Das Paket unterstützt mehrere Plattformen wie Android, iOS, Web, macOS, Windows und Linux und gewährleistet breite Kompatibilität. Entwickler können Drehgeschwindigkeit, Empfindlichkeit und Interaktionsverhalten feinjustieren, um sie an das Design ihrer App anzupassen. Auf Leistung und Benutzerfreundlichkeit ausgelegt, integriert es sich nahtlos in Flutter-Anwendungen.

Anwendungsfälle

  • virtuelle Realitätserlebnisse
  • Produktvisualisierung
  • Interaktive Fotogalerien
  • Bildungsinhalt 360
  • Immobilienbesichtigungen

Hauptmerkmale

  • Glatte 360-Grad-Drehung
  • Anpassbare Gestensteuerung
  • Plattformübergreifende Unterstützung
  • Leistungsstarkes Rendern
  • Einstellbare Drehgeschwindigkeit
  • Reaktive Touch-Interaktionen

Geeignet für

  • Apps, die eine immersivere Bildexploration benötigen
  • E-Commerce-Plattformen mit 3D-Produktansichten
  • Reise- und Tourismus-Apps
  • Bildungswerkzeuge mit Panoramainhalten
  • Interaktive Erzählungs-Apps

Hinweise

  • Erfordert Quellbilder mit hoher Auflösung
  • Kann die Leistung auf Low-End-Geräten beeinträchtigen
  • Beschränkt auf statische 360-Bilder (kein Video)
  • Die Anfangskonfiguration erfordert möglicherweise Bildvorverarbeitung
  • Die Gestenanpassung erfordert Kenntnisse der Flutter-Eingabehandlung

Original-README

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

imageview360

A Flutter package which provides 360 view of the images with rotation and gesture customisations.

Supported Dart Versions

Dart SDK version >= 2.12.0

Demo Gif

imageview360 Demo

Installation

Pub

Add the Package

dependencies:
  imageview360: ^1.2.0

How to use

Import the package in your dart file

import 'package:imageview360/imageview360.dart';

Basic usage :
ImageView360(
     key: UniqueKey(),
     imageList: imageList,
),

Note: For ImageView360 to show instant changes on hot reload, you need to provide UniqueKey() so that the widget rebuilds every time.

Customisable usage :
ImageView360(
    key: UniqueKey(),                                           
    imageList: imageList,                                       
    autoRotate: true,                                           //Optional
    rotationCount: 2,                                           //Optional
    rotationDirection: RotationDirection.anticlockwise,         //Optional
    frameChangeDuration: Duration(milliseconds: 50),            //Optional
    swipeSensitivity: 2,                                        //Optional
    allowSwipeToRotate: true,                                   //Optional
    onImageIndexChanged: (currentImageIndex) {                  //Optional
                          print("currentImageIndex: $currentImageIndex");
                        },
)

Note: For better experience always precache image before providing the images to the widget as follows.

Example for loading and precaching images from assets :
 List<ImageProvider> imageList = List<ImageProvider>();
   for (int i = 1; i <= 52; i++) {
      imageList.add(AssetImage('assets/sample/$i.png'));
// To precache images so that when required they are loaded faster.
      await precacheImage(AssetImage('assets/sample/$i.png'), context);
    }
Mandatory fields
Attribute Type Usage
imageList List The list of images to be displayed
Customisable fields
Attribute Type Default Value
autoRotate bool false
rotationCount int 1
rotationDirection RotationDirection RotationDirection.clockwise
frameChangeDuration Duration Duration(milliseconds: 80)
swipeSensitivity int 1 (Note : Range allowed is 1-5 , less than 1 would be considered 1 and more than 5 would be considered 5)
allowSwipeToRotate bool true
onImageIndexChanged Function(int) (currentImageIndex){}

Blog Post

To have a better understanding how this package works under the hood, checkout my blog post: 360 degree image showcase in Flutter

Created & Maintained By

Harpreet Singh

Damanpreet Singh

License

Copyright 2020 Harpreet Singh & Damanpreet Singh

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Kategorien

Quell-Repository

Projekte, die dieses Paket verwenden

Noch keine Daten verfügbar.