pub package Publish

Flutter widget using webview_flutter and http, which provides one or more widgets to handle OAuth logins via Azure Active Directory.

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

void main() {
  runApp(const MyLoginExamplePage());

class MyLoginExamplePage extends StatelessWidget {
  Widget build(BuildContext context) {
    final AzureADLoginViewOptions loginViewOptions = AzureADLoginViewOptionsBuilder()
      // setup required settings
      .setOnNewTokens((AzureADLoginNewTokensHandlerContext context) {
         // s. `context.tokens`

      // this is optional
      .setOnNavigationError((AzureADLoginNavigationErrorHandlerContext context) {
         // ...


    return MaterialApp(
      home: AzureADLoginView(loginViewOptions),

An example application can be found inside example folder.


View Github