Skip to content

Instantly share code, notes, and snippets.

@vsomayaji
Last active August 3, 2022 22:37
Show Gist options
  • Save vsomayaji/33deba3d9833eebc5b5a19803fd7dbcf to your computer and use it in GitHub Desktop.
Save vsomayaji/33deba3d9833eebc5b5a19803fd7dbcf to your computer and use it in GitHub Desktop.
import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart';
void main() {
WidgetsFlutterBinding.ensureInitialized();
// Auto-enable accessibility for our Blind and Low Vision customers.
RendererBinding.instance.setSemanticsEnabled(true);
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return const MaterialApp(
home: MyStatefulWidget(),
);
}
}
class MyStatefulWidget extends StatefulWidget {
const MyStatefulWidget({Key? key}) : super(key: key);
@override
State<MyStatefulWidget> createState() => _MyStatefulWidgetState();
}
class _MyStatefulWidgetState extends State<MyStatefulWidget> {
@override
Widget build(BuildContext context) {
return const Scaffold(
// Navigating with VoiceOver arrow keys, this gets read as
// "This is not a group., group", "This is not a group.", and
// "end of, This is not a group., group".
body: Text('This is not a group.'),
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment