Skip to content

itemCount写死值为3的时候,崩溃,报错信息如下 #89

@itMcdull

Description

@itMcdull

══╡ EXCEPTION CAUGHT BY WIDGETS LIBRARY ╞═══════════════════════════════════════════════════════════
I/flutter ( 7728): The following assertion was thrown building Swiper(state: _SwiperState#b6384):
I/flutter ( 7728): ScrollController not attached to any scroll views.
I/flutter ( 7728): 'package:flutter/src/widgets/scroll_controller.dart':
I/flutter ( 7728): Failed assertion: line 110 pos 12: '_positions.isNotEmpty'
I/flutter ( 7728):
I/flutter ( 7728): Either the assertion indicates an error in the framework itself, or we should provide substantially
I/flutter ( 7728): more information in this error message to help you determine and fix the underlying cause.
I/flutter ( 7728): In either case, please report this assertion by filing a bug on GitHub:
I/flutter ( 7728): https://github.com/flutter/flutter/issues/new?template=BUG.md

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions