inappstory_plugin 0.3.0 copy "inappstory_plugin: ^0.3.0" to clipboard
inappstory_plugin: ^0.3.0 copied to clipboard

A Flutter plugin to use InAppStory SDK. Supports Android and iOS platforms.

InAppStory #

A Flutter plugin to use InAppStory SDK. Supports Android and iOS platforms.

Currently under development & not published

The full documentation for InAppStory SDK can be found on docs.inappstory.com.

Full example #

class MyHomePage extends StatefulWidget {
  const MyHomePage({super.key, required this.title});

  final String title;

  @override
  State<MyHomePage> createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  final initialization = InAppStoryPlugin().initWith('<your api key>', '<user id>');

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        backgroundColor: Theme
            .of(context)
            .colorScheme
            .inversePrimary,
        title: Text(widget.title),
      ),
      body: Column(
        children: [
          child: FeedStoriesWidget(
            feed: '<your feed id>',
          ),
        ],
      ),
    );
  }
}