imgflip_api 1.0.0 imgflip_api: ^1.0.0 copied to clipboard
An API for Imgflip made in Dart. This package allows you to interact with the Imgflip API to create memes.
example/imgflip_api_example.dart
import 'package:imgflip_api/imgflip_api.dart';
void main() async {
/// Retrieves a list of available memes from the ImgFlip API.
final memes = await ImgFlip.getMemes();
print("Generating meme with template ID: ${memes.first.id}");
/// Generates a meme using the specified template ID and texts.
ImgFlip(
username: 'YOUR USERNAME',
password: 'YOUR PASSWORD',
).generateMeme(templateId: memes.first.id, texts: ['Hello', 'World']).then(
(url) {
print(url);
});
}