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

interactive_maps_marker.dart:106:30: Error: Required named parameter 'stream' must be provided. #8

Open
amedeopro opened this issue Aug 17, 2023 · 1 comment

Comments

@amedeopro
Copy link

Hi,
when i try to build .ipa i get this error

interactive_maps_marker.dart:106:30: Error: Required named parameter 'stream' must be provided.

How can i solve?

Thank you

@kundan333
Copy link

kundan333 commented Feb 29, 2024

Replace this function for interactive_maps_marker.dart

  @override
  Widget build(BuildContext context) {
    final streamController = StreamController<int>();
    return StreamBuilder<int>(
      initialData: 0,
      stream: streamController.stream, // Provide the stream here
      builder: (context, snapshot) {
        return Stack(
          children: <Widget>[
            _buildMap(),
            Align(
              alignment: widget.contentAlignment,
              child: Padding(
                padding: widget.itemPadding,
                child: SizedBox(
                  height: widget.itemHeight,
                  child: PageView.builder(
                    itemCount: widget.items.length,
                    controller: pageController,
                    onPageChanged: _pageChanged,
                    itemBuilder: widget.itemBuilder != null ? widget.itemBuilder! : _buildItem,
                  ),
                ),
              ),
            )
          ],
        );
      },
    );
  }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants