Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Inspector V2] Add a border around the message that no widget is selected #8524

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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