proto_base_client 1.0.0-dev copy "proto_base_client: ^1.0.0-dev" to clipboard
proto_base_client: ^1.0.0-dev copied to clipboard

A Flutter package for ProtoBase authentication.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:proto_base_client/proto_base_client.dart';

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

class MyApp extends StatelessWidget {
  final ProtoBaseClient client = ProtoBaseClient();

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'ProtoBase Client Demo',
      home: Scaffold(
        appBar: AppBar(title: Text('ProtoBase Client Demo')),
        body: Center(
          child: ElevatedButton(
            onPressed: () async {
              final response = await client.signinWithEmail(
                'Technoblade',
                'never',
                'dies@gmail.com',
                'Api Token Here',
              );
              print(response.toString());
            },
            child: Text('Sign Up'),
          ),
        ),
      ),
    );
  }
}
2
likes
0
points
25
downloads

Publisher

verified publisherknowledgetotal.com

Weekly Downloads

A Flutter package for ProtoBase authentication.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, http

More

Packages that depend on proto_base_client