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

This Flutter plugin 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
110
pub points
17%
popularity

Publisher

verified publisherkunimasu.com

This Flutter plugin 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)
View/report issues

Documentation

API reference

License

Apache-2.0 (LICENSE)

Dependencies

flutter, flutter_webview_plugin, http

More

Packages that depend on slack_login_button