Repository navigation
Closed as duplicate
Closed as duplicate
Copy link
Labels
r: duplicateIssue is closed as a duplicate of an existing issueIssue is closed as a duplicate of an existing issue
Description
Steps to reproduce
- Run the application
- ensureSemantics is enable at the start
- Click on Open Dialog Button
Expected results
When you try to click on Open Dialog Button dialog is displayed
Actual results
You can't click on Open Dialog Button and instead RadioItem is selected
Code sample
Code sample
import 'package:flutter/material.dart';
import 'package:flutter/semantics.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) => MaterialApp(
title: 'Simple App',
theme: ThemeData(
primarySwatch: Colors.blue,
),
home: const MyHomePage(),
);
}
class MyHomePage extends StatefulWidget {
const MyHomePage({super.key});
@override
State<MyHomePage> createState() => _MyHomePageState();
}
class _MyHomePageState extends State<MyHomePage> {
String? _selectedValue;
@override
void initState() {
super.initState();
SemanticsBinding.instance.ensureSemantics();
}
void _showDialog(BuildContext context) {
showDialog(
context: context,
builder: (context) => AlertDialog(
title: const Text('Dialog Title'),
content: const Text(
'This is a simple dialog opened from the PlexCell button.',
),
actions: [
TextButton(
onPressed: () {
Navigator.of(context).pop();
},
child: const Text('Close'),
),
],
),
);
}
void _showCellTapDialog(BuildContext context) {
showDialog(
context: context,
builder: (context) => AlertDialog(
title: const Text('Cell Tap Dialog'),
content: const Text(
'This dialog was opened by tapping on the PlexCell itself.',
),
actions: [
TextButton(
onPressed: () {
Navigator.of(context).pop();
},
child: const Text('Close'),
),
],
),
);
}
@override
Widget build(BuildContext context) => Scaffold(
appBar: AppBar(
title: const Text('RadioListTile Demo'),
),
body: Padding(
padding: const EdgeInsets.all(16.0),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
const Text(
'Select an option:',
style: TextStyle(fontSize: 18, fontWeight: FontWeight.bold),
),
const SizedBox(height: 16),
Expanded(
child: ListView(
children: [
RadioListTile<String>(
title: const Text('Sample Option 1'),
subtitle: const Text(
'This RadioListTile has a trailing button',
),
value: 'option1',
groupValue: _selectedValue,
onChanged: (value) {
setState(() {
_selectedValue = value;
});
},
secondary: ElevatedButton(
onPressed: () => _showDialog(context),
child: const Text('Open Dialog'),
),
),
RadioListTile<String>(
title: const Text('Sample Option 2'),
subtitle: const Text(
'This RadioListTile opens a dialog on tap',
),
value: 'option2',
groupValue: _selectedValue,
onChanged: (value) {
setState(() {
_selectedValue = value;
});
},
),
],
),
),
],
),
),
);
}
Screenshots or Video
Screenshots / Video demonstration
Untitled.mov
Logs
Logs
[Paste your logs here]Flutter Doctor output
Doctor output
[Paste your output here]Metadata
Metadata
Assignees
Labels
r: duplicateIssue is closed as a duplicate of an existing issueIssue is closed as a duplicate of an existing issue
Activity
huycozy commentedon Oct 22, 2025
Duplicate of #146063. Please follow that issue for updates.
secondarywidget inRadioListTilebecomes noninteractable via mouse in ^3.19.0 #146063github-actions commentedon Nov 5, 2025
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.