LayoutBuilder does not support returning intrinsic dimensions. Layout Builder is not Working insisde CustomScrollView
I am using CustomScrollView() with SliverFillRemaining and Inside it I used a row with two expanded widgets side by side. I want to use LayoutBuilder inside those Expanded Widgets but it is throwing an error. What is the possible solution to it? I want to get the dynamic size of those Expanded Widgets whenever the user changes the width or height of the screen. Here is the code Scaffold( backgroundColor: blackColor, body: CustomScrollView( slivers: [ SliverFillRemaining( hasScrollBody: false, child: Row( children: [ Expanded( flex: Responsive.isMediumDevice(context) ? 4 : 1, child: Container(
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.