Skip to content

example misses update #6

Description

@derdilla

It needs a cleaned up version of:

  @override
  void didUpdateWidget(covariant FormSwitcher oldWidget) {
    super.didUpdateWidget(oldWidget);
    if (oldWidget.subForms.length != widget.subForms.length) {
      controller.dispose();
      controller = TabController(length: widget.subForms.length, vsync: this);
      widget.controller?._initialize(controller);
    }
  }

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