firebase_phone_auth_handler 2.0.1 copy "firebase_phone_auth_handler: ^2.0.1" to clipboard
firebase_phone_auth_handler: ^2.0.1 copied to clipboard

An easy-to-use firebase phone authentication package to easily send and verify OTP's with auto-fetch OTP support via SMS. Supports web out of the box.

example/lib/main.dart

import 'package:firebase_core/firebase_core.dart';
import 'package:flutter/material.dart';
import 'package:phone_auth_handler_demo/firebase_options.dart';
import 'package:phone_auth_handler_demo/screens/splash_screen.dart';
import 'package:phone_auth_handler_demo/utils/app_theme.dart';
import 'package:phone_auth_handler_demo/utils/globals.dart';
import 'package:phone_auth_handler_demo/utils/route_generator.dart';

void main() async {
  WidgetsFlutterBinding.ensureInitialized();
  await Firebase.initializeApp(options: DefaultFirebaseOptions.currentPlatform);
  runApp(const _MainApp());
}

class _MainApp extends StatelessWidget {
  const _MainApp();

  @override
  Widget build(BuildContext context) => MaterialApp(
    debugShowCheckedModeBanner: false,
    title: 'FirebasePhoneAuthHandler Demo',
    scaffoldMessengerKey: Globals.scaffoldMessengerKey,
    theme: AppTheme.lightTheme,
    darkTheme: AppTheme.darkTheme,
    onGenerateRoute: RouteGenerator.generateRoute,
    initialRoute: SplashScreen.id,
  );
}
140
likes
160
points
503
downloads
screenshot

Documentation

Documentation
API reference

Publisher

verified publisherrithikbhandari.dev

Weekly Downloads

An easy-to-use firebase phone authentication package to easily send and verify OTP's with auto-fetch OTP support via SMS. Supports web out of the box.

Repository (GitHub)
View/report issues

Topics

#flutter #firebase #widget #firebase-auth #authentication

License

MIT (license)

Dependencies

firebase_auth, flutter, provider

More

Packages that depend on firebase_phone_auth_handler