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

floodfill_image 표지
패키지 상세v0.0.8

floodfill_image

제공된 이미지에서 페인트 버킷 기능을 사용할 수 있는 Flutter 위젯입니다.

AndroidiOSWebmacOSWindowsLinux
30일 다운로드
99
좋아요
71
Pub 점수
140

패키지 설치

flutter pub add floodfill_image

패키지 개요

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

floodfill_image 패키지는 이미지 위에서 페인트 버킷 기능을 가능하게 하는 Flutter 위젯을 제공하여 사용자가 선택한 색상으로 연속된 영역을 채울 수 있도록 합니다. 정의된 경계 내에서 색상을 채워야 하는 인터랙티브한 그림 그리기 및 편집 애플리케이션에 이상적입니다. 이 패키지는 Android, iOS, Web, macOS, Windows, Linux 등 여러 플랫폼을 지원하며 광범위한 호환성을 보장합니다. 기존의 Flutter 앱에 쉽게 통합되며, 이미지 위젯에서 홍수 채우기 작업을 구현하기 위한 간단한 API를 제공합니다.

사용 사례

  • 인터랙티브 이미지 색칠 앱
  • 디지털 페인팅 도구
  • 이미지 편집 기능
  • 교육용 그림 그리기 애플리케이션
  • 사용자 중심의 그래픽 색 채우기

주요 기능

  • 페인트 버킷 채우기 기능
  • 크로스 플랫폼 지원
  • Image 위젯과의 간단한 통합
  • 실시간 채우기 업데이트
  • 다양한 이미지 소스를 지원합니다

적합한 대상

  • 그림 도구를 구축하는 앱 개발자
  • 교육 소프트웨어 제작자
  • Flutter를 사용하는 디지털 예술가
  • 인터랙티브 이미지 조작이 필요한 앱
  • 이미지에 빠르게 색을 채워야 하는 사용자

고려 사항

  • 큰 또는 복잡한 이미지에서는 성능이 달라질 수 있습니다
  • 고급 마스킹 없이 픽셀 기반 채우기에 제한됨
  • 정밀도를 위해 터치 입력을 신중하게 처리해야 합니다
  • 고해상도 이미지에 대한 최적화가 필요할 수 있습니다
  • 벡터 기반 이미지 편집에 적합하지 않습니다

원본 README

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

Flood Fill Image

Version GitHub license Support

Overview

Flutter widget that can use paint bucket functionality on the provided image using Queue-Linear Flood Fill Algorithm by J. Dunlap. For more info check out my blog : Flood Fill in Flutter

Kindly like:+1: the package at pub dev or star:star: the repo in github if you find this library useful. :wink:

demo dog gif

Usage

FloodFillImage(
    imageProvider: AssetImage("assets/dog.jpg"),
    fillColor: Colors.amber,
    avoidColor: [Colors.transparent, Colors.black],
)

Parameters

Name Type Description
imageProvider ImageProvider The image to display via ImageProvider.
You can use AssetImage or NetworkImage.
fillColor Color Color use for filling the area.
isFillActive bool Set false if you want to disable on touch fill function.
Default value is true.
avoidColor List<Color> List of color that determines to which Color is/are needed to be avoided upon touch.
Note: Nearest color shade is applied.
tolerance int Set fill value tolerance that ranges from 0 to 100.
Default value is 8.
width int Width of the image. Parent widget width will be prioritize if it's provided and less than the image width.
height int Height of the image. Parent widget height will be prioritize if it's provided and less than the image height.
alignment AlignmentGeometry Alignment of the image.
loadingWidget Widget Widget to show while the image is being processed on initialization.
It uses CircularProgressIndicator by default.
onFloodFillStart Function(Offset position,Image image) Callback function that returns the touch position and an Image from dart:ui when flood fill starts.
Note: Touch coordinate is relative to the image dimension.
onFloodFillEnd Function(Image image) Callback function that returns an Image from dart:ui when flood fill ended.

Coffee

Buy Me A Coffee

License

MIT License, see the LICENSE.md file for details.

카테고리

의존성

의존성 목록 1 개

소스 저장소

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

아직 데이터가 없습니다.