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

markdown_editable_textinput のカバー
パッケージ詳細v2.2.0

markdown_editable_textinput

TextField の内容を簡単に Markdown に変換できる TextField ウィジェットです。

30日間ダウンロード
454
いいね数
191
Pub ポイント
60

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

flutter pub add markdown_editable_textinput

パッケージ概要

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

テキスト入力をMarkdown形式にシームレスに変換するように設計されたFlutterのTextFieldウィジェットです。ユーザーが直接コンテンツを入力しながら、自動的にMarkdown構文を適用できるため、軽量なメモ作成やリッチテキストフォーマット付きのコンテンツ作成に最適です。フォームやエディタにスムーズに統合され、複雑な設定なしでリアルタイムのMarkdownレンダリングを提供します。シンプルさと使いやすさを重視して開発されており、キーボードショートカットまたは手動タグによって太字、イタリック、見出し、リストなどの一般的なMarkdown機能をサポートしています。最小限ながらも強力なMarkdown入力ソリューションを探している開発者にぴったりです。

用途

  • シンプルなメモアプリ
  • Markdownベースのコンテンツ作成
  • 豊富なテキスト書式設定を備えたフォーム入力
  • 軽量ブログエディタ
  • リアルタイム Markdown プレビュー

主な機能

  • リアルタイムでのMarkdown変換
  • 直感的なキーボードショートカット
  • 一般的な Markdown 構文をサポートしています
  • 最小限のセットアップとインテグレーション
  • 洗練された、集中したUIデザイン

適している対象

  • 軽量エディタを構築する開発者
  • 基本的なMarkdown入力が必要なアプリ
  • テキスト書式設定付きの教育ツール
  • Markdown を使用するコンテンツ作成者
  • 複雑さよりも単純さを重視するプロジェクト

注意事項

  • 基本的な Markdown 機能に限定
  • 組み込みのプレビュー描画なし
  • 高度なMarkdownパースには適していません
  • 複雑な書式設定を手動で処理する必要があります
  • プレビューが必要な場合、外部のMarkdownレンダリングに依存します

元の README

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

Build Status pub package codecov

markdown_editable_textinput

MarkdownEditableTextInput is a TextField Widget that allow you to convert easily what's in the TextField to Markdown.

Features

  • [x] Convert to Bold, Italic, Strikethrough
  • [x] Convert to Code, Quote, Links
  • [x] Convert to Heading (H1, H2, H3, H4, H5, H6) and Links
  • [x] Support text direction
  • [x] Dialog mode to enter link and picture
  • [x] Possibility to add custom buttons to the action bar

Demo

Link by Dialog demo

Usage

The color of the MarkdownTextInput is defined by the color set in your Theme :

  • primaryColor: Cursor's color
  • colorScheme.secondary: MarkdownTextInput's borders
  • cardColor: Background color of MarkdownTextInput
Attributes
Attributes Example Value Description
Function onTextChanged Callback used to retrieve the text in parent's Widget
String initialValue "Lorem Ipsum" Display an initial value in MarkdownTextInput's field
Function validators Add validators to the MarkdownTextInput
String label "Description" Display a label in MarkdownTextInput
TextDirection textDirection TextDirection.rtl Change text direction
int maxLines 3 The maximum of lines that can be display in the input
List actions [MarkdownType.bold, MarkdownType.italic] Actions the editor will handle
TextEditingController controller TextEditingController() Pass your own controller. Can be used to clear the input for example
TextStyle textStyle Theme.of(context).textTheme.bodyText2 Overrides input text style
bool insertLinksByDialog; true Choose to use dialog or not to insert link
bool insertImageByDialog; true Choose to use dialog or not to insert an image
bool insertImageByDialog; true Choose to use dialog or not to insert an image
bool customCancelDialogText; String? Text used by dialog for close dialog action
bool customSubmitDialogText; String? Text used by dialog for validate dialog action
Example

You can see an example of how to use this package here

カテゴリー

依存関係

依存関係一覧 3 件

ソースリポジトリ

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