Skip to content

Instantly share code, notes, and snippets.

@ffkev
Created July 30, 2024 18:58
Show Gist options
  • Save ffkev/9db16bec89a8fb1f1fa895ffcf20f5b1 to your computer and use it in GitHub Desktop.
Save ffkev/9db16bec89a8fb1f1fa895ffcf20f5b1 to your computer and use it in GitHub Desktop.
Code to enable focusable widgets across a Flutter Web app
void main() async {
WidgetsFlutterBinding.ensureInitialized();
GoRouter.optionURLReflectsImperativeAPIs = true;
usePathUrlStrategy();
await FlutterFlowTheme.initialize();
runApp(
FocusTraversalGroup(
policy: WidgetOrderTraversalPolicy(),
child: MyApp(),
),
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment