Created
July 30, 2024 18:58
-
-
Save ffkev/9db16bec89a8fb1f1fa895ffcf20f5b1 to your computer and use it in GitHub Desktop.
Code to enable focusable widgets across a Flutter Web app
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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