glanzlicht / MeinWeimar_APP

Official MeinWeimar App

Verified secure showcase
204 Files 2 MB Public size 14 Redacted Dart · PHP · XML · GITIGNORE · YAML · PLIST

Project overview

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

README

MeinWeimar — Flutter App & WordPress Plugin

> Working in Progress · Private portfolio repository · Active development

MeinWeimar is a location-based local platform for residents, students and visitors. This repository intentionally contains only two product parts:

  1. the Flutter consumer app;
  2. the meinweimar-core WordPress plugin that provides the editorial/admin
  3. layer and the REST contract consumed by the app.

The complete public website, WordPress core, databases, private infrastructure and unrelated platform modules are not part of this repository.

MeinWeimar consumer app preview

Why this project is interesting

MeinWeimar combines a mobile/web Flutter client with WordPress used as a structured content and administration backend. The goal is a maintainable product boundary: content, branding, navigation, categories, media and configuration are managed in WordPress and delivered through a versioned REST contract instead of being hardcoded in the Flutter UI.

The project demonstrates work across:

  • Flutter/Dart application architecture for iOS, Android and Web;
  • WordPress plugin architecture with custom post types, taxonomies, admin
  • settings and REST endpoints;

  • localized German/English UI and backend-controlled labels;
  • discovery/list/detail flows for places, services, events, classifieds, jobs
  • and real estate;

  • map, GPS, geocoding, marker and navigation contracts;
  • caching, ETag/config-version handling and offline-safe fallbacks;
  • role-aware account, claim, favorites, moderation and messaging boundaries;
  • automated Flutter tests, PHP/REST contract checks and release builds.

Repository structure

flutter-app/       Flutter consumer application
wordpress-plugin/  meinweimar-core WordPress plugin
screenshots/       Curated portfolio preview only

Current status

This is an active Working in Progress project. The core architecture and many end-to-end flows are implemented and continuously tested. Native device polish, production content, final legal/privacy review and further product modules are still being developed. The repository does not claim to be a finished production release.

Local development

Flutter app

cd flutter-app
flutter pub get
flutter analyze
flutter test
flutter run --dart-define=MW_API_BASE_URL=https://example.test/wp-json/meinweimar/v1

The API base URL and other environment-specific values are supplied at build or run time. No credentials are stored in the repository.

WordPress plugin

Copy wordpress-plugin into a WordPress installation's wp-content/plugins/meinweimar-core directory and activate it in the admin area. The plugin owns the MeinWeimar content types, editorial settings, permissions, REST responses, media/configuration contracts and frontend integration points.

Privacy and repository boundary

This repository is private and is prepared for controlled technical review. Secrets, production database exports, user data, WordPress uploads, private keys and infrastructure configuration must remain outside version control. The public-facing portfolio page uses a separate, redacted presentation layer and does not expose the private repository directly.

For technical reviewers

The most relevant entry points are:

  • flutter-app/lib/core — shared configuration, networking, localization,
  • theme and location contracts;

  • flutter-app/lib/features — consumer-facing product surfaces;
  • flutter-app/lib/repositories — API boundary and data access;
  • wordpress-plugin/includes — plugin services, REST, admin and contracts;
  • wordpress-plugin/assets — admin/frontend integration assets.

MeinWeimar is deliberately presented as an evolving product rather than a finished demo: the repository shows the architectural decisions, the working implementation and the remaining engineering work transparently.

