debugButton static method

Widget debugButton(
  1. BuildContext context
)

Implementation

static Widget debugButton(BuildContext context) {
  if (!debugMode) return SizedBox.shrink();

  return Positioned(
    right: 16,
    bottom: 16,
    child: FloatingActionButton.small(
      backgroundColor: Colors.red.withOpacity(0.7),
      child: Icon(Icons.bug_report, size: 20),
      onPressed: () => showLogsDialog(context),
    ),
  );
}