How to add custom widgets as markers in Flutter MapboxGL? - flutter

Is there a way to add custom Flutter widgets as markers to the Mapbox MapView on Flutter? For example, markers as shown in the below image.
I have looked through tickets regarding Mapbox on both StackOverflow and Github but couldn't find any luck. The relevant component I found is the Symbol but it doesn't seem to support custom widget or custom photo.
Thanks!
Custom markers

I'm looking for the same thing. Unfortunately, it seems that the only option is to use flutter_map, an other plug in that is less efficient with Mapbox...

Related

Create Vertical List in Flutter

I want to create this type of listview using flutter.
https://dribbble.com/shots/6872462-Food-ordering-app-Animate
You can find out more by clicking on this link. But I don't know how to create this type of list. I mean, you can see in the GIF that the list is indexed based.
A fixed indexed item container is colored.
How can I achieve it?
Flutter provides you with a widget very similar to the result you want to achieve called NavigationRail.
You will not have the animation by default, but you can maybe search in the source code of this widget how to create a custom widget that will implement animations.

Flutter widget to display moving (marquee) text

I am hoping to display a string of text in a widget such that the text appears to automatically scroll or move from left to right, similar to what is shown in many media players (such as OBS). In web development, this appears to be known as a marquee effect.
I've looked at animated_text_kit but it doesn't provide this scrolling animation.
I've also tried any_widget_marquee as described in this similar SO post but the package doesn't support sound null safety.
Can anyone provide any recommendations or describe how to achieve this effect?
There is an aptly named package marquee that does exactly this.
The ticker text Flutter package provides this functionality.

Flutter text animation on page view scroll

Reference link: https://dribbble.com/shots/15798418-Mobile-App-Onboarding
I have been trying to build the above UI using Page view. I have used the stack as parent widget and handling the image scroll using page controller offset value.
Not sure how to achieve the text animation(In and out) and what could be the trigger point to start the animation for current page?
The animations package from the Flutter team has a nice package that includes an animation that closely resembles your example.
Here is the package: https://pub.dev/packages/animations
It is the first example under Shared Axis. They also have good examples of how to implement the animation using this package. If you have issues using the package please add some code samples for the problem and we can help!

Centered carousel without snapping in flutter

I'm trying to make a carousel-like view here using SingleChildScrollView, I want the item to snap in the middle of the screen when scrolling, one item at a time.
I would personally recommend using the carousel_slider package, which provides a lot of flexibility: You can use custom widgets and views, and create both horizontal and vertical carousels.
Pub link: https://pub.dev/packages/carousel_slider
Alternatively, if you'd want to create it yourself, I think you'd have to try around working with custom ScrollControllers. Maybe take a look at the source code of the aforementioned package for some pointers.

flutter-mapbox-gl Style is not coming

"I"m integrating MapBox in my existing flutter app, and I am able to see the Map, and can hover over the map, it changes it coordinates and other embedded features. However, the style is not coming, ie, map is not displayed properly.
I am just trying to get the minimum workable Map, so I can add desired features on top of that.
When I run the code as it is, from https://github.com/tobrun/flutter-mapbox-gl , as a new project on IntelliJ Idea, it all looks fine.
So it seems like, style is missing, but I can't figured out what else to include.
I copied map_ui.dart code in my class, and calling the class from home page of our flutter app.
Apart of this, I added, mapbox_gl: ^0.0.3 dependency in pubspec.yaml file
I expect the following
Output Map
. However, my code is displaying the following
Current Map
Flutter Mapbox GL Native
[edit:] Updated the current screen shot, after wrapping the widget in a Scaffold
So after wrapping the widget in a Scaffold, this is looking good now!
And, I had to zoom in a bit to see the image.
Latest Screen Shot