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