eigentliche Handwerksapp

This commit is contained in:
2026-04-03 20:42:47 +02:00
parent 1f2e82b9f1
commit e1d4bb7edf
13 changed files with 1392 additions and 0 deletions

49
firebase_options.dart Normal file
View File

@@ -0,0 +1,49 @@
// Ersetze diese Datei durch die Ausgabe von:
// dart pub global activate flutterfire_cli
// flutterfire configure
// Bis dahin: Platzhalter-Werte (Auth schlägt ohne echtes Firebase-Projekt fehl).
import 'package:firebase_core/firebase_core.dart' show FirebaseOptions;
import 'package:flutter/foundation.dart'
show defaultTargetPlatform, kIsWeb, TargetPlatform;
class DefaultFirebaseOptions {
static FirebaseOptions get currentPlatform {
if (kIsWeb) {
throw UnsupportedError(
'Screen 1: Bitte zuerst iOS- oder Android-Gerät/Simulator nutzen '
'(oder Web in Firebase anlegen + flutterfire configure).',
);
}
switch (defaultTargetPlatform) {
case TargetPlatform.android:
return android;
case TargetPlatform.iOS:
return ios;
case TargetPlatform.macOS:
// Entwicklung: gleiche Firebase-App wie iOS (flutterfire configure mit macOS ergänzen).
return ios;
default:
throw UnsupportedError(
'Nur iOS und Android sind für Screen 1 vorgesehen.',
);
}
}
static const FirebaseOptions android = FirebaseOptions(
apiKey: 'REPLACE_ME',
appId: '1:000000000000:android:0000000000000000000000',
messagingSenderId: '000000000000',
projectId: 'handwerksapp-placeholder',
storageBucket: 'handwerksapp-placeholder.appspot.com',
);
static const FirebaseOptions ios = FirebaseOptions(
apiKey: 'REPLACE_ME',
appId: '1:000000000000:ios:0000000000000000000000',
messagingSenderId: '000000000000',
projectId: 'handwerksapp-placeholder',
storageBucket: 'handwerksapp-placeholder.appspot.com',
iosBundleId: 'com.example.handwerksapp',
);
}