This commit is contained in:
Dennis Fokin 2024-10-25 16:25:27 +02:00
commit f2477b15af
No known key found for this signature in database
GPG Key ID: 870B88256690D8BC

View File

@ -17,6 +17,7 @@
import 'dart:async'; import 'dart:async';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart';
import 'package:local_notifier/local_notifier.dart'; import 'package:local_notifier/local_notifier.dart';
import '../message.dart'; import '../message.dart';
@ -156,6 +157,8 @@ UserInteractionController _dialogUserInteraction(
Widget? icon, Widget? icon,
void Function()? onCancel, void Function()? onCancel,
}) { }) {
String a11yLabel = '$title $description';
SemanticsService.announce(a11yLabel, TextDirection.ltr);
var completed = false; var completed = false;
var wasPopped = false; var wasPopped = false;
final controller = _UserInteractionController( final controller = _UserInteractionController(