dartlangeditorflutterflutter-appsflutter-examplesflutter-packageflutter-widgetquillquill-deltaquilljsreactquillrich-textrich-text-editorwysiwygwysiwyg-editor
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
391 B
11 lines
391 B
import 'package:flutter/material.dart'; |
|
|
|
/// Provides utiulity widgets. |
|
abstract class UtilityWidgets { |
|
/// Conditionally wraps the [child] with [Tooltip] widget if [message] |
|
/// is not null and not empty. |
|
static Widget maybeTooltip({required Widget child, String? message}) => |
|
(message ?? '').isNotEmpty |
|
? Tooltip(message: message!, child: child) |
|
: child; |
|
}
|
|
|