apptive_grid_grid_builder 0.2.3
apptive_grid_grid_builder: ^0.2.3 copied to clipboard

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

ApptiveGrid GridBuilder #

Pub pub points popularity likes

A Flutter Package to build Widgets based on Grid Data

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

Authentication #

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

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

Usage #

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

ApptiveGridGridBuilder(
    gridUri: GridUri(
        user: 'USER_ID',
        space: 'SPACE_ID',
        grid: 'GRID_ID',
    ),
    builder: (context, snapshot) {
        return YourWidget(gridData: snapshot.data);
    }
);
2
likes
130
pub points
27%
popularity

Publisher

zweidenker.de

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

Homepage

Documentation

API reference

License

LICENSE

Dependencies

apptive_grid_core, flutter

More

Packages that depend on apptive_grid_grid_builder