showDevToolsDialog function

void showDevToolsDialog({
  1. required BuildContext context,
  2. required String title,
  3. required Widget content,
  4. 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(),
        ],
      ),
    ),
  );
}