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

Flutter plugin for login with linkedIn.

linkedin_login_01 #

A new Flutter plugin.

Getting Started #

Just create object and call method

LinkedInLogin user = new LinkedInLogin();
           var token = await user.getToken(context: context,
                clientId: "ClientId",
                clientSecret: "ClientSecret",
                callbackUrl:"https://example.com");            

Example #

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

class _MyAppState extends State<MyApp> {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        body: Center(
          child: ElevatedButton(
                           child: Text('LinkedIn Login'),
                           style: ElevatedButton.styleFrom(
                             primary: Colors.blue,
                             elevation: 5,
                           ),
                           onPressed: () async {
                             LinkedInLogin user = new LinkedInLogin();
                            var token = await user.getToken(context: context,
                                 clientId: "ClientId",
                                 clientSecret: "ClientSecret",
                                 callbackUrl:"https://example.com");
                            print(token);
                           },
                         ),
        ),
      ),
    );
  }
}
1
likes
30
pub points
0%
popularity

Publisher

unverified uploader

Flutter plugin for login with linkedIn.

Homepage
Repository (GitHub)
View/report issues

License

MIT (LICENSE)

Dependencies

dio, flutter, http, webview_flutter

More

Packages that depend on linkedin_login_01