popupAI method
Implementation
Object popupAI(BuildContext context) {
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: [
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),
SelectionMenu.rowOption(context, "Dificultad:",
selectDifficulty.selectionMenu(context)),
SizedBox(height: defaultWidth * 0.05),
playButton(context, "Jugar", () => _handleTapAI(context)),
]),
),
),
);
}