showDevToolsDialog function
void
showDevToolsDialog({
- required BuildContext context,
- required String title,
- required Widget content,
- List<
Widget> actions = const <Widget>[],
Implementation
void showDevToolsDialog({
required BuildContext context,
required String title,
required Widget content,
List<Widget> actions = const <Widget>[],
}) {
unawaited(
showDialog(
context: context,
builder: (context) => DevToolsDialog(
title: DialogTitleText(title),
includeDivider: false,
content: content,
actionsAlignment:
actions.isNotEmpty ? MainAxisAlignment.spaceBetween : null,
actions: [
...actions,
const DialogCloseButton(),
],
),
),
);
}