Skip to content

showModalBottomSheet not working #48082

@omenejoseph

Description

@omenejoseph

Steps to Reproduce

  1. create new flutter application with flutter command
  2. create basic material app setup
  3. add button with onPressed function calling showModalBottomSheet
  4. create basic widget for the modal
    main dart file : https://gist.github.com/omenejoseph/91c9c749d8e992f0d08bcbcb6dff2e29

Target Platform:
Target OS version/browser:
Devices:

Logs

Exception caught by gesture ═══════════════════════════════════════════
The following assertion was thrown while handling a gesture:
No MediaQuery widget found.

MyApp widgets require a MediaQuery widget ancestor.
The specific widget that could not find a MediaQuery ancestor was: MyApp
The ownership chain for the affected widget is: "MyApp ← [root]"

Metadata

Metadata

Assignees

No one assigned

    Labels

    f: material designflutter/packages/flutter/material repository.frameworkflutter/packages/flutter repository. See also f: labels.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions