33// found in the LICENSE file or at https://developers.google.com/open-source/licenses/bsd.
44
55import 'package:devtools_app_shared/service_extensions.dart' as extensions;
6- import 'package:flutter/cupertino.dart' show CupertinoIcons;
76import 'package:flutter/material.dart' ;
87
98import '../shared/analytics/constants.dart' as gac;
@@ -436,6 +435,13 @@ final httpEnableTimelineLogging =
436435 tooltip: 'Toggle HTTP timeline logging' ,
437436 );
438437
438+ /// The icon used for all "Select widget mode" buttons, both in DevTools and in
439+ /// the Flutter framework.
440+ ///
441+ /// This is a generic unicode icon which lets us have one consistent icon across
442+ /// Material and Cupertino-styled apps.
443+ const selectWidgetModeIcon = IconData (0x1F74A );
444+
439445// Legacy extension to show the inspector and enable inspector select mode.
440446final toggleOnDeviceWidgetInspector =
441447 ToggleableServiceExtensionDescription <bool >.from (
@@ -445,7 +451,7 @@ final toggleOnDeviceWidgetInspector =
445451 // toggling widget select mode as it is the only way to toggle that mode.
446452 title: 'Select Widget Mode' ,
447453 shortTitle: 'Select' ,
448- iconData: CupertinoIcons .cursor_rays ,
454+ iconData: selectWidgetModeIcon ,
449455 gaScreenName: gac.inspector,
450456 gaItem: gac.showOnDeviceInspector,
451457 tooltip: 'Toggle select widget mode' ,
@@ -459,7 +465,7 @@ final toggleOnDeviceWidgetInspector =
459465final toggleSelectWidgetMode = ToggleableServiceExtensionDescription <bool >.from (
460466 extensions.toggleSelectWidgetMode,
461467 title: 'Select widget mode' ,
462- iconData: CupertinoIcons .cursor_rays ,
468+ iconData: selectWidgetModeIcon ,
463469 gaScreenName: gac.inspector,
464470 gaItem: gac.selectWidgetMode,
465471 tooltip: 'Toggle select widget mode' ,
0 commit comments