All Projects → mehdizarepour → text-style-editor

mehdizarepour / text-style-editor

Licence: MIT license
Text style editor widget for flutter

Programming Languages

dart
5743 projects
swift
15916 projects

Projects that are alternatives of or similar to text-style-editor

instagram-text-editor
An Instagram like text editor Flutter widget that helps you to change your text style.
Stars: ✭ 66 (+164%)
Mutual labels:  widget, text, text-editor, flutter-widget, dart-package
Motion-Tab-Bar
A beautiful animated flutter widget package library. The tab bar will attempt to use your current theme out of the box, however you may want to theme it.
Stars: ✭ 237 (+848%)
Mutual labels:  widget, flutter-widget, dart-package
CheckableTextView
A simple and flexible Checked TextView or Checkable TextView
Stars: ✭ 108 (+332%)
Mutual labels:  widget, text
backdrop
Backdrop implementation in flutter.
Stars: ✭ 203 (+712%)
Mutual labels:  widget, flutter-widget
Qmarkdowntextedit
A C++ Qt QPlainTextEdit widget with markdown highlighting support and a lot of other extras
Stars: ✭ 182 (+628%)
Mutual labels:  widget, text-editor
flutter easyloading
✨A clean and lightweight loading/toast widget for Flutter, easy to use without context, support iOS、Android and Web
Stars: ✭ 1,021 (+3984%)
Mutual labels:  widget, flutter-widget
incrementally loading listview
An extension of the Flutter ListView widget for incrementally loading items upon scrolling
Stars: ✭ 172 (+588%)
Mutual labels:  widget, flutter-widget
Gradient Widgets
Flutter widgets wrapped with gradients
Stars: ✭ 290 (+1060%)
Mutual labels:  widget, text
Zep
Zep - An embeddable editor, with optional support for using vim keystrokes.
Stars: ✭ 477 (+1808%)
Mutual labels:  text, text-editor
baseline
New method for creating leading on the web
Stars: ✭ 31 (+24%)
Mutual labels:  fonts, text
react-native-styled-text
Styled Text for React Native
Stars: ✭ 57 (+128%)
Mutual labels:  fonts, text
Art
🎨 ASCII art library for Python
Stars: ✭ 1,026 (+4004%)
Mutual labels:  fonts, text
Left
Distractionless Writing Tool
Stars: ✭ 1,538 (+6052%)
Mutual labels:  text, text-editor
Femto
A toy text editor with no dependencies written in Ruby
Stars: ✭ 34 (+36%)
Mutual labels:  text, text-editor
flutter sliding tutorial
User onboarding library with smooth animation of objects and background colors
Stars: ✭ 127 (+408%)
Mutual labels:  flutter-widget, dart-package
flutter json view
📄 Displaying json models in a Flutter widget
Stars: ✭ 28 (+12%)
Mutual labels:  widget, flutter-widget
Mle
Flexible terminal-based text editor (C)
Stars: ✭ 378 (+1412%)
Mutual labels:  text, text-editor
Zmjimageeditor
ZMJImageEditor is a picture editing component like WeChat. It is powerful and easy to integrate, supporting rendering, text, rotation, tailoring, mapping and other functions. (ZMJImageEditor 是一个和微信一样图片编辑的组件,功能强大,极易集成,支持绘制、文字、旋转、剪裁、贴图等功能)
Stars: ✭ 470 (+1780%)
Mutual labels:  text, text-editor
Finalcut
A text-based widget toolkit
Stars: ✭ 244 (+876%)
Mutual labels:  widget, text
React Native Text Size
Measure text accurately before laying it out and get font information from your App.
Stars: ✭ 238 (+852%)
Mutual labels:  fonts, text

TextStyleEditor

Version GitHub license

Text style editor widget for flutter

Show some ❤️ and star the repo to support the project

Features

  • Edit TextStyle
  • Change TextAlign
  • Taggle Caps lock

Screenshot

editor light editor dark

Installation

Add text_style_editor: ^1.0.0 to your pubspec.yaml dependencies. And import it:

import 'package:text_style_editor/text_style_editor.dart';

How to use

Simply create a TextStyleEditor widget, and pass the required params:

Params

  • fonts (List<String>): List of the font families that you want to use in the Editor.
    • required
  • textStyle (TextStyle): The initial text style that you want to edit.
    • required
  • textAlign (TextAlign): The initial text align that you want to change.
    • required
  • paletteColors (List<Color>): List of the colors that you want to use in the Editor's palette.
    • optional
  • onTextAlignEdited (Function(TextStyle)): Callback will be called every time textStyle has changed.
    • optional
  • onTextStyleEdited (Function(TextAlign)): Callback will be called every time textAlign has changed.
    • optional
  • onCpasLockTaggle (Function(bool)): Callback will be called every time caps lock has changed to off or on.
    • optional
  • onToolbarActionChanged (Function(EditorToolbarAction)): Callback will be called every time editor's tool has changed.
    • optional

Example

TextStyleEditor(
  fonts: fonts,
  textStyle: textStyle,
  textAlign: textAlign,
  paletteColors: paletteColors,
  onTextAlignEdited: (align) {
    setState(() {
      textAlign = align;
    });
  },
  onTextStyleEdited: (style) {
    setState(() {
      textStyle = textStyle.merge(style);
    });
  },
  onCpasLockTaggle: (caps) {
    // Uppercase or lowercase letters
  },
)

To see complete example: examples

MIT License

Copyright (c) 2020 Mehdi Zarepour

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].