image_upload 0.0.1 copy "image_upload: ^0.0.1" to clipboard
image_upload: ^0.0.1 copied to clipboard

A simple image upload widget for Flutter apps

example/lib/main.dart

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

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

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      debugShowCheckedModeBanner: false,
      home: Scaffold(
        appBar: AppBar(title: const Text('Image Upload Example')),
        body: Center(
          child: ImageUploadWidget(
            allowMultiple: true,
            onImagesSelected: (images) {
              print("Selected images: ${images.map((e) => e.path)}");
            },
            onUploadTap: (paths) {
              print("Ready to upload: $paths");
            },
          ),
        ),
      ),
    );
  }
}
1
likes
0
points
22
downloads

Publisher

verified publisherrahulreza.com

Weekly Downloads

A simple image upload widget for Flutter apps

Homepage

License

unknown (license)

Dependencies

flutter, image_picker

More

Packages that depend on image_upload