simple_mastodon_updates

Creator: coderz1093

Last updated:

0 purchases

TODO
Add to Cart

Description:

simple mastodon updates

A Mastodon feed parser for the flutter_simple_update package. Allows you to easily post your Mastodon updates as notifications in your app.
Features #

Parsing your mastodon feed
Works as extension for flutter_simple_update

Getting started #

Install the main package flutter pub add flutter_simple_updates
Install this package flutter pub add simple_mastodon_updates
Add your feed as shown in the examle below
Decide on a trigger element (in the example case it's !), this needs to be the <first character/string of your post!


Trigger: A trigger is a way to notifiy the package to display a post. This way you can still post things on your account that can't reach your app users if you want.

Usage #

class MyHomePage extends StatelessWidget {
MyHomePage({super.key});
final SimpleMastodonParser parser =
SimpleMastodonParser("!", "https://mastodon.world/<your-tag-here>");// Included in this package!

@override
Widget build(BuildContext context) {
return Scaffold(
body: Center(
child: NotificationWidget( // Not in this package! Head over to the flutter_simple_updates package!
cache: HiveCacheWrapper(), // Not in this package! Head over to the flutter_simple_updates package!
feedProvider: parser,
),
),
);
}
}

copied to clipboard
Additional information #

Check out the main package for other parsers or if you want to implement your own.

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.

Related Products

More From This Creator