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

A Flutter project for make image collages.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:image_collage_maker/image_collage_maker.dart';
import 'package:image_picker/image_picker.dart';

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

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

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

class _MyAppState extends State<MyApp> {
  final List<XFile> _image=[];
  final picker = ImagePicker();
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      debugShowCheckedModeBanner: false,
      theme: ThemeData(useMaterial3: false),
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Plugin example app'),
        ),
        body: _image.length!=0?ImageCollage(images: _image,
        ):Text(("dhjvs")),




        floatingActionButton: FloatingActionButton(
          onPressed: () async {
            final pickedFile =await picker.pickMultiImage();
            // await picker.pickImage(source: ImageSource.gallery);

            setState(() {
              if (pickedFile.length!=0) {
                _image.addAll(pickedFile);

              }});
          },
        ),
      ),
    );
  }
}
1
likes
140
points
23
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter project for make image collages.

Documentation

API reference

License

GPL-3.0 (license)

Dependencies

flutter, flutter_web_plugins, image_picker, plugin_platform_interface

More

Packages that depend on image_collage_maker