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.

example/lib/main.dart

import 'package:active_grid_core/active_grid_core.dart';
import 'package:active_grid_form/active_grid_form.dart';
import 'package:flutter/material.dart';

// ignore_for_file: public_member_api_docs

void main() {
  runApp(
    ActiveGrid(
      options: ActiveGridOptions(
        environment: ActiveGridEnvironment.alpha,
      ),
      child: MyApp(),
    ),
  );
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Active Grid',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: MyHomePage(title: 'Flutter Demo Home Page'),
    );
  }
}

class MyHomePage extends StatefulWidget {
  MyHomePage({Key? key, required this.title}) : super(key: key);

  final String title;

  @override
  _MyHomePageState createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  @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
70
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