I am creating an app for android Tv using Flutter.I want to implement a feature in which if an InkWell has focus there should be boundary visible.
Container(
decoration: BoxDecoration(
border: Border.all(
color: _focusNode.hasFocus ? Colors.black : Colors.transparent)),
child: InkWell(
focusNode: _focusNode,
onTap: () {
if (onTap != null) {
onTap();
}
},
onDoubleTap: onDoubleTap,
borderRadius: borderRadius ?? BorderRadius.circular(50),
child: child),
);
2
Answers
Try by adding this line in inkwell:
your are not proper manage focus request.