Skip to content

Commit

Permalink
[Inspector V2] Add a border around the message that no widget is sele…
Browse files Browse the repository at this point in the history
…cted (#8524)
  • Loading branch information
elliette authored Nov 21, 2024
1 parent 77612d2 commit 7ce5efa
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

import 'package:devtools_app_shared/ui.dart';
import 'package:devtools_app_shared/utils.dart';
import 'package:flutter/widgets.dart';

Expand Down Expand Up @@ -38,19 +39,18 @@ class _WidgetDetailsState extends State<WidgetDetails> with AutoDisposeMixin {
builder: (context, _, _) {
final node = selectedNode;
if (node == null) {
return const Center(
child: Text(
'Select a widget to view its layout and properties.',
textAlign: TextAlign.center,
overflow: TextOverflow.clip,
return const RoundedOutlinedBorder(
child: Center(
child: Text(
'Select a widget to view its layout and properties.',
textAlign: TextAlign.center,
overflow: TextOverflow.clip,
),
),
);
}

return DetailsTable(
controller: controller,
node: node,
);
return DetailsTable(controller: controller, node: node);
},
);
}
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 7ce5efa

Please sign in to comment.