All Projects → Bestfastfire → super_rich_text

Bestfastfire / super_rich_text

Licence: MIT license
The easiest way to style custom text snippets in flutter

Programming Languages

dart
5743 projects

Projects that are alternatives of or similar to super rich text

Attributedstring
基于Swift插值方式优雅的构建富文本, 支持点击长按事件, 支持不同类型过滤, 支持自定义视图等.
Stars: ✭ 294 (+2000%)
Mutual labels:  text, rich-text
Text
📑 Collaborative document editing using Markdown
Stars: ✭ 282 (+1914.29%)
Mutual labels:  text, rich-text
RSS-to-Telegram-Bot
A Telegram RSS bot that cares about your reading experience
Stars: ✭ 482 (+3342.86%)
Mutual labels:  rich-text
draftjs exporter
Library to convert Draft.js ContentState to HTML
Stars: ✭ 77 (+450%)
Mutual labels:  rich-text
txt
📝 Simple text editor/notepad with cloud sync.
Stars: ✭ 35 (+150%)
Mutual labels:  text
react-native-text-area
Simple and easy to use TextArea for React Native.
Stars: ✭ 20 (+42.86%)
Mutual labels:  text
ngx-text-diff
A Text Diff component for Angular
Stars: ✭ 49 (+250%)
Mutual labels:  text
Omeclone
A clone of omegle.com
Stars: ✭ 66 (+371.43%)
Mutual labels:  text
vesdk-android-demo
VideoEditor SDK: A fully customizable video editor for your app.
Stars: ✭ 90 (+542.86%)
Mutual labels:  text
textTinyR
Text Processing for Small or Big Data Files in R
Stars: ✭ 32 (+128.57%)
Mutual labels:  text
text2image-benchmark
Performance comparison of existing GAN based Text To Image algorithms. (GAN-CLS, StackGAN, TAC-GAN)
Stars: ✭ 25 (+78.57%)
Mutual labels:  text
text-rnn-tensorflow
Tutorial: Multi-layer Recurrent Neural Networks (LSTM, RNN) for text models in Python using TensorFlow.
Stars: ✭ 22 (+57.14%)
Mutual labels:  text
py midicsv
A Python port and library-fication of the midicsv tool by John Walker. If you need to convert MIDI files to human-readable text files and back, this is the library for you.
Stars: ✭ 55 (+292.86%)
Mutual labels:  text
Volvo-melbus
Volvo MELBUS Bluetooth audio input and remote control with Arduino Nano
Stars: ✭ 51 (+264.29%)
Mutual labels:  text
WindowTextExtractor
WindowTextExtractor allows you to get a text from any window of an operating system including asterisk passwords
Stars: ✭ 128 (+814.29%)
Mutual labels:  text
Last-Launcher
Lightweight: Faster than light, Low on memory
Stars: ✭ 148 (+957.14%)
Mutual labels:  text
text-style-editor
Text style editor widget for flutter
Stars: ✭ 25 (+78.57%)
Mutual labels:  text
tools-generation-detection-synthetic-content
Compilation of the state of the art of tools, articles, forums and links of interest to generate and detect any type of synthetic content using deep learning.
Stars: ✭ 107 (+664.29%)
Mutual labels:  text
quasar-tiptap
A modern WYSIWYG rich-text editor built on top of tiptap and Quasar for Vue.js.
Stars: ✭ 254 (+1714.29%)
Mutual labels:  rich-text
RichEditorView
Android 基于WebView的富文本编辑器 - 仿简书编辑器
Stars: ✭ 77 (+450%)
Mutual labels:  rich-text

Super Rich Text

Check it out at Pub.Dev

The easiest way to style custom text snippets

ezgif com-video-to-gif-3

Help Maintenance

I've been maintaining quite many repos these days and burning out slowly. If you could help me cheer up, buying me a cup of coffee will make my life really happy and get much energy out of it.

Buy Me A Coffee

Defaults

In standard markers the "*" is set to bold and "/" to italics as in the example:

SuperRichText(
  text: 'Text in *bold* and /italic/'
)

Others Markers

But you can change and set your own by passing a list of other labels:

SuperRichText(
  text: 'Text in *bold* and /italic/ with color llOrangell and color rrRedrr',
  style: TextStyle(
    color: Colors.black87,
    fontSize: 22
  ),
  othersMarkers: [
    MarkerText(
      marker: 'll',
      style: TextStyle(
        color: Colors.orangeAccent
      )
    ),
    MarkerText(
      marker: 'rr',
      style: TextStyle(
          color: Colors.redAccent
      )
    ),
  ],
)

Override Global Markers

Or even override "*" and "/" by setting global styles not to be used:

SuperRichText(
  text: 'Text in *bold* and /italic/ with color llOrangell and color rrRedrr',
  useGlobalMarkers: false, // set false
  style: TextStyle(
    color: Colors.black87,
    fontSize: 22
  ),
  othersMarkers: [
    MarkerText(
        marker: '*',
        style: TextStyle(
            color: Colors.orangeAccent
        )
    )...
  ],
)

Global Markers

The markers in the "othersMarkers" parameter are only for the widget in question, but you can also distinguish global markers:

SuperRichText.globalMarkerTexts.add(MarkerText(
    marker: '|',
    style: TextStyle(
      color: Colors.deepPurple
    )
  )
);

Links

It is also possible to insert functions or links directly into the text:

MarkerText.withUrl(
  marker: 'll',
  urls: [
    'https://www.google.com',
    'https://www.facebook.com'
  ],
  style: TextStyle(
    fontSize: 36,
    color: Colors.orangeAccent
  )
)

In this case, the link list should be in exactly the same sequence as the links within the text, having as base text: "this text has llLink1ll and llLink2ll", the example above would set Link1 as 'https://www.google.com' and Link2 as 'https://www.facebook.com'. Another point is that it already has a bold style and blue text by default.

Functions

With functions, the sequence is also the same, but the call should look like this:

MarkerText.withFunction(
  marker: '<ff>',
  functions: [
    () => print('function 1'),
    () => print('function 2')
  ],
  style: TextStyle(
    color: Colors.greenAccent
  )
)

Same Functions

When your text has multiple words that perform the same function and has the same style, you can use this:

MarkerText.withSameFunction(
  marker: '<sf>',
  function: print('same function'),
  style: TextStyle(
    color: Colors.greenAccent
  )
)
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].