Fluent2KeyFocus class

Keyboard reach for a control: it takes focus, answers keys, and draws Fluent's focus indicator while the keyboard, not a pointer, holds focus: a 2 stroke of strokeFocus2 on the control's own edge and a 1 stroke of strokeFocus1 inside it. Plumbing of the components; pages never place one.

Inheritance

Constructors

Fluent2KeyFocus({required bool enabled, required Map<LogicalKeyboardKey, VoidCallback> keys, required double radius, required Widget child, EdgeInsets ringInsets = EdgeInsets.zero, FocusNode? focusNode, bool autofocus = false, ValueChanged<bool>? onFocus, Key? key})
Gives child keyboard focus, keys and Fluent's focus indicator.
const

Properties

autofocus → bool
Whether it takes focus when it first builds.
final
child → Widget
The control's face.
final
enabled → bool
Whether the control takes focus and keys at all.
final
focusNode → FocusNode?
The caller's focus node; null keeps one of the widget's own.
final
hashCode → int
The hash code for this object.
no setterinherited
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
keys → Map<LogicalKeyboardKey, VoidCallback>
What each key does.
final
onFocus → ValueChanged<bool>?
Told when the keyboard's focus arrives (true) or leaves (false).
final
radius → double
The ringed object's corner radius.
final
ringInsets → EdgeInsets
How far inside child's box the ringed object stands.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

createElement() → StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() → State<Fluent2KeyFocus>
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, int wrapWidth = 65}) → 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