string_typography 0.0.1-dev.2
string_typography: ^0.0.1-dev.2 copied to clipboard
A string converter that converts strings to widgets typography.
Introduction #
This package is a String converter which is usable to convert plain string to be widgets.
Our goal is all of stuff can be customizeable.
Note: this plugin is still under development, and some APIs not be available yet. Feed back and Pull requesrt are most welcome!
Features #
Paragraph #
selectable text #
you can configure the text to be selectable/non selectable text.
Links #
- Automatically link detection
- Event handler of a link. It will be a call back like
yourfunction(url, key){} - Styling your links
Hyper Links #
- Automatically hyperlink detection with
regular expression. for now the hyperlink pattern is like this ->[text](url) - Event handler of it
- Styiling your links
Tags #
- Automatically tag detection, for now we create #tag and @tag
- Event handler of it
- Styiling your tags
Email #
- Automatically email detection
- Event handler of it
- Styling your email text
Inline Code #
if you don't know what is "inline code", "inline code is like this" (some characters that marked).
- Auto detection with regular expression. example:
`text`
- Decoration of the box
- Styling your text
Common #
it is some customization that you can use to build your own typography, the default is
**bold**to be bold*italic*to be italic_underline_to be underline
Image #
- Automatically Image build that depend on your text example
<img src="url" width="50px" height="50px" />
Code Bloc #
- Automatically build code block that depen on your text (using triple backtick)
- Copy clippboard configuration
- Code highlihgt
New features? #
- feel free to request features at https://github.com/nggepe/string_typography/issues
Options #
There are some options that you have to know, these are:
commonSettingis arguments to setup your own typographylinkConfigurationis an argument to setup your link and hyperlink. Link is all pattern that match with url, and the hyperlink is the hidden link at the primary text. With this argument, you can configure yourTextStyle, and theevents.tagConfigurationis an argument to setup your tags. For now, we only support with @ and #. With this argument, you can configure yourTextStyle, and theevents.emailConfigurationis an arguments to setup your text style and events when the text match with email.inlineCodeConfiguration, if you don't know what it is, may you can seethis<-- is an inline code. So,inlineCodeConfigurationis an argument that you can use to setup yourTextStylebackground or other.globalStyleis a TextStyle that you can use to setup your global text.