Saturday, October 14, 2023
HomeiOS Developmentandroid - Appbar must be overlapped when scrolling

android – Appbar must be overlapped when scrolling


I wish to obtain the next habits, Once I begin scrolling the appbar ought to go behind the content material.

Somebody SliverAppbar works, however because it has minExtent in _SliverAppbarDelegate, It shrinks the dimensions of the Appbar which I do not need.

https://gifyu.com/picture/Sdh84

Stack(
            kids: [
              Positioned.fill(
                top: 0,
                child: Align(
                  alignment: Alignment.topCenter,
                  child: SizedBox(
                    height: kToolbarHeight + context.padding.top,
                    child: CustomAppBar(
                      title: TranslationConstants.dashboard,
                      hasDrawer: true,
                      onLeadingTap: () => setState(() {
                        print("Leading");
                        zoomControllerIconChanger = true;
                        if (drawerController.toggle != null) {
                          drawerController.toggle!();
                        }
                      }),
                    ),
                  ),
                ),
              ),
              Positioned.fill(
                top: kToolbarHeight + context.padding.top,
                child: ListView.builder(
                  padding: EdgeInsets.zero,
                  itemCount: 100,
                  itemBuilder: (ctx, index) {
                    return ListTile(
                        title: Text('ELEMENT $topPosition -> $index'));
                  },
                ),
              ),
            ],
          ),
    ```
    Right here is my code



Supply hyperlink

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments