Taha Tesser
6a0e0bfdc5
Enable explicitChildNodes for the AlertDialog content (#149130)
fixes [AlertDialog content semantics merged](https://github.com/flutter/flutter/issues/147574)
### Code sample
<details>
<summary>expand to view the code sample</summary>
```dart
import 'package:flutter/material.dart';
void main() => runApp(const MyApp());
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
debugShowCheckedModeBanner: false,
// showSemanticsDebugger: true,
home: Scaffold(
body: SafeArea(
child: Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: <Widget>[
const Column(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
Text('Some text'),
Text('More text'),
],
),
Builder(builder: (BuildContext context) {
return ElevatedButton(
onPressed: () {
showDialog<void>(
context: context,
builder: (BuildContext context) {
return AlertDialog(
title: const Text('Dialog Title'),
content: const Column(
children: <Widget>[
Text('Some text'),
Text('More text'),
],
),
actions: <Widget>[
TextButton(
onPressed: () {
Navigator.of(context).pop();
},
child: const Text('Close'),
),
],
);
},
);
},
child: const Text('Open Dialog'),
);
}),
],
),
),
),
),
);
}
}
```
</details>
### Before vs After


2024-05-30 09:59:22 +00:00
..
2024-04-09 19:35:07 +00:00
2024-02-28 13:55:50 -08:00
2024-04-09 19:35:07 +00:00
2024-03-24 18:01:17 +00:00
2024-04-25 10:32:45 -07:00
2024-04-25 10:32:45 -07:00
2024-05-28 16:35:29 -07:00
2024-05-28 16:35:29 -07:00
2024-02-28 13:55:50 -08:00
2024-02-28 13:55:50 -08:00
2024-05-28 16:35:29 -07:00
2024-03-19 17:58:13 +00:00
2024-05-29 18:46:04 +00:00
2024-02-28 13:55:50 -08:00
2024-03-19 17:58:13 +00:00
2024-05-18 10:41:56 -07:00
2024-05-09 16:31:54 -06:00
2024-05-09 16:31:54 -06:00
2024-05-18 10:41:56 -07:00
2024-05-22 04:58:01 +00:00
2024-05-10 23:37:05 +00:00
2024-05-18 10:41:56 -07:00
2024-05-10 23:37:05 +00:00
2024-02-28 13:55:50 -08:00
2024-03-24 18:01:17 +00:00
2024-04-03 15:54:34 +00:00
2024-04-01 09:42:51 +00:00
2024-05-28 16:35:29 -07:00
2024-04-29 22:14:01 +00:00
2024-04-26 04:18:24 +00:00
2024-05-18 10:41:56 -07:00
2024-05-30 09:59:22 +00:00
2024-05-10 22:08:59 +00:00
2024-05-09 16:31:54 -06:00
2024-05-15 18:37:07 +00:00
2024-04-08 20:47:13 +00:00
2024-05-10 21:55:49 +00:00
2024-02-28 13:55:50 -08:00
2024-05-21 19:15:21 +00:00
2024-02-28 13:55:50 -08:00
2024-02-28 13:55:50 -08:00
2024-05-09 15:35:07 +00:00
2024-05-28 16:35:29 -07:00
2024-02-28 13:55:50 -08:00
2024-02-28 13:55:50 -08:00
2024-05-28 16:35:29 -07:00
2024-05-18 10:41:56 -07:00
2024-03-19 17:58:13 +00:00
2024-05-18 10:41:56 -07:00
2024-04-24 11:56:32 +00:00
2024-05-28 16:35:29 -07:00
2024-04-09 19:35:07 +00:00
2024-02-07 02:44:21 +00:00
2024-04-09 19:35:07 +00:00
2024-05-18 10:41:56 -07:00
2024-05-28 16:35:29 -07:00
2024-02-27 22:49:13 +00:00
2024-05-28 11:27:55 -07:00
2024-05-18 10:41:56 -07:00
2024-03-19 17:58:16 +00:00
2024-02-21 08:59:24 +00:00
2024-04-03 15:49:38 -07:00
2024-03-19 17:58:13 +00:00
2024-05-07 02:39:09 +00:00
2024-04-09 19:35:07 +00:00
2024-03-11 23:04:57 +00:00
2024-04-09 19:35:07 +00:00
2024-03-19 17:58:13 +00:00
2024-04-09 19:35:07 +00:00
2024-03-19 17:58:13 +00:00
2024-05-08 11:05:24 +00:00
2024-05-28 16:35:29 -07:00
2024-05-21 16:44:05 +00:00
2024-02-28 13:55:50 -08:00
2024-05-28 16:35:29 -07:00
2024-03-13 18:07:59 +00:00
2024-05-28 16:35:29 -07:00
2024-05-28 16:35:29 -07:00
2024-05-28 16:35:29 -07:00
2024-03-19 17:58:13 +00:00
2024-03-27 16:43:10 -07:00
2024-05-20 17:43:03 +00:00
2024-05-18 10:41:56 -07:00
2024-05-22 04:58:01 +00:00
2024-03-19 17:58:13 +00:00
2024-05-28 16:35:29 -07:00
2024-05-28 16:35:29 -07:00
2024-04-29 08:26:19 +00:00
2024-03-13 16:31:50 +00:00
2024-03-19 17:58:13 +00:00
2024-05-29 00:20:18 +00:00
2024-03-19 17:58:13 +00:00
2024-02-27 22:49:13 +00:00
2024-04-24 11:56:32 +00:00
2024-04-24 11:56:32 +00:00
2024-04-24 09:06:17 -07:00
2024-05-28 16:35:29 -07:00
2024-03-19 17:58:13 +00:00
2024-05-29 04:31:32 +00:00
2024-04-15 16:06:07 +00:00
2024-03-28 01:20:55 +00:00
2024-05-18 10:41:56 -07:00
2024-05-22 04:58:01 +00:00
2024-03-19 17:58:13 +00:00
2024-05-07 20:54:09 +00:00
2024-05-18 10:41:56 -07:00
2024-04-17 07:59:07 +00:00
2024-05-28 23:06:10 +00:00
2024-02-28 13:55:50 -08:00
2024-05-23 22:25:51 +00:00
2024-05-23 22:25:51 +00:00
2024-03-01 06:40:47 +00:00
2024-03-06 20:41:04 +00:00
2024-02-28 13:55:50 -08:00
2024-05-18 10:41:56 -07:00
2024-03-19 17:58:13 +00:00
2024-04-09 19:35:07 +00:00
2024-05-18 10:41:56 -07:00
2024-02-23 19:02:22 +00:00
2024-03-28 01:20:55 +00:00
2024-05-28 16:35:29 -07:00
2024-02-21 00:34:11 +00:00