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