stories_editor 0.2.2 copy "stories_editor: ^0.2.2" to clipboard
stories_editor: ^0.2.2 copied to clipboard

This is a package created in the style of the instagram story creator, with which you can create images with images, texts, stickers (Gifs), finger drawing.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:share_plus/share_plus.dart';
import 'package:stories_editor/stories_editor.dart';

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

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter stories editor Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: const Example(),
    );
  }
}

class Example extends StatefulWidget {
  const Example({Key? key}) : super(key: key);

  @override
  State<Example> createState() => _ExampleState();
}

class _ExampleState extends State<Example> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
        backgroundColor: Colors.black,
        resizeToAvoidBottomInset: false,
        body: Center(
          child: ElevatedButton(
            onPressed: () {
              Navigator.push(
                  context,
                  MaterialPageRoute(
                      builder: (context) => StoriesEditor(
                            giphyKey: 'C4dMA7Q19nqEGdpfj82T8ssbOeZIylD4',
                            //fontFamilyList: const ['Shizuru', 'Aladin'],
                            galleryThumbnailQuality: 300,
                            //isCustomFontList: true,
                            onDone: (uri) {
                              debugPrint(uri);
                              Share.shareFiles([uri]);
                            },
                          )));
            },
            child: const Text('Open Stories Editor'),
          ),
        ));
  }
}
106
likes
75
pub points
62%
popularity

Publisher

unverified uploader

This is a package created in the style of the instagram story creator, with which you can create images with images, texts, stickers (Gifs), finger drawing.

Repository (GitHub)
View/report issues

Documentation

API reference

License

CC0-1.0 (license)

Dependencies

align_positioned, animated_text_kit, flutter, flutter_screenutil, fluttertoast, gallery_media_picker, image, image_gallery_saver, modal_gif_picker, path_provider, perfect_freehand, photo_view, provider

More

Packages that depend on stories_editor