apptive_grid_core 0.2.4 copy "apptive_grid_core: ^0.2.4" to clipboard
apptive_grid_core: ^0.2.4 copied to clipboard

outdated

Core Library for ApptiveGrid used to provide general ApptiveGrid functionality to other Packages or Apps

ApptiveGrid Core #

Pub pub points popularity likes

Core Library for ApptiveGrid. This provides general access to ApptiveGrid functionalities. It also contains authentication and general client logic so you can build your own ApptiveGrid experiences using this.

Setup #

In order to use any ApptiveGrid Feature you must wrap your App with a ApptiveGrid Widget

import 'package:apptive_grid_core/apptive_grid_core.dart';

void main() {
  runApp(
    ApptiveGrid(
      options: ApptiveGridOptions(
        environment: ApptiveGridEnvironment.alpha,
        authenticationOptions: ApptiveGridAuthenticationOptions(
          autoAuthenticate = true,
        ),
      ),
      child: MyApp(),
    ),
  );
}

Authentication #

Some functionalities require authentication. In order to authenticate a user either manually call ApptiveGrid.getClient(context).authenticate(). Alternatively you can set autoAuthenticate to true in ApptiveGridAuthenticationOptions in the ApptiveGridOptions this will automatically trigger the process.

Flutter Web #

If you want to use it with Flutter web you need to call and await enableWebAuth before runApp. This takes care of the redirect of the Authentication Server

void main() async {
  await enableWebAuth();
  runApp(ApptiveGrid(child: MyApp()));
}
3
likes
0
points
1.3k
downloads

Publisher

verified publisherapptivegrid.de

Weekly Downloads

Core Library for ApptiveGrid used to provide general ApptiveGrid functionality to other Packages or Apps

Homepage

License

unknown (license)

Dependencies

flutter, http, intl, openid_client, provider, url_launcher

More

Packages that depend on apptive_grid_core