apptive_grid_form 0.8.0 copy "apptive_grid_form: ^0.8.0" to clipboard
apptive_grid_form: ^0.8.0 copied to clipboard

outdated

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

ApptiveGrid Form #

Pub pub points popularity likes

A Flutter Package to display ApptiveGrid Forms inside a Flutter App

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

Showing a Form #

In order to display an ApptiveGrid Form in your App use the ApptiveGridForm Widget

@override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text(widget.title),
      ),
      body: ApptiveGridForm(
        formUri: FormUri.fromUri('YOUR_FORM_URI'),
      ),
    );
  }

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 ApptiveGridForm.

@override
Widget build(BuildContext context) {
  return Scaffold(
    appBar: AppBar(
      title: Text(widget.title),
    ),
    body: ApptiveGridForm(
      formUri: FormUri.fromUri('YOUR_FORM_URI'),
      titleStyle: Theme.of(context).textTheme.headline6,
      contentPadding: const EdgeInsets.symmetric(horizontal: 16, vertical: 0),
      titlePadding: const EdgeInsets.all(16),
    ),
  );
}
4
likes
0
pub points
0%
popularity

Publisher

verified publisherapptivegrid.de

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

Homepage

License

unknown (LICENSE)

Dependencies

apptive_grid_core, flutter, intl, linked_scroll_controller, lottie

More

Packages that depend on apptive_grid_form