tomeui_clickwheel 0.3.5
tomeui_clickwheel: ^0.3.5 copied to clipboard
Click-wheel input and focus navigation for TomeUI, with media controls, configurable press and hold gestures, and wheel-driven lists and grids.
TomeUI Clickwheel #
Click-wheel input and navigation for TomeUI. Turn wheel movement and button presses into focus navigation, media commands, volume changes, and configurable tap and hold gestures.
Installation #
flutter pub add tomeui tomeui_clickwheel
Usage #
Wrap the app's content in ClickWheelInput. Use WheelList for lists whose
selection should follow the wheel:
import 'package:tomeui/tomeui.dart';
import 'package:tomeui_clickwheel/tomeui_clickwheel.dart';
void main() {
runApp(TomeApp(
home: ClickWheelInput(
child: Scaffold(
body: WheelList(
autofocus: true,
itemExtent: 48,
onActivate: (index) => debugPrint('Selected row $index'),
children: const [Text('Albums'), Text('Artists'), Text('Settings')],
),
),
),
));
}
WheelList.builderbuilds long lists lazily.WheelGridandWheelRailprovide grid and rail selection.InputCapturetemporarily handles selected wheel commands.ClickWheelControllerdrives input from an emulator or other controls.WheelFeelandDarkInputconfigure navigation and behavior while asleep.
License #
MIT, copyright © 2026 Chris Hendrickson.