Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

resizeToAvoidBottomInset does not work #9

Open
tcho-pandorabio opened this issue Sep 23, 2023 · 0 comments
Open

resizeToAvoidBottomInset does not work #9

tcho-pandorabio opened this issue Sep 23, 2023 · 0 comments

Comments

@tcho-pandorabio
Copy link

Describe the bug
I've put TextFormField inside the panel, and when keyboard is displayed whole panel is moving up.

To Reproduce

  • Add TextFormField inside panel
return Scaffold(
      resizeToAvoidBottomInset: false,
      body: SlidingUpPanel(
        color: Colors.white,
        controller: _panelController,
        maxHeight: MediaQuery.of(context).size.height * 0.8,
        minHeight: 0,
        panelBuilder: () {
          return Container(
              height: MediaQuery.of(context).size.height * 0.8,
              padding: EdgeInsets.only(
                bottom: MediaQuery.of(context).viewInsets.bottom,
              ),
              child: TextFormField(
                decoration: InputDecoration(
                  labelText: 'Email',
                  hintText: 'Enter your email',
                ),
              ));
        },
        body: _body(),
        header: _header(),
        backdropColor: Colors.black,
        backdropEnabled: true,
        backdropTapClosesPanel: true,
        borderRadius: const BorderRadius.only(
          topLeft: Radius.circular(24.0),
          topRight: Radius.circular(24.0),
        ),
        onPanelClosed: () => setContentType(null),
      ),
    );

Expected behavior

  • Setting resizeToAvoidBottomInset as false should prevent it

Smartphone (please complete the following information):

  • Device: iPhone 15 (simulator)
  • OS: ios17
  • Flutter Version: 3.13.5
  • sliding_up_panel Version: 3.3.0+1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant