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/features/image_suggestion/image_suggestion_status_page.dartDart
import 'package:flutter/material.dart';
import '../../core/errors/api_error_code.dart';
import '../../core/formatting/localized_formatters.dart';
import '../../l10n/app_localizations.dart';
import '../../models/image_suggestion_models.dart';
import '../../repositories/image_suggestion_repository.dart';
import '../../shared/states/app_state_widgets.dart';
import 'image_suggestion_labels.dart';
class ImageSuggestionStatusPage extends StatefulWidget {
const ImageSuggestionStatusPage({
super.key,
required this.repository,
this.highlightedId,
});
final ImageSuggestionRepository repository;
final int? highlightedId;
@override
State<ImageSuggestionStatusPage> createState() =>
_ImageSuggestionStatusPageState();
}
class _ImageSuggestionStatusPageState extends State<ImageSuggestionStatusPage> {
late Future<ImageSuggestionList> _suggestions;
@override
void initState() {
super.initState();
_suggestions = widget.repository.own();
}
void _retry() {
setState(() {
_suggestions = widget.repository.own();
});
}
Future<void> _refresh() async {
final next = widget.repository.own();
setState(() {
_suggestions = next;
});
await next;
}
@override
Widget build(BuildContext context) {
final l10n = AppLocalizations.of(context);
return Scaffold(
appBar: AppBar(title: Text(l10n.imageSuggestMyTitle)),
body: FutureBuilder<ImageSuggestionList>(
future: _suggestions,
builder: (context, snapshot) {
if (snapshot.connectionState == ConnectionState.waiting) {
return const LoadingState();
}
if (snapshot.hasError) {
final error = snapshot.error;
final code = error is ApiException
? error.code
: ApiErrorCode.unknown;
if (code == ApiErrorCode.permissionDenied) {
return const AuthRequiredState();
}
return ErrorState(onRetry: _retry, code: code);
}
final items = snapshot.data?.items ?? const [];
if (items.isEmpty) {
return EmptyState(
title: l10n.imageSuggestMyTitle,
body: l10n.imageSuggestMyEmpty,
);
}
return RefreshIndicator(
onRefresh: _refresh,
child: ListView.separated(
physics: const AlwaysScrollableScrollPhysics(),
padding: const EdgeInsets.all(16),
itemCount: items.length,
separatorBuilder: (_, _) => const SizedBox(height: 8),
itemBuilder: (context, index) {
final item = items[index];
final highlighted = item.id == widget.highlightedId;
return Card(
color: highlighted
? Theme.of(context).colorScheme.primaryContainer
: null,
child: ListTile(
leading: const Icon(Icons.photo_outlined),
title: Text(
item.originalFilename.isEmpty
? l10n.imageSuggestTarget(
imageSuggestionTargetLabel(l10n, item.targetType),
)
: item.originalFilename,
),
subtitle: Column(
crossAxisAlignment: CrossAxisAlignment.start,
mainAxisSize: MainAxisSize.min,
children: [
Text(
l10n.imageSuggestMyItemStatus(
_statusLabel(l10n, item.status),
),
),
if (item.createdAt.isNotEmpty)
Text(
l10n.imageSuggestSubmittedAt(
formatDate(
item.createdAt,
Localizations.localeOf(context).toLanguageTag(),
),
),
style: Theme.of(context).textTheme.bodySmall,
),
],
),
trailing: item.status == 'needs_info'
? IconButton(
tooltip: l10n.imageSuggestResponseOpen,
icon: const Icon(Icons.reply_outlined),
onPressed: () => _openResponse(item),
)
: null,
onTap: item.status == 'needs_info'
? () => _openResponse(item)
: null,
),
);
},
),
);
},
),
);
}
Future<void> _openResponse(ImageSuggestionData item) async {
final responseSent = await showDialog<bool>(
context: context,
builder: (_) => _ImageSuggestionResponseDialog(
repository: widget.repository,
suggestion: item,
),
);
if (responseSent == true && mounted) {
ScaffoldMessenger.of(context).showSnackBar(
SnackBar(
content: Text(AppLocalizations.of(context).imageSuggestResponseSent),
),
);
_retry();
}
}
String _statusLabel(AppLocalizations l10n, String status) {
return switch (status) {
'submitted' => l10n.imageSuggestStatusSubmitted,
'in_review' => l10n.imageSuggestStatusInReview,
'accepted' => l10n.imageSuggestStatusAccepted,
'rejected' => l10n.imageSuggestStatusRejected,
'needs_info' => l10n.imageSuggestStatusNeedsInfo,
_ => l10n.imageSuggestStatusPending,
};
}
}
class _ImageSuggestionResponseDialog extends StatefulWidget {
const _ImageSuggestionResponseDialog({
required this.repository,
required this.suggestion,
});
final ImageSuggestionRepository repository;
final ImageSuggestionData suggestion;
@override
State<_ImageSuggestionResponseDialog> createState() =>
_ImageSuggestionResponseDialogState();
}
class _ImageSuggestionResponseDialogState
extends State<_ImageSuggestionResponseDialog> {
late final TextEditingController _controller;
bool _isSubmitting = false;
String? _error;
@override
void initState() {
super.initState();
_controller = TextEditingController();
}
@override
void dispose() {
_controller.dispose();
super.dispose();
}
Future<void> _submit() async {
final l10n = AppLocalizations.of(context);
final response = _controller.text.trim();
if (response.isEmpty) {
setState(() => _error = l10n.imageSuggestResponseRequired);
return;
}
setState(() {
_isSubmitting = true;
_error = null;
});
try {
await widget.repository.respond(
suggestionId: widget.suggestion.id,
response: response,
idempotencyKey:
'mw-response-${widget.suggestion.id}-${DateTime.now().microsecondsSinceEpoch}',
);
if (mounted) Navigator.of(context).pop(true);
} on ApiException catch (error) {
if (mounted) {
setState(() {
_isSubmitting = false;
_error = _errorText(l10n, error);
});
}
} on FormatException {
if (mounted) {
setState(() {
_isSubmitting = false;
_error = l10n.errorBody;
});
}
}
}
String _errorText(AppLocalizations l10n, ApiException error) {
final serverCode = error.serverCode ?? '';
if (serverCode.contains('response_required') ||
serverCode.contains('request_message_required')) {
return l10n.imageSuggestResponseRequired;
}
return switch (error.code) {
ApiErrorCode.networkUnavailable => l10n.errorNetworkUnavailable,
ApiErrorCode.timeout => l10n.errorTimeout,
ApiErrorCode.notFound => l10n.errorNotFound,
ApiErrorCode.permissionDenied => l10n.errorPermissionDenied,
ApiErrorCode.invalidResponse => l10n.errorInvalidResponse,
ApiErrorCode.serviceUnavailable => l10n.errorServiceUnavailable,
ApiErrorCode.conflict => l10n.errorConflict,
ApiErrorCode.validation => l10n.errorValidation,
ApiErrorCode.rateLimited => l10n.errorRateLimited,
_ => l10n.errorBody,
};
}
@override
Widget build(BuildContext context) {
final l10n = AppLocalizations.of(context);
return AlertDialog(
title: Text(l10n.imageSuggestResponseTitle),
content: ConstrainedBox(
constraints: const BoxConstraints(maxWidth: 520),
child: SingleChildScrollView(
child: Column(
mainAxisSize: MainAxisSize.min,
crossAxisAlignment: CrossAxisAlignment.start,
children: [
if (widget.suggestion.requestMessage.isNotEmpty) ...[
Text(widget.suggestion.requestMessage),
const SizedBox(height: 16),
] else
Text(l10n.imageSuggestResponseBody),
const SizedBox(height: 16),
TextField(
controller: _controller,
enabled: !_isSubmitting,
minLines: 4,
maxLines: 8,
maxLength: 2000,
textInputAction: TextInputAction.newline,
decoration: InputDecoration(
labelText: l10n.imageSuggestResponseLabel,
errorText: _error,
alignLabelWithHint: true,
),
),
],
),
),
),
actions: [
TextButton(
onPressed: _isSubmitting ? null : () => Navigator.pop(context),
child: Text(l10n.close),
),
FilledButton(
onPressed: _isSubmitting ? null : _submit,
child: Text(
_isSubmitting
? l10n.imageSuggestResponseSubmitting
: l10n.imageSuggestResponseSubmit,
),
),
],
);
}
}

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%