Issue I am trying to used SliverList inside TabBarView but I keep getting these errors: Failed assertion: line 5966 pos 12: ‘child == _child’: is not true. A RenderRepaintBoundary expected a child of type RenderBox but received a child of
Continue readingSliverList 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 readingHow to vertically center text/title in Flutter using SliverAppBar?
Issue I am trying to set up a SliverAppBar in a CustomScrollView using Flutter, and can’t get to vertically center the title. I already tried this solution (and this SO question is exactly what I want to do) but fortunately,
Continue readingFlutter Sliver AppBar leading color
Issue This is a Sliver AppBar. How can I change the color of the back arrow ? BUT I don’t want to set leading: Icon(Icons.arrow_back, color: Colors.red) since (I believe) that the Sliver AppBar has the nice property of adapting
Continue readingFlutter how to do for inside for loop with list widget?
Issue i need to do for inside for loop inside widgets. i create two widgets and i called it form another widget. it says “Not in range 0..6, inclusive:7” Code : List<Widget> ListMyClips(i) { List<Widget> list = new List(); var
Continue readingCustomScrollView: Body scrolls under SliverAppBar
Issue Flutter DartPad I have multiple SliverAppBar‘s within a CustomScrollView, the body of the screen is within the SliverFillRemaining. The Top SliverAppBar is pinned The Middle SliverAppBar is an image and will collapse as the user scrolls Bottom SliverAppBar is
Continue readingHow to change the background color of raised button dynamically in onPressed()
Issue I have a list of Raised buttons, I want the background color of the selected button to change in its onPressed() I tried changing the color in setState but it doesn’t do anything. This is the function that generates
Continue readingWrapping a CustomScrollView and a Sliverlist with a Streambuilder throws exception
Issue I am trying to listen for real-time documents from Firebase firestore using Streambuilder while displaying the retrieved data in a CustomScrollView and a SliverListbut when I do so the list breaks and the screen remains blank. I tried a
Continue readingHow 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 readingHow to implement a SliverAppBar with a collapsable search bar
Issue This is what I’m trying to do, it’s a pretty common Widget on iOS. This is my code: return Scaffold( backgroundColor: Colors.white, body: CustomScrollView( slivers: <Widget>[ SliverAppBar( automaticallyImplyLeading: false, pinned: true, titleSpacing: 0, backgroundColor: Colors.white, elevation: 1.0, title: Container(
Continue reading