popupSPECTATOR method

Object popupSPECTATOR(
  1. BuildContext context
)

Implementation

Object popupSPECTATOR(BuildContext context) {
  roomController.text = "";
  return showDialog(
    context: context,
    builder: (BuildContext context) => AlertDialog(
      backgroundColor: Theme.of(context).colorScheme.tertiary,
      shape: const RoundedRectangleBorder(
        borderRadius: BorderRadius.all(Radius.circular(15)),
      ),
      contentPadding: EdgeInsets.all(defaultWidth * 0.05),
      content: SizedBox(
        width: defaultWidth * 0.85,
        child: Column(mainAxisSize: MainAxisSize.min, children: [
          textField(context, roomController),
          SizedBox(height: defaultWidth * 0.05),
          playButton(context, "Observar", () => _handleTapSPECTATOR(context)),
        ]),
      ),
    ),
  );
}