I am attempting to add a header, similar to an HTML h1 tag, to my login webpage created with Dart/Flutter. This is to comply with WCAG accessibility guidelines. To achieve this, I am utilizing the Semantics widget and setting the header property to true->
Widget _buildTitle(BuildContext context) {
return SizedBox(
height: 56,
width: double.infinity,
child: Semantics(
header: true,
label: context.loc.semanticsLogInText,
child: Text(
context.loc.semanticsLogInText,
style: Theme.of(context).textTheme.headlineLarge,
textAlign: TextAlign.left,
),
),
);
}
but is not working still the screen reader (voice over on my Mac) Is not getting any structure of the page. also tested with Wave and same result ->
voice over MAC ->


container: trueto theSemanticshelp? Does it work with a release mode app? Is the semantics node properly printed out withdebugDumpSemanticsTree()?