story_maker
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 and gradients.
Getting Started
Add this to your package's pubspec.yaml file:
dependencies:
story_maker: ^1.0.5
Example
import 'package:story_maker/story_maker.dart';
class _MyAppState extends State<MyApp> {
File? image;
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: const Text('Story Designer Example'),
),
body: Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
ElevatedButton(
onPressed: () async {
await [
Permission.photos,
Permission.storage,
].request();
final picker = ImagePicker();
await picker
.pickImage(source: ImageSource.gallery)
.then((file) async {
final File editedFile = await Navigator.of(context).push(
MaterialPageRoute(
builder: (context) => StoryMaker(
filePath: file!.path,
),
),
);
setState(() {
image = editedFile;
});
print('editedFile: ${image!.path}');
});
},
child: const Text('Pick Image'),
),
if (image != null)
Expanded(
child: Image.file(image!),
),
],
),
),
);
}
}
Available for use now
x
Image scalingx
Rotate the imagex
Adding text to an imagex
Choosing text size, font family, and colorx
Selecting gradients for text backgroundx
Selecting gradients for the background of the image
To be added
Libraries
- components/background_gradient_selector_widget
- components/font_family_select_widget
- components/overlay_item_widget
- components/remove_widget
- components/size_slider_widget
- components/text_color_select_widget
- components/text_field_widget
- components/top_tools_widget
- constants/font_colors
- constants/font_styles
- constants/gradients
- constants/item_type
- extensions/context_extension
- models/editable_items
- story_maker
- A library for creating and editing stories.
- utils/gradient_util