code_clipboard 0.0.1-beta.1

SDKflutter
Platformandroidioswindowslinuxmacosweb

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

ParameterTypeMandatoryDescription
codeString✅The code displayed in the clipboard.
radiusBorderRadius➖The radius of the clipboard card.
foregroundColorColor➖The color of the code text. Will be ignored if textStyle is set.
backgroundColorColor➖The background color of the clipboard.
textStyleTextStyle➖The TextStyle of the displayed text/code. foregroundColor is ignored if this parameter is set.
iconColorColor➖The color of the copy icon. Does not apply to copyIcon.
copyIconWidget➖Option to customize the icon to your icon theme. Defaults to Icon(Icons.copy).