TF-3678 Support accessibility for loading icon in the mail list area
Signed-off-by: dab246 <tdvu@linagora.com>
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class IconSemantics extends StatelessWidget {
|
||||
final Widget child;
|
||||
final String label;
|
||||
|
||||
const IconSemantics({
|
||||
super.key,
|
||||
required this.child,
|
||||
required this.label,
|
||||
});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Semantics(
|
||||
label: label,
|
||||
container: true,
|
||||
image: true,
|
||||
child: child,
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user