testModalPresentation static method

Future<void> testModalPresentation(
  1. BuildContext context
)

Implementation

static Future<void> testModalPresentation(BuildContext context) async {
  if (!debugMode) return;

  log("Testing modal presentation");

  try {
    await showModalBottomSheet(
      context: context,
      builder: (context) => Container(
        height: 200,
        color: Colors.white,
        child: Center(
          child: Text('Test Modal - If you see this, modals are working!'),
        ),
      ),
    );
    log("Modal test successful");
  } catch (e) {
    log("Modal test failed: $e");
  }
}