mirror of
https://github.com/kuhyx/wake-alarm.git
synced 2026-11-11 21:54:02 +01:00
Same pattern as todo, diet_guard_app, and workout_app: openFirebaseWithGoogle() (google_platform.dart abstracts the plugin's platform-channel dependence), isFirebaseConfigured() reading the stored session rather than the account marker alone, and the settings screen offering "Sign in with Google" ahead of the password form. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KdSp6Nbrs9xvsWkCMDN9a1
12 lines
510 B
Dart
12 lines
510 B
Dart
/// Platform gate for the programmatic Google sign-in flow.
|
|
///
|
|
/// Conditional export because the answer differs per platform *and* because
|
|
/// asking the plugin directly is unsafe: `supportsAuthenticate()` throws
|
|
/// `UnimplementedError` where no implementation is registered -- an `Error`,
|
|
/// not an `Exception`, so it escapes an ordinary catch and would take down
|
|
/// the settings screen's `build()`.
|
|
library;
|
|
|
|
export 'google_platform_io.dart'
|
|
if (dart.library.js_interop) 'google_platform_web.dart';
|