active_grid_form 0.1.0 copy "active_grid_form: ^0.1.0" to clipboard
active_grid_form: ^0.1.0 copied to clipboard

discontinuedreplaced by: apptive_grid_form
outdated

A Flutter Package to display ActiveGrid Forms inside a Flutter App.

ActiveGrid Form #

Pub pub points popularity likes

A Flutter Package to display ActiveGrid Forms inside a Flutter App

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,
      ),
      child: MyApp(),
    ),
  );
}

Showing a Form #

In order to display an ActiveGrid Form in your App use the ActiveGridForm Widget

@override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text(widget.title),
      ),
      body: ActiveGridForm(
        formId: 'YOUR_FORM_ID',
      ),
    );
  }

This works with empty forms and with pre-filled Forms.

Customization #

The Form will adjust to the App Theme to blend into the rest of the App. You can adjust the Title Style and the Padding by providing more arguments to ActiveGridForm.

@override
Widget build(BuildContext context) {
  return Scaffold(
    appBar: AppBar(
      title: Text(widget.title),
    ),
    body: ActiveGridForm(
      formId: 'YOUR_FORM_ID',
      titleStyle: Theme.of(context).textTheme.headline6,
      contentPadding: const EdgeInsets.symmetric(horizontal: 16, vertical: 0),
      titlePadding: const EdgeInsets.all(16),
    ),
  );
}
7
likes
110
pub points
0%
popularity

Publisher

verified publisherzweidenker.de

A Flutter Package to display ActiveGrid Forms inside a Flutter App.

Homepage

Documentation

API reference

License

BSD-3-Clause (LICENSE)

Dependencies

active_grid_core, flutter, intl, lottie

More

Packages that depend on active_grid_form