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/features/learning/language_learning_tour_run_page.dartDart
import 'package:flutter/material.dart';
import '../../core/localization/app_localizations.dart';
import '../../core/theme/app_colors.dart';
import '../../models/language_learning_tour.dart';
import '../../models/localized_content.dart';
import '../../models/tour.dart';
import '../../models/transport_mode.dart';
import '../../widgets/tour_map.dart';
import '../../services/analytics_service.dart';
import 'learning_unit_page.dart';
class LanguageLearningTourRunPage extends StatefulWidget {
const LanguageLearningTourRunPage({super.key, required this.tour});
final LanguageLearningTour tour;
@override
State<LanguageLearningTourRunPage> createState() =>
_LanguageLearningTourRunPageState();
}
class _LanguageLearningTourRunPageState
extends State<LanguageLearningTourRunPage> {
int _stopIndex = 0;
@override
void initState() {
super.initState();
AnalyticsService.instance.track('learning_tour_run_start', properties: {
'learning_tour_id': widget.tour.definition.id,
'stop_count': widget.tour.stops.length
});
}
Tour _mapTour(BuildContext context) {
final l10n = AppLocalizations.of(context);
final lang = Localizations.localeOf(context).languageCode;
return Tour(
id: 'learning-${widget.tour.definition.id}',
title: LocalizedContent({lang: l10n.t(widget.tour.definition.titleKey)}),
subtitle:
LocalizedContent({lang: l10n.t(widget.tour.definition.subtitleKey)}),
category: 'learning',
durationMinutes: widget.tour.definition.durationMinutes,
distanceKm: 0,
highlight: false,
recommendedTransport: TransportMode.walking,
supportedTransportModes: const [TransportMode.walking],
stops: [
for (final stop in widget.tour.stops)
if (stop.location?.poiId != null)
TourStop(
poiId: stop.location!.poiId!,
title: LocalizedContent({lang: stop.title}),
guideText: LocalizedContent({
lang: stop.units
.map((u) => '${u.phraseDe} — ${u.help}')
.join('\n')
}),
walkMinutesFromPrevious: 0,
),
],
);
}
@override
Widget build(BuildContext context) {
final l10n = AppLocalizations.of(context);
final stop = widget.tour.stops[_stopIndex];
final mapTour = _mapTour(context);
final canNext = _stopIndex < widget.tour.stops.length - 1;
return Scaffold(
appBar: AppBar(title: Text(l10n.t(widget.tour.definition.titleKey))),
body: ListView(
padding: const EdgeInsets.fromLTRB(20, 8, 20, 110),
children: [
LinearProgressIndicator(
value: (_stopIndex + 1) / widget.tour.stops.length),
const SizedBox(height: 8),
Text(
l10n.tf('learningTourStopProgress', {
'current': '${_stopIndex + 1}',
'total': '${widget.tour.stops.length}'
}),
style: const TextStyle(
color: AppColors.mutedInk, fontWeight: FontWeight.w700),
),
const SizedBox(height: 16),
if (mapTour.stops.length >= 2)
TourMap(
tour: mapTour,
activeStopIndex: _stopIndex < mapTour.stops.length
? _stopIndex
: mapTour.stops.length - 1,
height: 260,
liveLocation: true,
showNavigationCard: true,
onStopSelected: (index) {
if (index >= 0 && index < widget.tour.stops.length) {
setState(() => _stopIndex = index);
}
},
),
const SizedBox(height: 20),
Text(stop.title,
style: Theme.of(context)
.textTheme
.headlineSmall
?.copyWith(fontWeight: FontWeight.w900)),
const SizedBox(height: 5),
Text(l10n.t('learningTourDoHere'),
style: const TextStyle(color: AppColors.mutedInk)),
const SizedBox(height: 12),
for (final unit in stop.units)
Card(
child: ListTile(
leading: const CircleAvatar(
backgroundColor: AppColors.softRed,
child: Icon(Icons.translate_rounded,
color: AppColors.heartRed)),
title: Text(unit.phraseDe,
style: const TextStyle(fontWeight: FontWeight.w900)),
subtitle: Text(unit.help,
maxLines: 2, overflow: TextOverflow.ellipsis),
trailing: const Icon(Icons.chevron_right_rounded),
onTap: () => Navigator.of(context).push(MaterialPageRoute(
builder: (_) => LearningUnitPage(unit: unit))),
),
),
],
),
bottomNavigationBar: SafeArea(
minimum: const EdgeInsets.all(16),
child: FilledButton.icon(
onPressed: canNext
? () {
AnalyticsService.instance.track('learning_tour_stop_advance',
properties: {
'learning_tour_id': widget.tour.definition.id,
'stop_index': _stopIndex
});
setState(() => _stopIndex++);
}
: () {
AnalyticsService.instance
.track('learning_tour_complete', properties: {
'learning_tour_id': widget.tour.definition.id,
'stop_count': widget.tour.stops.length
});
Navigator.of(context).pop();
},
icon:
Icon(canNext ? Icons.arrow_forward_rounded : Icons.check_rounded),
label: Text(
l10n.t(canNext ? 'learningTourNextStop' : 'learningTourFinish')),
),
),
);
}
}

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%