Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MultiDateScrollPosition cannot change controllers once created #141

Closed
georgiossalon opened this issue May 13, 2023 · 1 comment
Closed
Labels
T: Fix Type: :bug: Bug Fixes

Comments

@georgiossalon
Copy link

georgiossalon commented May 13, 2023

In my app I have a FlowBuilder Widget (using Provider), which pushes new routes.

As a child, I have a timetable widget. When I tap on a BasicEventWidget, I Navigate to a new page.

   eventBuilder: (context, shift) => BasicEventWidget(
            shift,
            onTap: () =>
                context.flow<ShiftsFlowState>().selectShift(shift.id as String),
          ),

This is were I get the following error: 'MultiDateScrollPosition cannot change controllers once created.'

After commenting out the assert, the error is not being shown and the timetable is still working:

    // assert(
    //   linkedPosition.owner == this,
    //   'MultiDateScrollPosition cannot change controllers once created.',
    // );

You might have to check the code within the didChangeDependencies in the date_page_view.dart. and perhaps move the controller logic within the didUpdateWidget.

  • OS version:
  • Flutter version: 3.3.9 stable
  • Package version: 1.0.0-alpha11
@georgiossalon georgiossalon added the T: Fix Type: :bug: Bug Fixes label May 13, 2023
@JonasWanke
Copy link
Owner

This is fixed as part of v1.0.0-alpha.12

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T: Fix Type: :bug: Bug Fixes
Projects
None yet
Development

No branches or pull requests

2 participants