Support long click with d-pad in Flutter and Android TV

Viewed 25

I'm working on an Android TV app built with Flutter. I found many articles/answers about focusable/clickable widgets, but nothing about long click support for d-pad which is a very popular UX pattern in TV apps.

Inkwell onLongPressed callback is not called when "select" button is pressed for a long time.

To detect simple clicks, I'm currently using this widget implementation:

Shortcuts(
      shortcuts: <LogicalKeySet, Intent>{
        LogicalKeySet(LogicalKeyboardKey.select): ActivateIntent(),
      },

Do you know a way to detect these long clicks?

Thanks

0 Answers
Related