~/talk

The quest to display widget markers on a map

Talkat Fluttercon Europe 2024 · 2024-07-03..07-05· [flutter]
links:none on file
slides:none on file

Map SDK markers are incompatible with Flutter widgets so use the controller method getScreenCoordinate to overlay widgets in a Stack but that causes lag; exporting assets to load as Google map markers works well for static icons. For dynamic content render widgets to images with RenderRepaintBoundary.toImage (or use the package screenshot), then load bytes as Marker icons. Preload network images with precacheImage + element tree visitor and flutter_cache_manager to avoid missing frames. Flutter_map supports real widgets but vector tile rendering currently has performance limits; options include async rasterization, drawVertices, or the upcoming Flutter GPU API.

AI-written summary · about

  1. 0:00Map engines and marker limits
  2. 1:13Widget stacking workaround
  3. 2:21Bitmap markers for static icons
  4. 3:05Dynamic markers with screenshots
  5. 6:22Network images in markers
  6. 9:21Final dynamic map results
  7. 10:24Screenshot technique limits
  8. 10:46Future of Flutter map engines
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.