fhir_auth 0.3.0-nullsafety.5 copy "fhir_auth: ^0.3.0-nullsafety.5" to clipboard
fhir_auth: ^0.3.0-nullsafety.5 copied to clipboard

outdated

A Dart/Flutter package for authorization & authentication, includes SMART on FHIR and Google sign-in

example/lib/main.dart

import 'package:flutter/material.dart';

import 'server_call.dart';

Future main() async {
  WidgetsFlutterBinding.ensureInitialized();
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        body: Center(
          child: Column(
            mainAxisAlignment: MainAxisAlignment.spaceEvenly,
            children: [
              ElevatedButton(
                  child: const Text('Aidbox', style: TextStyle(fontSize: 44)),
                  // need to authorize app online before logging in via app
                  onPressed: () async => await aidbox()),
              ElevatedButton(
                  child: const Text('Azure', style: TextStyle(fontSize: 44)),
                  onPressed: () async => await azure()),
              ElevatedButton(
                  child:
                      const Text('GCP Health', style: TextStyle(fontSize: 44)),
                  onPressed: () async => await gcs()),
              ElevatedButton(
                  child: const Text('Hapi', style: TextStyle(fontSize: 44)),
                  onPressed: () async => await hapi()),
              ElevatedButton(
                  child: const Text('Mihin', style: TextStyle(fontSize: 44)),
                  onPressed: () async => await mihin()),
            ],
          ),
        ),
      ),
    );
  }
}
7
likes
0
pub points
63%
popularity

Publisher

verified publisherfhirfli.dev

A Dart/Flutter package for authorization & authentication, includes SMART on FHIR and Google sign-in

Homepage
Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

collection, dartz, fhir, flutter, flutter_appauth, flutter_secure_storage, freezed_annotation, google_sign_in, http

More

Packages that depend on fhir_auth