TF-3678 Support accessibility for Set as default identity checkbox

Signed-off-by: dab246 <tdvu@linagora.com>
This commit is contained in:
dab246
2025-04-24 14:06:28 +07:00
committed by Dat H. Pham
parent 3365a43bfc
commit 5f0476a105
2 changed files with 37 additions and 5 deletions
@@ -0,0 +1,25 @@
import 'package:flutter/material.dart';
class CheckboxSemantics extends StatelessWidget {
final Widget child;
final String label;
final bool value;
const CheckboxSemantics({
super.key,
required this.child,
required this.label,
required this.value,
});
@override
Widget build(BuildContext context) {
return Semantics(
label: label,
container: true,
checked: true,
value: '$value',
child: child,
);
}
}