micinputtextfield 0.0.4 copy "micinputtextfield: ^0.0.4" to clipboard
micinputtextfield: ^0.0.4 copied to clipboard

This package provides with image , text and audio input similar to whattsapp textfield.

example/lib/main.dart

import 'dart:developer';

import 'package:flutter/material.dart';
import 'package:micinputtextfield/mic_input_textfield.dart';

void main() => runApp(const MyApp());

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

  @override
  State<MyApp> createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  int noofincrement = 0;
  @override
  Widget build(BuildContext context) {
    Future<bool> onSend(Output out) async {
      log("OnSend");
      noofincrement = ++noofincrement;

      log(out.toJson().toString());
      log(noofincrement.toString());
      await Future.delayed(const Duration(seconds: 10));
      return true;
    }

    return MaterialApp(
      home: Scaffold(
        body: Center(
          child: MicInputTextField(
            onSend: (output) async {
              log("OnSend");
              noofincrement = ++noofincrement;

              log(output.toJson().toString());
              log(noofincrement.toString());
              await Future.delayed(const Duration(seconds: 10));
              return true;
            },
          ),
        ),
      ),
    );
  }
}
5
likes
160
points
67
downloads

Publisher

verified publisherkarsmiths.com

Weekly Downloads

This package provides with image , text and audio input similar to whattsapp textfield.

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

flutter, image_picker, loading_animation_widget, path, path_provider, record

More

Packages that depend on micinputtextfield