flutter_wistory 0.0.1 copy "flutter_wistory: ^0.0.1" to clipboard
flutter_wistory: ^0.0.1 copied to clipboard

outdated

Wistory SDK wrapper for flutter

Installation #

Add flutter_wistory as a dependency in your pubspec.yaml file.

It work only with iOS now. WistoryView will show nothing for android. Work in progress.

iOS #

Add to your Podfile

source 'https://github.com/Wistory/Specs.git'
source 'https://github.com/CocoaPods/Specs.git'

pod 'Wistory', '~> 0.4.1'

run pod install --repo-update

Android - Work in progress #

Add company token in AndroidManifest.xml

<application ...
  <meta-data
    android:name="WISTORY_TOKEN"
    android:value="YOUR COMPANY TOKEN" />
</application>

Change your MainActivity.kt

import io.flutter.embedding.android.FlutterFragmentActivity

class MainActivity: FlutterFragmentActivity() {
}

Usage #

Import dependency

import 'package:flutter_wistory/wistory.dart';
import 'package:flutter_wistory/wistory_view.dart';

Call Wistory.initialize before widget will show. For example in function initState

Wistory.initialize(
  companyToken:"your company token"
);

Add WistoryView() as child in your build method. For example:

@override
Widget build(BuildContext context) {
  return MaterialApp(
    home: Scaffold(
      appBar: AppBar(
        title: const Text('Wistory example'),
      ),
      body: Center(
        child: WistoryView(), // <---
      ),
    ),
  );
}

Licence #

Shield: CC BY 4.0

This work is licensed under a Creative Commons Attribution 4.0 International License.

CC BY 4.0

0
likes
15
pub points
0%
popularity

Publisher

unverified uploader

Wistory SDK wrapper for flutter

Homepage

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on flutter_wistory