active_grid_core 0.1.1+1 copy "active_grid_core: ^0.1.1+1" to clipboard
active_grid_core: ^0.1.1+1 copied to clipboard

discontinuedreplaced by: apptive_grid_core
outdated

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

ActiveGrid Core #

Pub pub points popularity likes

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

Setup #

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

import 'package:active_grid_core/active_grid_core.dart';

void main() {
  runApp(
    ActiveGrid(
      options: ActiveGridOptions(
        environment: ActiveGridEnvironment.alpha,
        authenticationOptions: ActiveGridAuthenticationOptions(
          autoAuthenticate = true,
        ),
      ),
      child: MyApp(),
    ),
  );
}

Authentication #

Some functionalities require authentication. In order to authenticate a user either manually call ActiveGrid.getClient(context).authenticate(). Alternatively you can set autoAuthenticate to true in ActiveGridAuthenticationOptions in the ActiveGridOptions 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(ActiveGrid(child: MyApp()));
}
7
likes
0
pub points
0%
popularity

Publisher

verified publisherzweidenker.de

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

Homepage

License

unknown (LICENSE)

Dependencies

flutter, http, intl, openid_client, provider, url_launcher

More

Packages that depend on active_grid_core