popupCUSTOM method

Object popupCUSTOM(
  1. BuildContext context
)

Implementation

Object popupCUSTOM(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: [
          Text(
            "Crea una nueva ...",
            style: TextStyle(
              fontSize: 22,
              fontWeight: FontWeight.bold,
              color: Theme.of(context).colorScheme.primary,
            ),
          ),
          SizedBox(height: defaultWidth * 0.05),
          SelectionMenu.rowOption(
              context, "Duración:", selectTime.selectionMenu(context)),
          SizedBox(height: defaultWidth * 0.05),
          SelectionMenu.rowOption(
              context, "Incremento:", selectIncrement.selectionMenu(context)),
          SizedBox(height: defaultWidth * 0.05),
          SelectionMenu.rowOption(
              context, "Color:", selectColor.selectionMenu(context)),
          SizedBox(height: defaultWidth * 0.05),
          playButton(context, "Crear", () async {
            _handleTapCREATECUSTOM(context);
            waitCode().then((value) => popupWAITING(context));
          }),
          SizedBox(height: defaultWidth * 0.075),
          Row(
            children: [
              Expanded(
                child: Divider(
                  color: Theme.of(context).colorScheme.primary,
                  thickness: 1.25,
                  indent: defaultWidth * 0.05,
                  endIndent: defaultWidth * 0.05,
                ),
              ),
              Text(
                " o ",
                style: TextStyle(
                  fontSize: 19,
                  fontWeight: FontWeight.bold,
                  color: Theme.of(context).colorScheme.primary,
                ),
              ),
              Expanded(
                child: Divider(
                  color: Theme.of(context).colorScheme.primary,
                  thickness: 1.25,
                  indent: defaultWidth * 0.05,
                  endIndent: defaultWidth * 0.05,
                ),
              ),
            ],
          ),
          SizedBox(height: defaultWidth * 0.075),
          Text(
            "... únete a otra",
            style: TextStyle(
              fontSize: 22,
              fontWeight: FontWeight.bold,
              color: Theme.of(context).colorScheme.primary,
            ),
          ),
          SizedBox(height: defaultWidth * 0.05),
          textField(context, roomController),
          SizedBox(height: defaultWidth * 0.05),
          playButton(context, "Unirse", () => _handleTapJOINCUSTOM(context)),
        ]),
      ),
    ),
  );
}