linkedin_oauth2 1.0.0 copy "linkedin_oauth2: ^1.0.0" to clipboard
linkedin_oauth2: ^1.0.0 copied to clipboard

A clean, lightweight Flutter package for secure LinkedIn OAuth 2.0 authentication and user profile retrieval using OpenID Connect.

example/lib/main.dart

import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'screens/mobile_screen.dart';
import 'screens/web_screen.dart';

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

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'LinkedIn OAuth2 Example',
      debugShowCheckedModeBanner: false,
      theme: ThemeData(
        brightness: Brightness.dark,
        scaffoldBackgroundColor: const Color(0xFF0B0E11),
        primaryColor: const Color(0xFF0A66C2), // LinkedIn blue
        colorScheme: const ColorScheme.dark(
          primary: Color(0xFF0A66C2),
          secondary: Color(0xFF0077B5),
          surface: Color(0xFF1D2226),
          error: Color(0xFFCF6679),
        ),
        useMaterial3: true,
      ),
      home: kIsWeb ? const WebScreen() : const MobileScreen(),
    );
  }
}
1
likes
160
points
11
downloads

Documentation

API reference

Publisher

verified publisherlazyalgorithm.com

Weekly Downloads

A clean, lightweight Flutter package for secure LinkedIn OAuth 2.0 authentication and user profile retrieval using OpenID Connect.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

dio, flutter, flutter_web_auth_2, meta

More

Packages that depend on linkedin_oauth2