File tree Expand file tree Collapse file tree 2 files changed +24
-20
lines changed Expand file tree Collapse file tree 2 files changed +24
-20
lines changed Original file line number Diff line number Diff line change 3
3
// found in the LICENSE file.
4
4
5
5
import 'package:flutter/material.dart' ;
6
+ import 'package:pointer_interceptor/pointer_interceptor.dart' ;
6
7
7
8
import 'common_widgets.dart' ;
8
9
import 'theme.dart' ;
@@ -42,27 +43,29 @@ class DevToolsDialog extends StatelessWidget {
42
43
43
44
@override
44
45
Widget build (BuildContext context) {
45
- return AlertDialog (
46
- scrollable: scrollable,
47
- title: Column (
48
- children: [
49
- titleContent,
50
- includeDivider
51
- ? const PaddedDivider (
52
- padding: EdgeInsets .only (bottom: denseRowSpacing),
53
- )
54
- : const SizedBox (height: defaultSpacing),
55
- ],
46
+ return PointerInterceptor (
47
+ child: AlertDialog (
48
+ scrollable: scrollable,
49
+ title: Column (
50
+ children: [
51
+ titleContent,
52
+ includeDivider
53
+ ? const PaddedDivider (
54
+ padding: EdgeInsets .only (bottom: denseRowSpacing),
55
+ )
56
+ : const SizedBox (height: defaultSpacing),
57
+ ],
58
+ ),
59
+ contentPadding: const EdgeInsets .fromLTRB (
60
+ contentPadding,
61
+ 0 ,
62
+ contentPadding,
63
+ contentPadding,
64
+ ),
65
+ content: content,
66
+ actions: actions,
67
+ buttonPadding: const EdgeInsets .symmetric (horizontal: defaultSpacing),
56
68
),
57
- contentPadding: const EdgeInsets .fromLTRB (
58
- contentPadding,
59
- 0 ,
60
- contentPadding,
61
- contentPadding,
62
- ),
63
- content: content,
64
- actions: actions,
65
- buttonPadding: const EdgeInsets .symmetric (horizontal: defaultSpacing),
66
69
);
67
70
}
68
71
}
Original file line number Diff line number Diff line change @@ -45,6 +45,7 @@ dependencies:
45
45
path : ^1.8.0
46
46
perfetto_compiled :
47
47
path : ../../third_party/packages/perfetto_compiled
48
+ pointer_interceptor : ^0.9.3+3
48
49
provider : ^6.0.2
49
50
# Only used for debug mode logic.
50
51
shared_preferences : ^2.0.15
You can’t perform that action at this time.
0 commit comments