패키지, 저장소 및 앱 카테고리 검색

lightbox 표지
패키지 상세v0.1.0

lightbox

웹 앱의 라이트박스처럼 작동하는 Flutter 플러그인입니다. URL, 자산, 파일, 바이트 등 다양한 유형의 이미지를 슬라이드쇼 오버레이로 표시하고 제어할 수 있어 유용합니다.

AndroidiOSmacOSWindowsLinux
30일 다운로드
39
좋아요
33
Pub 점수
150

패키지 설치

flutter pub add lightbox

패키지 개요

공개 정보를 바탕으로 생성한 선택 가이드입니다.

lightbox 패키지는 개발자가 웹 스타일의 라이트박스 오버레이를 만들어 이미지를 슬라이드쇼 형식으로 표시할 수 있도록 해주는 플러터 플러그인입니다. URL, 자산, 파일, 바이트 데이터 등 다양한 이미지 소스를 지원하여 다양한 사용 사례에 유연하게 대응할 수 있습니다. 사용자 정의 가능한 컨트롤을 통해 전체 화면에서 이미지를 보는 사용자 경험을 향상시킵니다. 이 플러그인은 안드로이드, iOS, macOS, Windows, 리눅스 등 여러 플랫폼과 호환되어 광범위한 접근성을 제공합니다. 갤러리, 제품 전시 또는 임mersive 이미지 보기 기능이 필요한 앱에 이상적입니다.

사용 사례

  • 이미지 갤러리
  • 제품 이미지 뷰어
  • 전체 화면 사진 슬라이드쇼
  • 소셜 미디어 이미지 공유
  • 문서 이미지 미리보기

주요 기능

  • URL, 자산, 파일 및 바이트 이미지 소스를 지원합니다
  • 사용자 정의 가능한 탐색 컨트롤
  • 크로스 플랫폼 호환성
  • 부드러운 전환 애니메이션
  • 사용자 정의 가능한 오버레이 스타일

적합한 대상

  • 이미지 콘텐츠를 갖춘 모바일 및 데스크톱 앱
  • 전자상거래 애플리케이션
  • 사진 공유 플랫폼
  • 콘텐츠가 풍부한 교육 앱
  • 인터랙티브 문서

고려 사항

  • 적절한 이미지 로드 처리가 필요합니다
  • 큰 이미지 세트와 함께 성능에 영향을 줄 수 있음
  • 접근성에 대한 주의 깊은 구성이 필요합니다
  • 이미지 표시만 가능
  • 고급 기능을 위해 외부 종속성에 의존합니다

원본 README

연결된 소스 저장소의 README 원문 스냅샷입니다. 최신 내용은 저장소에서 확인하세요.

lightbox

A simple package to recreate web lightbox in Flutter. Ligthbox enables you to show images in an overlay widget with controls to slide between images.

The source code is 100% Dart, and everything resides in the /lib folder.

Show some :heart: and star the repo to support the projectd

Open Source Love License

Installation

Add lightbox as a dependency in your pubspec.yaml file.

dependencies:
  lightbox: 0.1.0

image

Then import lightbox:

import 'package:lightbox/lightbox.dart';

Example usage

import 'package:lightbox/lightbox.dart';
          // images variable is an array of paths or url of images to load in the lightbox.
                   ListView.separated(
                                       separatorBuilder: (context, index) => SizedBox(width: 10.0),
                                       scrollDirection: Axis.horizontal,
                                       itemCount: imagesAsset.length,
                                       itemBuilder: (context, position) {
                                         return GestureDetector(
                                           child: Container(
                                               height: 200,
                                               width: 200,
                                               child: Image.asset(
                                                 imagesAsset[position],
                                                 fit: BoxFit.cover,
                                               )),
                                           onTap: () {
                                             Navigator.push(
                                                 context,
                                                 LightBoxRoute(
                                                     builder: (BuildContext context) {
                                                       return LightBox(
                                                       images:imagesAsset,
                                                         initialIndex: position,
                                                         imageType: ImageType.ASSET,
                                                       );
                                                     },
                                                     dismissible: false));
                                           },
                                         );
                                       }),

You can find a more detailed example here

📃 License

Copyright (c) 2020 Lemovou Ivan

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Getting Started

For help getting started with Flutter, view our online documentation.

For help on editing package code, view the documentation.

카테고리

의존성

의존성 목록 1 개

소스 저장소

이 패키지를 사용하는 프로젝트

아직 데이터가 없습니다.