Skip to content

Commit 93b76d4

Browse files
committed
Revert "refactor: extract debug mode message as named constant"
This reverts commit 3968799.
1 parent 3968799 commit 93b76d4

1 file changed

Lines changed: 6 additions & 7 deletions

File tree

packages/devtools_app/lib/src/screens/performance/panes/rebuild_stats/rebuild_stats.dart

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,6 @@ import '../../../../shared/ui/common_widgets.dart';
2020
import '../flutter_frames/flutter_frame_model.dart';
2121
import 'rebuild_stats_model.dart';
2222

23-
@visibleForTesting
24-
const debugModeOnlyMessage =
25-
'Rebuild information is not available for this frame.\n'
26-
'Widget rebuild counts are only available when running '
27-
'an app in debug mode.';
28-
2923
class RebuildStatsView extends StatefulWidget {
3024
const RebuildStatsView({
3125
super.key,
@@ -103,7 +97,12 @@ class _RebuildStatsViewState extends State<RebuildStatsView>
10397
false;
10498
if (isProfileBuild) {
10599
return const Center(
106-
child: Text(debugModeOnlyMessage, textAlign: TextAlign.center),
100+
child: Text(
101+
'Rebuild information is not available for this frame.\n'
102+
'Widget rebuild counts are only available when running '
103+
'an app in debug-mode.',
104+
textAlign: TextAlign.center,
105+
),
107106
);
108107
}
109108
return Column(

0 commit comments

Comments
 (0)