Questions tagged [flutter-showmodalbottomsheet]

130 questions
0
votes
1 answer

Why is showModalBottomSheet covers bottomNavigationBar, while showBottomSheet displayed on top of it position-wise?

I have an application (simplified) that looks like this: working dartpad example: https://dartpad.dev/cc4e524315e104c272cd06aa7037aa10 import 'package:flutter/material.dart'; void main() { runApp(MyApp()); } class MyApp extends StatelessWidget…
Sae
  • 79
  • 7
0
votes
1 answer

Flutter return data when ModalBottomSheet is dismissed

I'm displaying a ModelBottomSheet when the FAB is pressed on a screen. When the ModelBottomSheet is popped I run a method with the data returned from the ModelBottomSheet which updates the screen. onPressed: () { print('FAB Pressed'); …
0
votes
1 answer

How to make flutter animation play full-screen when modal bottom sheet has been raised?

I am trying to add a confetti animation to modal bottom sheet using confetti package when it is raised. But it is not working as intended - animation is being cut in the middle of the screen. It works as intended when I call the animation from…
0
votes
1 answer

Group Checkbox in ModalBottomSheet Flutter

How to apply group checkbox in modalbottomsheet? I have create group checkbox and its work fine. But when I put it in to the modalbottomsheet the state not instantly changes (need to reopen to see value changes). I do have wrap the checkboxListTile…
Soveyyy
  • 274
  • 4
  • 17
0
votes
0 answers

Radio buttons within BottomModalSheet

I am new to flutter and dart. I have tried to insert few radio buttons and a raised button within a ModalBottomSheet. The expected output is that, the button should be disabled until any option is selected from the radio buttons, and once any option…
yamini r
  • 153
  • 1
  • 15
0
votes
1 answer

Flutter: edit new object from object incorrectly changing old object

I am trying to include an edit object feature in my productivity tracking app. I am using Flutter, Firestore, and Provider. I am trying to allow the user to update a task (for ex.) with different properties in a modal bottom sheet. The update aspect…
0
votes
2 answers

How to pass data across Stateful widget?

So my question is i get data from firebase in first widget, then i click and open a bottomsheet through void -> another stateful widget, how can i pass the snapshot data from first widget to the other one? Below code is not working... .... Widget…
icantcode
  • 142
  • 1
  • 15
0
votes
1 answer

Flutter keyboard not showing up on both emulator and real devices>

What I mean is that the keyboard did show up for milliseconds and it then disappeared immediately, this is inside a Modal Bottom Sheet, but I don't think it's the problem of the Sheet. Container( height: 50, width: double.infinity, padding:…
0
votes
1 answer

Header, Footer and Scrollable body inside showModalBottomSheet for Flutter?

showModalBottomSheet( context: context, builder: (BuildContext context) { return Container( padding: EdgeInsets.only(left: 10.0, right: 10.0, bottom: 10.0), child: Column( mainAxisSize: MainAxisSize.min, children:…
0
votes
1 answer

TextField stays behind Keyboard when in Focus at BottomSheet on a real device but works on Emulator

I saw some solutions and implemented them. Look Ok on Emulator but doesn't work on Real Device (See screens). So when I click on a textField, the keyboard moves up as per in-focus Textfield and I am able to scroll, however does not happen in real…
0
votes
1 answer

Update ModalBottomSheet after api call in flutter

I am new flutter , developing an application which call an api and fetching data from server which is showing on a bottom sheet. in this case Iam showing the bottom sheet meanwhile perfroming the api call. After the api call I want to update the…
0
votes
1 answer

How to update the ParentWidget of ModalBottomSheet using setState() in Flutter?

In my SingleDayCalendarView() I have a button which calls a showModalBottomSheet() with AddShiftBottomSheet as its child : class SingleDayCalendarView extends StatelessWidget { ... onPressed: () { showModalBottomSheet( …
LateBoy
  • 99
  • 2
  • 9
0
votes
4 answers

Flutter: can't access Provider from showModalBottomSheet

I can't access a provider defined above a Scaffold from showModalBottomSheet in the FloatingActionButton. I've defined a HomePage like so: class HomePage extends StatelessWidget { @override Widget build(BuildContext context) { return…
0
votes
1 answer

How to Show different Widget in showModel on buttonPressed

I am trying to Show the showModelBottomSheet() and It's perfectly working ,There is a Button in bottomSheet ,,So Whenever I pressed this Button it Show/ return a new Container(container different Widgets).Upon this onTap() ,I have set bool variable…
Mehboob
  • 57
  • 1
  • 9
0
votes
2 answers

Is there any similar widget or function like 'showModelBottomSheet' that pop on screen from right hand side in flutter?

I used showModelBottomSheet a lot that pops on the screen from the bottom with a nice animation. Now I want to use something similar that pops on the screen from the right-hand side instead of the bottom. It helps me a lot for UI purposes when the…
1 2 3
8
9