flutter-app/lib/shared/navigation/external_navigation_adapter.dartDart
import 'package:flutter/foundation.dart';
import 'package:url_launcher/url_launcher.dart';
enum ExternalNavigationPlatform { ios, android, web, other }
class NavigationTarget {
const NavigationTarget({
required this.latitude,
required this.longitude,
this.address = '',
});
final double latitude;
final double longitude;
final String address;
}
typedef NavigationUriLauncher = Future<bool> Function(Uri uri);
/// Opens a destination through an external navigation application.
///
/// The provider choice is supplied by the WordPress/API geo contract. For the
/// Google Maps profile the adapter first tries the native Google Maps hand-off
/// and then the platform's local navigation scheme. The final fallback is the
/// official Google Maps URL, which opens the installed app through the
/// platform's universal-link handling where available and otherwise opens the
/// browser. The URL does not require a Google API key.
class ExternalNavigationAdapter {
const ExternalNavigationAdapter({
required this.platform,
required this.launch,
});
final ExternalNavigationPlatform platform;
final NavigationUriLauncher launch;
factory ExternalNavigationAdapter.system() {
final platform = kIsWeb
? ExternalNavigationPlatform.web
: switch (defaultTargetPlatform) {
TargetPlatform.iOS => ExternalNavigationPlatform.ios,
TargetPlatform.android => ExternalNavigationPlatform.android,
_ => ExternalNavigationPlatform.other,
};
return ExternalNavigationAdapter(
platform: platform,
launch: (uri) => launchUrl(uri, mode: LaunchMode.externalApplication),
);
}
Future<bool> open(
NavigationTarget target, {
String webUrlTemplate = '',
String navigationProvider = 'google_maps',
}) async {
if (!_validCoordinate(target.latitude, target.longitude)) return false;
for (final uri in candidateUris(
target,
webUrlTemplate: webUrlTemplate,
navigationProvider: navigationProvider,
)) {
try {
if (await launch(uri)) return true;
} catch (_) {
// A missing native maps handler must not prevent the centrally
// configured browser fallback from being attempted.
}
}
return false;
}
/// Opens a map centered on a geographic target without requiring a Maps SDK
/// or a tile API key. This is the safe fallback when the internal map tile
/// source is not configured yet.
Future<bool> openMap(
NavigationTarget target, {
int zoom = 13,
}) async {
if (!_validCoordinate(target.latitude, target.longitude)) return false;
for (final uri in mapCandidateUris(target, zoom: zoom)) {
try {
if (await launch(uri)) return true;
} catch (_) {
// Continue through the local/browser fallback chain.
}
}
return false;
}
List<Uri> candidateUris(
NavigationTarget target, {
String webUrlTemplate = '',
String navigationProvider = 'google_maps',
}) {
final candidates = <Uri>[];
if (navigationProvider == 'google_maps') {
final googleNative = switch (platform) {
ExternalNavigationPlatform.ios => _googleIosUri(target),
ExternalNavigationPlatform.android => _googleAndroidUri(target),
_ => null,
};
if (googleNative != null) candidates.add(googleNative);
}
final localNative = switch (platform) {
ExternalNavigationPlatform.ios => _iosUri(target),
ExternalNavigationPlatform.android => _androidUri(target),
_ => null,
};
if (localNative != null) candidates.add(localNative);
final web = _webUri(
target,
webUrlTemplate,
navigationProvider: navigationProvider,
);
if (web != null) candidates.add(web);
return candidates;
}
List<Uri> mapCandidateUris(
NavigationTarget target, {
int zoom = 13,
}) {
final coordinates = '${target.latitude},${target.longitude}';
final candidates = <Uri>[];
if (platform == ExternalNavigationPlatform.ios) {
candidates.add(
Uri.parse('comgooglemaps://?center=$coordinates&zoom=$zoom'),
);
candidates.add(Uri.parse('maps://?ll=$coordinates&z=$zoom'));
} else if (platform == ExternalNavigationPlatform.android) {
candidates.add(Uri.parse('geo:$coordinates?z=$zoom'));
}
candidates.add(
Uri.https('www.google.com', '/maps/search/', {
'api': '1',
'query': coordinates,
}),
);
return candidates;
}
Uri _googleIosUri(NavigationTarget target) => Uri.parse(
'comgooglemaps://?daddr=${target.latitude},${target.longitude}&directionsmode=driving',
);
Uri _googleAndroidUri(NavigationTarget target) => Uri.parse(
'google.navigation:q=${target.latitude},${target.longitude}&mode=d',
);
Uri? _iosUri(NavigationTarget target) =>
Uri.parse('maps://?daddr=${target.latitude},${target.longitude}');
Uri? _androidUri(NavigationTarget target) {
final query = target.address.trim().isEmpty
? '${target.latitude},${target.longitude}'
: target.address.trim();
return Uri.parse(
'geo:${target.latitude},${target.longitude}?q=${Uri.encodeComponent(query)}',
);
}
Uri? _webUri(
NavigationTarget target,
String template, {
required String navigationProvider,
}) {
final raw = template.trim();
if (raw.isEmpty) {
if (navigationProvider != 'google_maps') return null;
return Uri.https('www.google.com', '/maps/dir/', {
'api': '1',
'destination': '${target.latitude},${target.longitude}',
'travelmode': 'driving',
'dir_action': 'navigate',
});
}
final resolved = raw
.replaceAll('{lat}', target.latitude.toString())
.replaceAll('{lng}', target.longitude.toString())
.replaceAll('{coordinates}', '${target.latitude},${target.longitude}')
.replaceAll('{destination}', '${target.latitude},${target.longitude}')
.replaceAll('{address}', Uri.encodeComponent(target.address.trim()));
if (resolved.contains('{')) return null;
final uri = Uri.tryParse(resolved);
if (uri == null || !{'http', 'https'}.contains(uri.scheme.toLowerCase())) {
return null;
}
return uri;
}
bool _validCoordinate(double latitude, double longitude) =>
latitude.isFinite &&
longitude.isFinite &&
latitude >= -90 &&
latitude <= 90 &&
longitude >= -180 &&
longitude <= 180;
}

Architecture

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

flutter-appmodule
wordpress-pluginmodule

Technology stack

DartPHPJavaScriptARBLOCKPBXPROJFlutter / Dart
Dart56.1%
PHP29.4%
JavaScript4.0%
ARB2.9%
LOCK1.7%
PBXPROJ1.7%
CSS1.5%
Markdown0.4%