How to animate the color of AppBar on scroll?

Issue How can I animate the color of my SliverAppBar as I scroll through the CustomScrollView? Scaffold( body: CustomScrollView( controller: _scrollController, slivers: [ SliverAppBar(…), buildBody(), ], ), ); Solution try the following code: ScrollController _scrollController; Color _appColor = Colors.black; @override

Continue reading

How to increase height of CupertinoSliverNavigationBar

Issue I was trying to clone WhatsApp(iOS version) with flutter using Cupertino Widgets. while trying to make the header with CupertinoSliverNavigationBar i noticed that the height of CupertinoSliverNavigationBar cannot be increased. My Code return CupertinoPageScaffold( child: NotificationListener<ScrollNotification>( onNotification: (scrollNotification) {

Continue reading