mirror of
https://github.com/Yubico/yubioath-flutter.git
synced 2024-12-23 10:11:52 +03:00
a11y toast msg
This commit is contained in:
parent
c90ba130ce
commit
f4fe5ff8ba
@ -17,6 +17,7 @@
|
||||
import 'dart:async';
|
||||
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter/rendering.dart';
|
||||
|
||||
class Toast extends StatefulWidget {
|
||||
final String message;
|
||||
@ -149,5 +150,7 @@ void Function() showToast(
|
||||
Overlay.of(context).insert(entry!);
|
||||
});
|
||||
|
||||
SemanticsService.announce(message, TextDirection.ltr);
|
||||
|
||||
return close;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user