cafebazaar_auth 1.0.3 copy "cafebazaar_auth: ^1.0.3" to clipboard
cafebazaar_auth: ^1.0.3 copied to clipboard

PlatformAndroid
outdated

With this package you can use CafeBazaar auth and storage in flutter applications, This package only supports Android applications.

example/lib/main.dart

import 'package:cafebazaar_auth/cafebazaar_auth.dart';
import 'package:cafebazaar_auth/cafebazaar_login_button.dart';

import 'package:flutter/material.dart';

void main() {
  runApp(MyApp());
}

class MyApp extends StatefulWidget {
  @override
  _MyAppState createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  signIn() async {
    CafeBazaarAccount? account = await CafeBazaarAuth.signIn();
    print(account?.accountID??'-');
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Plugin example app'),
        ),
        body: Center(
          child: Directionality(
            textDirection: TextDirection.rtl,
            child: Container(
              width: 180,
              child: CafeBazaarLoginButton(
                onPressed: signIn,
              ),
            ),
          ),
        ),
      ),
    );
  }
}
7
likes
150
pub points
0%
popularity

Publisher

verified publisherarsam.me

With this package you can use CafeBazaar auth and storage in flutter applications, This package only supports Android applications.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on cafebazaar_auth