Example #1
0
 public static void _focusAndEnsureVisible(
     FocusNode node,
     ScrollPositionAlignmentPolicy alignmentPolicy = ScrollPositionAlignmentPolicy.explicitPolicy
     )
 {
     node.requestFocus();
     Scrollable.ensureVisible(node.context, alignment: 1.0f, alignmentPolicy: alignmentPolicy);
 }
Example #2
0
 public override void invoke(FocusNode node, Intent intent)
 {
     _previousFocus = FocusManagerUtils.primaryFocus;
     node.requestFocus();
 }