Alex ec429e0196
[conductor] Added a generic tooltip widget (#92187)
* Added a generic tooltip widget

* added the header
2021-10-20 14:05:09 -04:00

31 lines
761 B
Dart

// Copyright 2014 The Flutter 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/material.dart';
/// Displays detailed info message in a tooltip widget.
class InfoTooltip extends StatelessWidget {
const InfoTooltip({
Key? key,
required this.tooltipName,
required this.tooltipMessage,
}) : super(key: key);
final String tooltipName;
final String tooltipMessage;
@override
Widget build(BuildContext context) {
return Tooltip(
padding: const EdgeInsets.all(10.0),
message: tooltipMessage,
child: Icon(
Icons.info,
size: 16.0,
key: Key('${tooltipName}Tooltip'),
),
);
}
}