Limbou / expandable_page_view

MIT License
88 stars 36 forks source link

Error on CustomScrollView #26

Closed callmejm closed 2 years ago

callmejm commented 2 years ago
/[C:/flutter_2.2.1/.pub-cache/hosted/pub.dartlang.org/expandable_page_view-1.0.10/lib/src/expandable_page_view.dart:283:9](): Error: No named parameter with the name 'padEnds'.
        padEnds: widget.padEnds,

        ^^^^^^^
/[C:/flutter_2.2.1/packages/flutter/lib/src/widgets/page_view.dart:664:3](): Context: Found this candidate, but the arguments don't match.
  PageView.builder({
  ^^^^^^^^^^^^^^^^
/[C:/flutter_2.2.1/.pub-cache/hosted/pub.dartlang.org/expandable_page_view-1.0.10/lib/src/expandable_page_view.dart:299:7](): Error: No named parameter with the name 'padEnds'.

      padEnds: widget.padEnds,
      ^^^^^^^
/[C:/flutter_2.2.1/packages/flutter/lib/src/widgets/page_view.dart:626:3](): Context: Found this candidate, but the arguments don't match.
  PageView({

  ^^^^^^^^
CustomScrollView(
  physics: BouncingScrollPhysics(),
  slivers: <Widget>[
    SliverToBoxAdapter(
      child: ExpandablePageView(
        children: [
          Container(
            height: 200,
            width: context.mediaQuerySize.width,
            color: Colors.white,
          ),
          Container(
            height: 100,
            width: context.mediaQuerySize.width,
            color: Colors.green,
          ),
          Container(
            height: 300,
            width: context.mediaQuerySize.width,
            color: Colors.red,
          ),
        ],
      ),
    ),
  ]
)
Limbou commented 2 years ago

Hello @callmejm, my guess here is that you are using an older version of Flutter, I think it is 2.2.1, am I right? Try updating your Flutter version or use an older version of this library (not recommended as it might have bugs).