kspo / super_cupertino_navigation_bar

This package offers a collapsible app bar along with an attractive search bar animation, enhancing the visual appeal of your Flutter app with an iOS-inspired design. This package is versatile, allowing complete customization, and it seamlessly works on both iOS and Android platforms.
https://pub.dev/packages/super_cupertino_navigation_bar
MIT License
64 stars 9 forks source link

thanks for wonderful lib, but I got stuck with a simple appbar #12

Open OpenJarvisAI opened 6 months ago

OpenJarvisAI commented 6 months ago

I dont want large title for detail screen.

But I using a customized appbar title, the position are weired, and the Listview in my page, have a fixed margin to the super app bar.

But using vinilla appbar, there is not problem, why

Here is my code:

body: SuperScaffold(
            onCollapsed: (val) {
              print("collapsed => $val");
            },
            stretch: false,
            transitionBetweenRoutes: true,
            appBar: SuperAppBar(
                backgroundColor: Colors.transparent,
                title: _buildPageAppTitle(),
                previousPageTitle: "",
                bottom: SuperAppBarBottom(enabled: false),
                searchBar: SuperSearchBar(enabled: false),
                largeTitle: SuperLargeTitle(enabled: false)),
            body: SafeArea(
                top: false,
                child: Obx(
                  () => StreamBuilder(
                      stream: ChatDbPageController.to.getUiMessagesForRoom(
                          widget.contactChat!,
                          chatPageController.pageNum.value),
                      builder: (context, snapshot) {
                        if (snapshot.hasData) {
                          return _buildMainChat(snapshot.data!);
                          // return _buildGradientContainerWrapprer(
                          //     const ShimmerChatFakeUI());
                        } else {
                          return _buildGradientContainerWrapprer(
                              const ShimmerChatFakeUI());
                        }
                      }),
                )),
          ));