Tinyrack

Focus Ring

Give Flutter product composites a keyboard-only Tinyrack focus indicator.

Give a product-specific composite the same keyboard-only focus indicator as Tinyrack controls.

Contract

AxisContract
Input modalityPass raw focus through focused. The ring appears for keyboard navigation and stays hidden for pointer focus.
LayoutThe ring paints inside the child bounds without changing its size or position.

Install

Add the package, then import its public library.

flutter pub add tinyrack_ui
import 'package:tinyrack_ui/tinyrack_ui.dart';

Playground

Usage

import 'package:material_ui/material_ui.dart';
import 'package:tinyrack_ui/tinyrack_ui.dart';

TRFocusRing(
  focused: focusNode.hasFocus,
  child: const CompositeControl(),
)

API

TRFocusRing properties

PropType / defaultPurpose
focusedbool · requiredReports whether the composite currently owns focus.
childWidget · requiredSupplies the composite whose bounds receive the ring.