File tree 2 files changed +20
-4
lines changed
2 files changed +20
-4
lines changed Original file line number Diff line number Diff line change @@ -812,6 +812,7 @@ class AlertDialog extends StatelessWidget {
812
812
style: contentTextStyle ?? dialogTheme.contentTextStyle ?? defaults.contentTextStyle! ,
813
813
child: Semantics (
814
814
container: true ,
815
+ explicitChildNodes: true ,
815
816
child: content,
816
817
),
817
818
),
Original file line number Diff line number Diff line change @@ -1700,7 +1700,12 @@ void main() {
1700
1700
theme: ThemeData (platform: TargetPlatform .iOS),
1701
1701
home: const AlertDialog (
1702
1702
title: Text ('title' ),
1703
- content: Text ('content' ),
1703
+ content: Column (
1704
+ children: < Widget > [
1705
+ Text ('some content' ),
1706
+ Text ('more content' ),
1707
+ ],
1708
+ ),
1704
1709
actions: < Widget > [ TextButton (onPressed: null , child: Text ('action' )) ],
1705
1710
),
1706
1711
),
@@ -1731,11 +1736,21 @@ void main() {
1731
1736
// node 4.
1732
1737
TestSemantics (
1733
1738
id: 6 ,
1734
- label: 'content' ,
1735
- textDirection: TextDirection .ltr,
1739
+ children: < TestSemantics > [
1740
+ TestSemantics (
1741
+ id: 7 ,
1742
+ label: 'some content' ,
1743
+ textDirection: TextDirection .ltr,
1744
+ ),
1745
+ TestSemantics (
1746
+ id: 8 ,
1747
+ label: 'more content' ,
1748
+ textDirection: TextDirection .ltr,
1749
+ ),
1750
+ ],
1736
1751
),
1737
1752
TestSemantics (
1738
- id: 7 ,
1753
+ id: 9 ,
1739
1754
flags: < SemanticsFlag > [
1740
1755
SemanticsFlag .isButton,
1741
1756
SemanticsFlag .hasEnabledState,
You can’t perform that action at this time.
0 commit comments