Skip to content

Instantly share code, notes, and snippets.

@ndugger
Created September 3, 2022 16:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ndugger/a099fe126e676ee40ab03892794827b6 to your computer and use it in GitHub Desktop.
Save ndugger/a099fe126e676ee40ab03892794827b6 to your computer and use it in GitHub Desktop.
Flutter Focus Management - FocusTraversalPolicy
import 'package:flutter/widgets.dart';
class App extends StatelessWidget {
const App({ super.key });
@override
Widget build(BuildContext context) {
return FocusTraversalGroup(
policy: WidgetOrderTraversalPolicy(),
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