flutter_ai_forms 1.0.1 copy "flutter_ai_forms: ^1.0.1" to clipboard
flutter_ai_forms: ^1.0.1 copied to clipboard

A provider-agnostic, schema-driven Flutter dynamic form engine for AI-generated interfaces, validation, conditional fields, and extensible widgets.

example/example.dart

import 'package:flutter/material.dart';
import 'package:flutter_ai_forms/flutter_ai_forms.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    final schema = FormSchema.fromJson({
      "title": "Example Form",
      "fields": [
        {"id": "name", "type": "text", "label": "Full Name", "required": true},
        {"id": "email", "type": "email", "label": "Email", "required": true}
      ]
    });

    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(title: const Text('flutter_ai_forms Example')),
        body: AiForm(
          schema: schema,
          onSubmit: (result) => print(result.values),
        ),
      ),
    );
  }
}
0
likes
150
points
38
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A provider-agnostic, schema-driven Flutter dynamic form engine for AI-generated interfaces, validation, conditional fields, and extensible widgets.

Repository (GitHub)
View/report issues

Topics

#form #ai #dynamic-forms #schema #llm

License

unknown (license)

Dependencies

flutter

More

Packages that depend on flutter_ai_forms