story_designer 2.1.0 copy "story_designer: ^2.1.0" to clipboard
story_designer: ^2.1.0 copied to clipboard

A package for creating instagram like story, you can use this package to edit images and make it story ready by adding other contents over it like text.

example/lib/main.dart

import 'dart:io';

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

void main() {
  runApp(new MaterialApp(
    debugShowCheckedModeBanner: false,
    home: MyApp(),
  ));
}

class MyApp extends StatefulWidget {
  @override
  _MyAppState createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('Story Designer Example'),
      ),
      body: Center(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          crossAxisAlignment: CrossAxisAlignment.center,
          children: [
            TextButton(
              onPressed: () async {
                final picker = ImagePicker();
                await picker.getImage(source: ImageSource.gallery).then((file) async {
                  File editedFile = await Navigator.of(context).push(new MaterialPageRoute(
                      builder: (context) => StoryDesigner(
                            filePath: file.path,
                          )));

                  // ------- you have editedFile

                  if (editedFile != null) {
                    print('editedFile: ' + editedFile.path);
                  }
                });
              },
              child: Text('Pick Image'),
            ),
          ],
        ),
      ),
    );
  }
}
57
likes
140
points
94
downloads

Publisher

verified publishergulshan.live

Weekly Downloads

A package for creating instagram like story, you can use this package to edit images and make it story ready by adding other contents over it like text.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, flutter_colorpicker, google_fonts, path_provider, screenshot

More

Packages that depend on story_designer