SliverList and Getx StateMixin support

Issue I’m struggling trying to make a GetxController work with a SliverList. In particular, my controller returns the view state with StateMixin from Getx library. class ItinerariesByCreatorPageController extends GetxController with StateMixin<Pair<Creator, List<Itinerary>>> { ItinerariesByCreatorPageController(this._interactor); final ItinerariesInteractor _interactor; void getCreatorPage(String creatorSlug,

Continue reading

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