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

scribble 표지
패키지 상세v0.10.0+1

scribble

Scribble은 압력, 가변 선 너비 등을 지원하는 Flutter용 경량 자유 손그림 라이브러리입니다!

AndroidiOSWebmacOSWindowsLinux
30일 다운로드
350
좋아요
227
Pub 점수
140

패키지 설치

flutter pub add scribble

패키지 개요

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

Scribble은 압력 감지, 가변 선 두께 및 여러 플랫폼에서 부드러운 스트로크 렌더링을 지원하는 경량 Flutter 라이브러리입니다. 그림 그리기, 페인팅 또는 서명 캡처 기능을 개발하는 개발자를 위해 설계되었으며, 직관적인 터치 입력을 쉽게 통합할 수 있는 간단한 API를 제공합니다. Android, iOS, Web, macOS, Windows, Linux에서 원활하게 작동하여 크로스플랫폼 창의적 애플리케이션에 적합합니다. `flutter pub add scribble`를 통해 최소한의 설정으로, 무거운 오버헤드 없이 인터랙티브한 그리기 경험의 기반을 제공합니다.

사용 사례

  • 디지털 스케치 앱
  • 서명 캡처 인터페이스
  • 인터랙티브 화이트보드
  • 예술 및 디자인 도구
  • 교육용 그림 그리기 애플리케이션

주요 기능

  • 압력 감지 스트로크
  • 변경 가능한 선 두께
  • 크로스 플랫폼 호환성
  • 스무스 렌더링
  • 간단한 통합
  • 멀티터치 지원

적합한 대상

  • 그림 기능을 원하는 앱 개발자
  • 크리에이티브 도구 빌더
  • 교육 소프트웨어 제작자
  • 크로스 플랫폼 앱 팀
  • 인터랙티브 요소가 필요한 UI 디자이너

고려 사항

  • 제한된 고급 편집 도구
  • 내장된 내보내기 형식 없음
  • 캔버스 상태를 수동으로 처리해야 합니다
  • 고성능 애니메이션에 최적화되지 않음
  • 기본 제스처 인식만

원본 README

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

Scribble

Powered by Mason melos coverage

Scribble is a lightweight library for freehand drawing in Flutter supporting pressure, variable line width and more!

Scribble Demo

Installation 💻

❗ In order to start using Scribble you must have the Dart SDK installed on your machine.

Install via dart pub add:

dart pub add scribble

Features

  • Variable line width
  • Image Export
  • Pen and touch pressure support
  • Line simplification for making sketch files smaller
  • Choose which pointers can draw (touch, pen, mouse, etc.)
  • Lines get slimmer when the pen is moved more quickly
  • Line eraser support
  • Full undo/redo support using value_notifier_tools
  • Sketches are fully serializable to JSON
  • Export Sketches to PNG

Usage

You can find a full working example in the example directory

You can create a drawing surface by adding the Scribble widget to your widget tree and passing in a ScribbleNotifier.

import 'package:flutter/material.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';

class App extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Scribble(
        notifier: notifier,
      ),
    );
  }
}

Use the public methods on ScribbleNotifier to control the behavior (for example from a button in the UI):

notifier = ScribbleNotifier();


// Set color
notifier.setColor(Colors.black);

// Clear
notifier.clear();

// Undo
notifier.undo();

// Export to Image
notifier.renderImage(pixelRatio: 2.0);

// Line details will be simplified to save space from now on
notifier.setSimplificationFactor(2);

// Simplify the entire existing sketch
notifier.simplify();

// And more ... 

Additional information

As mentioned above, the package is still under development, but we already use it in the app we are currently developing.

Feel free to contribute, or open issues in our GitHub repo.

카테고리

의존성

의존성 목록 3 개

소스 저장소

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

아직 데이터가 없습니다.