0

Basically I want to resolve this error.

RenderPadding expected a child of type RenderBox but received a child of type RenderSliverList.

1 Answers1

1

You can not add Sliver widgets to a Non Sliver Widget unless to put your Non Sliver widget in a SliverToBoxAdapter to keep it using Sliver

       CustomScrollView(
          slivers: [
            SliverToBoxAdapter(
              child: Widget1()
             ),
            SliverToBoxAdapter(
              child: Widget2()
             ),
          ],
        ),

read Sliver doc carefully

and read this, it may help you.

happy coding.

Amirali Eric Janani
  • 1,477
  • 3
  • 10
  • 20