diff --git a/packages/devtools_app_shared/lib/src/ui/buttons.dart b/packages/devtools_app_shared/lib/src/ui/buttons.dart index d9915895a53..42ea761aa86 100644 --- a/packages/devtools_app_shared/lib/src/ui/buttons.dart +++ b/packages/devtools_app_shared/lib/src/ui/buttons.dart @@ -245,11 +245,10 @@ final class DevToolsToggleButton extends StatelessWidget { message: message, child: Container( padding: const EdgeInsets.symmetric(horizontal: denseSpacing), - child: MaterialIconLabel( - iconData: icon, - label: label, - minScreenWidthForTextBeforeScaling: - minScreenWidthForTextBeforeScaling, + child: ImageIconLabel( + Icon(icon, size: defaultIconSize), + label ?? '', + unscaledMinIncludeTextWidth: minScreenWidthForTextBeforeScaling, ), ), ),