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

story_painter のカバー
パッケージ詳細v0.0.4

story_painter

このパッケージは、Instagramのストーリーエディターのような描画体験を提供します。

30日間ダウンロード
40
いいね数
26
Pub ポイント
50

パッケージをインストール

flutter pub add story_painter

パッケージ概要

公開情報に基づく選定ガイドです。参考としてご利用ください。

StoryPainter は、Instagram のストーリーエディターに似た描画体験を可能にする Flutter パッケージです。キャンバス上でスケッチ、塗りつぶし、クリエイティブな要素の追加を行うための直感的なツールを提供します。シンプルさとパフォーマンスを意識して設計されており、タッチ入力、カスタマイズ可能なブラシ、レイヤー管理をサポートしています。ソーシャルメディアのストーリー、デジタルアート、ノートアプリなど、表現力のある描画機能が必要なアプリに最適です。このパッケージは Flutter プロジェクトにスムーズに統合でき、公開者によって積極的にメンテナンスされています。

用途

  • インタラクティブなストーリーボードの作成
  • デジタルスケッチの設計
  • 画像に注釈を追加する
  • クリエイティブなコンテンツツールの構築
  • ユーザー生成アートの有効化

主な機能

  • タッチベースの描画インターフェース
  • カスタマイズ可能なブラシ設定
  • 描画用のレイヤー対応
  • リアルタイムレンダリング
  • Flutter アプリとの簡単な統合

適している対象

  • ソーシャルメディアアプリ開発者
  • デジタルアーティスト
  • 教育アプリ開発者
  • メモアプリビルダー
  • クリエイティブツールデザイナー

注意事項

  • 制限されたプラットフォーム固有の最適化
  • 組み込みのエクスポート機能なし
  • 状態の永続化を手動で処理する必要があります
  • UIの一貫性を確保するために追加のスタイル設定が必要になる場合があります
  • GitHub リポジトリの外部メンテナンスに依存

元の README

関連するソースリポジトリの README 原文のスナップショットです。最新の内容はリポジトリをご覧ください。

story_painter

This package provides drawing experince like in story editor of Instagram.

story_painter is a modified version of the hand_signature.

Check out fast_color_picker from here.

Usage

Initialize the controller

StoryPainterControl painterControl = StoryPainterControl(
    type: PainterDrawType.shape,
    threshold: 3.0,
    smoothRatio: 0.65,
    velocityRange: 2.0,
    color: Colors.white,
    width: 8,
    onDrawStart: () {},
    onDrawEnd: () {},
);

Build StoryPainter with controller

StoryPainter(control: painterControl)

Change brush specs while drawing

painterControl.setColor(Colors.red);
painterControl.setWidth(24.0);

Export the image

ui.Image image = await painterControl.toImage(pixelRatio: 3.0);

Display or use the output

// Convert the data
ByteData byteData = await image.toByteData(format: ui.ImageByteFormat.png);
Uint8List pngBytes = byteData.buffer.asUint8List();

// Display with memory image
Image.memory(pngBytes)

カテゴリー

依存関係

依存関係一覧 1 件

ソースリポジトリ

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

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