- flutterfire configure: firebase_options.dart, google-services.json, GoogleService-Info.plist - firebase_core eingebunden, Firebase.initializeApp in main.dart - Doku firebase-einrichtung.md auf aktuellen Stand gebracht - Verifiziert: flutter analyze/test grün, Android-Debug-Build erfolgreich Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
22 lines
677 B
Dart
22 lines
677 B
Dart
import 'package:firebase_core/firebase_core.dart';
|
|
import 'package:flutter/material.dart';
|
|
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
|
import 'package:shared_preferences/shared_preferences.dart';
|
|
|
|
import 'app.dart';
|
|
import 'core/settings/settings_provider.dart';
|
|
import 'firebase_options.dart';
|
|
|
|
Future<void> main() async {
|
|
WidgetsFlutterBinding.ensureInitialized();
|
|
await Firebase.initializeApp(
|
|
options: DefaultFirebaseOptions.currentPlatform,
|
|
);
|
|
final prefs = await SharedPreferences.getInstance();
|
|
runApp(
|
|
ProviderScope(
|
|
overrides: [sharedPreferencesProvider.overrideWithValue(prefs)],
|
|
child: const LeafItToMeApp(),
|
|
),
|
|
);
|
|
}
|