1

guys! ModelBottomSheet shows from bottom. Is there any way to show it from top. or is there another alternate widget for that function. Actually I want to add a filter with a search bar. When I click on it something like ModelSheet should open from top. Please guide me I've added picture of what I want to build.

  • 1
    Does this answer your question? [How to set Bottom Sheet position to top](https://stackoverflow.com/questions/56440920/how-to-set-bottom-sheet-position-to-top) – Ruchit Mar 02 '22 at 05:12

2 Answers2

0

You can try this, sliding_up_panel, slideDirection: SlideDirection.DOWN

PanelController

@override
Widget build(BuildContext context) {
  return Scaffold(
    appBar: AppBar(
      title: Text("SlidingUpPanelExample"),
    ),
    body: SlidingUpPanel(
      slideDirection: SlideDirection.DOWN,
      panel: Center(
        child: Text("This is the sliding Widget"),
      ),
      body: Center(
        child: Text("This is the Widget behind the sliding panel"),
      ),
    ),
  );
}
Jim
  • 6,928
  • 1
  • 7
  • 18
0
Scaffold(
          appBar: AppBar(
            title: const Text("SlidingUpPanelExample"),
            actions: [
              PopupMenuButton(
                  itemBuilder: (context) => [
                        PopupMenuItem(
                            child: Container(
                                  child: Column ( children: [......]
                    ),
                  ),
                )
              ],
            ),
          ],
        ),
      ),
Peter Csala
  • 17,736
  • 16
  • 35
  • 75
  • As it’s currently written, your answer is unclear. Please [edit] to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Community Mar 02 '22 at 17:47