パッケージ、リポジトリ、アプリカテゴリを検索

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 件

ソースリポジトリ

このパッケージを使用しているプロジェクト

データはまだありません。