blob: 9ae85d409fee9ace15aa48294fa3f61d11de80b8 [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.connectedAppInitialized) {
_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>('');