mirrored_repositories/dungeon-paper-app/lib/app/widgets
import 'package:flutter/material.dart';

class DebugDialog extends StatefulWidget {
  final String text;

  const DebugDialog({super.key, required this.text});

  @override
  State<DebugDialog> createState() => _DebugDialogState();
}

class _DebugDialogState extends State<DebugDialog> {
  late TextEditingController controller;

  @override
  void initState() {
    super.initState();
    controller = TextEditingController(text: widget.text);
  }

  @override
  Widget build(BuildContext context) {
    return SimpleDialog(
      title: const Text('Debug'),
      children: [
        TextField(
          controller: controller,
          maxLines: 15,
        )
      ],
    );
  }
}
