lannodev / we_slide

A backdrop animated widget
MIT License
75 stars 25 forks source link

Panel header padding bottom when show keyboard #6

Closed docbohanh closed 3 years ago

docbohanh commented 3 years ago

Hi bro, I trying to custom we_slide for my music app, but i stuck with issue (see video attachment):

2021-05-10_13-52-33

  1. Panel header view bottom padding when show keyboard
  2. Weslide body rebuild when change bottom bar index

Code here https://github.com/docbohanh/MusicApp

Please help me check that out, many thanks!

lannodev commented 3 years ago

Hi 👋 @docbohanh

  1. I tested using the music application demo example and this bottom padding is not displayed. Please try to debug your code to find out why this happens.
return Scaffold(
      resizeToAvoidBottomInset: false,
      body: WeSlide(
        controller: _controller,
        panelMinSize: _panelMinSize,
        panelMaxSize: _panelMaxSize,
        overlayOpacity: 0.9,
        overlay: true,
        body: Home(),
        panelHeader: MiniPlayer(onTap: _controller.show),
        panel: Player(onTap: _controller.hide),
        footer: BottomBar(),
        appBar: AppBar(
          backgroundColor: Colors.red,
          title: TextField(),
        ),
      ),
    );
  1. About body, you need to search for something like Preserving Scroll Position
docbohanh commented 3 years ago
  1. Hotfix by calculating keyboardHeight.

image

  1. Using Offstage to build body.

image

https://github.com/docbohanh/MusicApp.git

Thanks for your support!