Skip to content

FlutterSliderwidget throws Exception when it is used inside the TabBarView #150

Description

@seunghwanly

Issue

When TabBarView's tab index has been changed, the inner view rebuilds and throws error.

Environment

  • Flutter SDK: 3.22.2
  • flutter_xlider: 3.5.0
Image Image Image Image

Proposal

check mounted on the triggered method or change MediaQuery.of to MediaQuery.maybeSizeOf

master...seunghwanly:flutter_xlider:master

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions