voice_formly 0.0.2 copy "voice_formly: ^0.0.2" to clipboard
voice_formly: ^0.0.2 copied to clipboard

A dart package for building form fields with speech-to-text and built-in validation.

example/lib/main.dart

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

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

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(title: const Text('VoiceFormly Example')),
        body: Padding(
          padding: const EdgeInsets.all(16),
          child: VoiceFormField(
            controller: TextEditingController(),
            fieldType: FormFieldType.text,
            fieldId: 'exampleField',
            label: 'Enter your name',
            hint: 'Tap mic and speak',
            enableVoice: true,
            borderColor: Colors.blue,
          ),
        ),
      ),
    );
  }
}
2
likes
160
points
16
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A dart package for building form fields with speech-to-text and built-in validation.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

flutter, intl, speech_to_text

More

Packages that depend on voice_formly