ThemedCodeEditor class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- ThemedCodeEditor
Constructors
-
ThemedCodeEditor({Key? key, String? labelText, Widget? label, void onChanged(String)?, String? value, bool disabled = false, List<
String> errors = const [], EdgeInsets padding = const EdgeInsets.all(10), FocusNode? focusNode, VoidCallback? onSubmitted, LayrzSupportedLanguage language = LayrzSupportedLanguage.lcl, BoxConstraints? constraints, List<String> customInserts = const [], Future<List< onLintTap(String)?, Future<ThemedCodeError> >String?> onRunTap(String)?}) -
const
Properties
- constraints → BoxConstraints?
-
constraints is the constraints of the editor
final
-
customInserts
→ List<
String> -
customInsers
is a list of Strings to add a shurtcut to insert them in the editorfinal - disabled → bool
-
disabled indicates if the field is disabled or not
final
-
errors
→ List<
String> -
errors is the list of strings with the errors of the field
final
- focusNode → FocusNode?
-
The focusNode of the field
If you don't provide a focus node, the widget will create one for you.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- label → Widget?
-
Is the label of the field, you should use or label or labelText but not both. Also, labelText helps you
to handle dark mode or related things
final
- labelText → String?
-
Is the label of the field, you should use or label or labelText but not both. Also, labelText helps you
to handle dark mode or related things
final
- language → LayrzSupportedLanguage
-
language is the language of the editor
final
- onChanged → (void Function(String)?)
-
onChanged is the function that will be called when the text changes
final
-
onLintTap
→ (Future<
List< Function(String)?)ThemedCodeError> > -
onLintTap is the function that will be called when the user taps on a lint button
final
-
onRunTap
→ (Future<
String?> Function(String)?) -
onRunTap is the function that will be called when the user taps on the run button
final
- onSubmitted → VoidCallback?
-
onSubmitted is the function that will be called when the user submits the field
This is useful when you want to perform an action when the user press enter.
final
- padding → EdgeInsets
-
padding is the padding of the field
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- value → String?
-
The value of the text field
If you don't provide a value, the widget will create one for you.
Important: Is you perform changes on the value of this field, consider using the controller, because when the
widget is build again, the value will not propagate to internal variables.
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< ThemedCodeEditor> -
Creates the mutable state for this widget at a given location in the tree.
override
-
debugDescribeChildren(
) → List< DiagnosticsNode> -
Returns a list of DiagnosticsNode objects describing this node's
children.
inherited
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringDeep(
{String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a string representation of this node and its descendants.
inherited
-
toStringShallow(
{String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a one-line detailed description of the object.
inherited
-
toStringShort(
) → String -
A short, textual description of this widget.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- font → AppFont
-
no setter