glanzlicht / Meinweimar_Tourguide

Intelligenter Tourguide für Weimar

Verified secure showcase
167 Files 833 KB Public size 12 Redacted Dart · Markdown · YAML · HTML · JSON · GITIGNORE

Project overview

Meinweimar_Tourguide is a verified code showcase with 167 visible project entries across 5 top-level modules. The primary detected language is Dart; protected files remain visible in the structure while their contents stay private.

README

MeinWeimar Tourguide

MeinWeimar Tourguide

Eine produktionsnahe Flutter-App fuer Stadtentdeckung, Tourplanung und Sprachlernen in Weimar. Die App verbindet eine responsive mobile und webfaehige Oberflaeche mit einer WordPress-REST-API und macht aus redaktionellen Inhalten konkrete Wege, Orte und Empfehlungen.

Dieses Repository zeigt neben der UI auch die technische Produktarbeit dahinter: API-Integration, Offline-tolerante Datenhaltung, Lokalisierung, Routing, Audio/TTS, Analytics, Deep Links und automatisierte Qualitaetssicherung.

App-Eindruecke

Start · Entdecken · Touren · Karte · Mehr

Produktumfang

  • Entdecken: POIs, Touren, Veranstaltungen, Partner und Themen mit Suche,
  • Filtern und fehlertoleranter Trefferlogik.

  • Unterwegs: Kartenansicht, Standort, Fussgaenger-Routing, Tourfortschritt,
  • Favoriten und eine persoenliche Route aus der eigenen Weimar-Liste.

  • Mehrsprachigkeit: UI und CMS-Inhalte in Deutsch, Englisch,
  • Niederlaendisch, Franzoesisch, Polnisch, Italienisch, Spanisch und Tschechisch.

  • Audio und Lernen: Guide-Audio, Flutter TTS sowie SprachGuide-Kurse und
  • Lern-Touren.

  • Redaktion und Betrieb: WordPress REST API, Oeffnungszeiten mit
  • Zeitzonenlogik, Kampagnen, Partnerplatzierungen, Deep Links und First-Party- Analytics.

  • Responsive UX: kleine Displays, grosse Systemschrift, dynamische
  • Kartenhoehen und versionierte Web-Releases ohne veraltete Service-Worker- Assets.

Technischer Steckbrief

BereichUmsetzung
FrameworkFlutter / Dart 3.4+
PlattformeniOS, Android und Web
DatenWordPress REST API, typisierte Models und Repositories
Kartenflutter_map, latlong2, Standort und Fussgaenger-Routing
Audiojust_audio, flutter_tts
Lokaler ZustandShared Preferences, begrenztes Caching und Analytics-Puffer
QualitaetFlutter Analyzer, Widget- und Service-Tests, Lokalisierungs- und API-Modelltests

Die Codebasis ist nach Verantwortlichkeiten gegliedert:

lib/
	core/          gemeinsame API-, Lokalisierungs- und Navigationslogik
	data/          Datenzugriff und DTO-nahe Strukturen
	features/      produktbezogene Screens und Flows
	models/        fachliche Modelle
	repositories/  Datenzugriff hinter stabilen Schnittstellen
	services/      Routing, Audio, Analytics und Plattformdienste
	widgets/       wiederverwendbare UI-Bausteine
test/            fokussierte Tests fuer Services, Modelle und Widgets

Lokal starten

Voraussetzungen: aktuelles Flutter SDK und das darin enthaltene Dart SDK.

flutter pub get
flutter analyze
flutter test
flutter run -d chrome

Die Anwendung verwendet standardmaessig die oeffentliche API: https://tour.meinweimar.de/wp-json/meinweimar/v1

Web-Release

Fuer einen Web-Release das versionierte Build-Skript verwenden:

./tool/build_web_release.sh

Das Skript legt den Runtime-Build unter build/web/releases/<release-id>/ ab. Launcher und Versionsendpunkt bleiben bewusst nicht cachebar, damit Browser nach einem Reload die aktuelle Version auflosen. Startup-Diagnostik ist nur mit ?mwdebug=1 aktiv.

Dokumentation

  • [Deep Links](DEEP_LINKS.md) - Web-Routen fuer Bereiche, Touren und POIs
  • [Projektstatus](PROJECT_STATE.md) - aktueller Funktions- und Integrationsstand
  • [Changelog](CHANGELOG.md) - nachvollziehbare Produkt- und UX-Iterationen
  • [API-Integration](docs/API_INTEGRATION.md) - technische Integrationsnotizen
