0

I am trying to select radio in my flutter integration test. Here is my test.dart code. I do not get any error on running this lines, however the radio button do not get selected.

final roleRadioBtn = find.byKey(const ValueKey('rbRole')).at(2); await tester.tap(roleRadioBtn);

The developer code for radio button looks like this:

Radio userRoleRadio( BuildContext context, String role, String currentRole) { return Radio( key: const Key("rbRole"), value: role, groupValue: currentRole, onChanged: () { context.read().add(OnChange(role)); }, ); }

  • Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking. – Community Sep 26 '22 at 02:44

0 Answers0