Closed
Description
I have some mdx:
ButtonBar(children: [
TextButton(
onPressed: () =>
// Navigator.pop(context) would work here, too
context.goNamed('family', params: {'fid': widget.family.id}),
child: const Text('Cancel'),
),
ElevatedButton(
onPressed: () {
if (_formKey.currentState!.validate()) {
final person = Person(
id: 'p${widget.family.people.length + 1}',
name: _nameController.text,
age: int.parse(_ageController.text),
);
widget.family.people.add(person);
context.goNamed('person', params: {
'fid': widget.family.id,
'pid': person.id,
});
}
},
child: const Text('Create'),
),
]),
codehike seems to be reading line 4 as a focus string when it isn't. I'm getting:
Error: Invalid number "pop(context" in focus string
Metadata
Metadata
Assignees
Labels
No labels