ziqx_auth 0.0.6 copy "ziqx_auth: ^0.0.6" to clipboard
ziqx_auth: ^0.0.6 copied to clipboard

A fast and easy way to authenticate users with Ziqx Auth

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:ziqx_auth/zauthpackage.dart';

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

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Ziqx Auth Demo',
      debugShowCheckedModeBanner: false,
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: const Home(),
    );
  }
}

class Home extends StatelessWidget {
  const Home({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Center(
          child: Column(
        mainAxisAlignment: MainAxisAlignment.center,
        children: [
          ElevatedButton(
              onPressed: () {
                ZiqxAuth.authenticate(
                    context: context,
                    api: 'ec48c55651vS6rt4gaf277bd1436cc',
                    app: 'myapp',
                    onSuccess: (res) {
                      print("$res");
                    });
              },
              child: const Text("Login With Ziqx")),
        ],
      )),
    );
  }
}
2
likes
130
points
41
downloads

Publisher

verified publisherziqx.in

Weekly Downloads

A fast and easy way to authenticate users with Ziqx Auth

Homepage
Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

flutter, flutter_inappwebview, http

More

Packages that depend on ziqx_auth