blob: 80ddb1809f0f9817e538b6f92fa910140324133f [file] [log] [blame]
// Copyright 2021 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/foundation.dart';
import 'globals.dart';
void generateDevToolsTitle() {
if (!serviceManager.hasConnection) {
_devToolsTitle.value = 'DevTools for Flutter & Dart';
return;
}
_devToolsTitle.value = serviceManager.connectedApp.isFlutterAppNow
? 'Flutter DevTools'
: 'Dart DevTools';
}
ValueListenable<String> get devToolsTitle => _devToolsTitle;
ValueNotifier<String> _devToolsTitle = ValueNotifier<String>('');