active_grid_core 0.1.1 active_grid_core: ^0.1.1 copied to clipboard
Core Library for ActiveGrid used to provide general ActiveGrid functionality to other Packages or Apps
ActiveGrid Core #
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.