|
1 | 1 | import 'dart:async';
|
| 2 | +import 'dart:ui'; |
2 | 3 |
|
3 | 4 | import 'package:collection/collection.dart';
|
4 | 5 | import 'package:flutter/foundation.dart';
|
@@ -42,26 +43,28 @@ void _showActionSheet(
|
42 | 43 | useSafeArea: true,
|
43 | 44 | isScrollControlled: true,
|
44 | 45 | builder: (BuildContext _) {
|
45 |
| - return SafeArea( |
46 |
| - minimum: const EdgeInsets.only(bottom: 16), |
47 |
| - child: Padding( |
48 |
| - padding: const EdgeInsets.fromLTRB(16, 0, 16, 0), |
49 |
| - child: Column( |
50 |
| - crossAxisAlignment: CrossAxisAlignment.stretch, |
51 |
| - mainAxisSize: MainAxisSize.min, |
52 |
| - children: [ |
53 |
| - // TODO(#217): show message text |
54 |
| - Flexible(child: InsetShadowBox( |
55 |
| - top: 8, bottom: 8, |
56 |
| - color: DesignVariables.of(context).bgContextMenu, |
57 |
| - child: SingleChildScrollView( |
58 |
| - padding: const EdgeInsets.only(top: 16, bottom: 8), |
59 |
| - child: ClipRRect( |
60 |
| - borderRadius: BorderRadius.circular(7), |
61 |
| - child: Column(spacing: 1, |
62 |
| - children: optionButtons))))), |
63 |
| - const ActionSheetCancelButton(), |
64 |
| - ]))); |
| 46 | + return Semantics( |
| 47 | + role: SemanticsRole.menu, |
| 48 | + child: SafeArea( |
| 49 | + minimum: const EdgeInsets.only(bottom: 16), |
| 50 | + child: Padding( |
| 51 | + padding: const EdgeInsets.fromLTRB(16, 0, 16, 0), |
| 52 | + child: Column( |
| 53 | + crossAxisAlignment: CrossAxisAlignment.stretch, |
| 54 | + mainAxisSize: MainAxisSize.min, |
| 55 | + children: [ |
| 56 | + // TODO(#217): show message text |
| 57 | + Flexible(child: InsetShadowBox( |
| 58 | + top: 8, bottom: 8, |
| 59 | + color: DesignVariables.of(context).bgContextMenu, |
| 60 | + child: SingleChildScrollView( |
| 61 | + padding: const EdgeInsets.only(top: 16, bottom: 8), |
| 62 | + child: ClipRRect( |
| 63 | + borderRadius: BorderRadius.circular(7), |
| 64 | + child: Column(spacing: 1, |
| 65 | + children: optionButtons))))), |
| 66 | + const ActionSheetCancelButton(), |
| 67 | + ])))); |
65 | 68 | });
|
66 | 69 | }
|
67 | 70 |
|
|
0 commit comments