lib/models/ad_campaign.dartDart
import 'package:flutter/material.dart';
import 'localized_content.dart';
enum AdPlacement {
sponsorInterstitial,
homeBanner,
mapBanner,
toursBanner,
tourDetailBanner,
plannerBanner,
appBanner,
sideMenu,
nearby,
}
enum CampaignCreativeType { lottie, image, legacy }
enum CampaignLottieVariant { standard, portrait, landscape, tablet }
enum CampaignTargetType { url, partner, poi, tour, deepLink, none }
class CampaignTarget {
const CampaignTarget({
this.type = CampaignTargetType.none,
this.id,
this.url,
this.path,
});
final CampaignTargetType type;
final String? id;
final String? url;
final String? path;
bool get hasTarget => switch (type) {
CampaignTargetType.url => url?.trim().isNotEmpty == true,
CampaignTargetType.partner ||
CampaignTargetType.poi ||
CampaignTargetType.tour =>
id?.trim().isNotEmpty == true,
CampaignTargetType.deepLink => path?.trim().isNotEmpty == true,
CampaignTargetType.none => false,
};
}
class AdCampaign {
const AdCampaign({
required this.id,
required this.partnerName,
required this.headline,
required this.body,
required this.buttonLabel,
required this.validFrom,
required this.validUntil,
required this.placements,
this.landingPageUrl,
this.imageUrl,
this.fallbackImageUrl,
this.lottieUrl,
this.lottieVariants = const {},
this.creativeType = CampaignCreativeType.image,
this.lottieFit = BoxFit.contain,
this.backgroundColor = Colors.white,
this.target = const CampaignTarget(),
this.galleryUrls = const [],
this.priority = 50,
this.frequencyHours = 24,
this.enabled = true,
this.targetCategories = const {},
this.sponsorModules = const {},
this.appBannerScreens = const {},
this.nearbyPosition = 2,
this.locationsEnabled = false,
this.locationPartnerId,
this.utilityTitle = '',
this.utilityText = '',
this.resolvedPlacement,
});
final String id;
final String partnerName;
final LocalizedContent headline;
final LocalizedContent body;
final LocalizedContent buttonLabel;
final DateTime validFrom;
final DateTime validUntil;
final Set<AdPlacement> placements;
final String? landingPageUrl;
final String? imageUrl;
final String? fallbackImageUrl;
final String? lottieUrl;
final Map<CampaignLottieVariant, String> lottieVariants;
final CampaignCreativeType creativeType;
final BoxFit lottieFit;
final Color backgroundColor;
final CampaignTarget target;
final List<String> galleryUrls;
final int priority;
final int frequencyHours;
final bool enabled;
final Set<String> targetCategories;
final Set<String> sponsorModules;
final Set<String> appBannerScreens;
final int nearbyPosition;
final bool locationsEnabled;
final String? locationPartnerId;
final String utilityTitle;
final String utilityText;
/// Placement for which this campaign payload was resolved by /ads.
final AdPlacement? resolvedPlacement;
bool isActiveAt(DateTime now) =>
enabled && !now.isBefore(validFrom) && !now.isAfter(validUntil);
bool supports(AdPlacement placement) => placements.contains(placement);
bool get hasGallery => galleryUrls.isNotEmpty;
bool get hasLottie =>
creativeType == CampaignCreativeType.lottie &&
(lottieUrl?.trim().isNotEmpty == true || lottieVariants.isNotEmpty);
String? lottieUrlForSize(Size size) {
if (creativeType != CampaignCreativeType.lottie) return null;
final shortestSide = size.shortestSide;
CampaignLottieVariant preferred;
if (shortestSide >= 600) {
preferred = CampaignLottieVariant.tablet;
} else if (size.width > size.height) {
preferred = CampaignLottieVariant.landscape;
} else {
preferred = CampaignLottieVariant.portrait;
}
final selected = lottieVariants[preferred]?.trim();
if (selected != null && selected.isNotEmpty) return selected;
final standard = lottieVariants[CampaignLottieVariant.standard]?.trim();
if (standard != null && standard.isNotEmpty) return standard;
final legacy = lottieUrl?.trim();
return legacy == null || legacy.isEmpty ? null : legacy;
}
bool supportsScreen(String screen) =>
appBannerScreens.isEmpty || appBannerScreens.contains(screen);
bool matchesCategory(String? category) =>
targetCategories.isEmpty ||
(category != null && targetCategories.contains(category));
}

Architecture

High-level modules detected from the verified public snapshot. Protected implementation details are intentionally omitted.

libmodule
testmodule
docsmodule
webmodule
toolmodule

Technology stack

DartMarkdownLOCKHTMLShellHTACCESSFlutter / Dart
Dart89.9%
Markdown3.9%
LOCK3.1%
HTML1.7%
Shell0.8%
HTACCESS0.2%
YAML0.1%
METADATA0.1%