slack_login_button 0.0.2 copy "slack_login_button: ^0.0.2" to clipboard
slack_login_button: ^0.0.2 copied to clipboard

This is Widget for Slack login. You can provide Slack login feature by set it to your parent Widget simply. As result, you will get access_token from callback you specified.

example/lib/main.dart

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

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

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    final clientId = 'clientId';
    final clientSecret = 'secret';
    final scope = ['users:read'];
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Slack login button example'),
        ),
        body: Center(
          child: SlackLoginButton(
            clientId,
            clientSecret,
            scope,
            (token) {
              print(token?.accessToken);
            },
          ),
        ),
      ),
    );
  }
}
1
likes
135
points
23
downloads

Publisher

verified publisherkunimasu.com

Weekly Downloads

This is Widget for Slack login. You can provide Slack login feature by set it to your parent Widget simply. As result, you will get access_token from callback you specified.

Repository (GitHub)

Documentation

API reference

License

Apache-2.0 (license)

Dependencies

flutter, flutter_webview_plugin, http

More

Packages that depend on slack_login_button

Packages that implement slack_login_button