Skip to content

Instantly share code, notes, and snippets.

@ndugger
Created September 3, 2022 15:16
Flutter Focus Management - Actions
import 'package:flutter/services.dart';
import 'package:flutter/widgets.dart';
final appActions = {
NextFocusIntent: NextFocusAction(),
PreviousFocusIntent: PreviousFocusAction()
};
class App extends StatelessWidget {
const App({ super.key });
@override
Widget build(BuildContext context) {
return Actions(
actions: appActions,
child: Container()
);
}
}
void main() {
runApp(const App());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment