active_grid_grid_builder 0.1.1 copy "active_grid_grid_builder: ^0.1.1" to clipboard
active_grid_grid_builder: ^0.1.1 copied to clipboard

discontinuedreplaced by: apptive_grid_grid_builder
outdated

A Flutter Package to build Widgets based on Data from an ActiveGrid Grid.

ActiveGrid GridBuilder #

Pub pub points popularity likes

A Flutter Package to build Widgets based on Grid Data

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(
        authenticationOptions: ActiveGridAuthenticationOptions(
          autoAuthenticate = true,
        ),
      ),
      child: MyApp(),
    ),
  );
}

Authentication #

Grids need 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

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()));
}

Usage #

Add ActiveGridGridBuilder to your widget tree. The builder behaves the same as FutureBuilder.

ActiveGridGridBuilder(
    user: 'USER_ID',
    space: 'SPACE_ID',
    grid: 'GRID_ID',
    builder: (context, snapshot) {
        return YourWidget(gridData: snapshot.data);
    }
);
7
likes
120
pub points
0%
popularity

Publisher

verified publisherzweidenker.de

A Flutter Package to build Widgets based on Data from an ActiveGrid Grid.

Homepage

Documentation

API reference

License

BSD-3-Clause (LICENSE)

Dependencies

active_grid_core, flutter

More

Packages that depend on active_grid_grid_builder