code_clipboard 0.0.1-beta.1 copy "code_clipboard: ^0.0.1-beta.1" to clipboard
code_clipboard: ^0.0.1-beta.1 copied to clipboard

A Code Clipboard to show and copy code

code_clipboard #

This package provides a simple Code Clipboard for Flutter to show and copy code snippets.

Usage #

CodeClipboard(
  code: 'Line 1\nLine 2',
)

Options #

Parameter Type Mandatory Description
code String The code displayed in the clipboard.
radius BorderRadius The radius of the clipboard card.
foregroundColor Color The color of the code text. Will be ignored if textStyle is set.
backgroundColor Color The background color of the clipboard.
textStyle TextStyle The TextStyle of the displayed text/code. foregroundColor is ignored if this parameter is set.
iconColor Color The color of the copy icon. Does not apply to copyIcon.
copyIcon Widget Option to customize the icon to your icon theme. Defaults to Icon(Icons.copy).
0
likes
110
pub points
0%
popularity

Publisher

unverified uploader

A Code Clipboard to show and copy code

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

clipboard, flutter, google_fonts

More

Packages that depend on code_clipboard