flutter_wistory 0.0.2 icon indicating copy to clipboard operation
flutter_wistory: ^0.0.2 copied to clipboard

Wistory SDK wrapper for flutter

example/lib/main.dart

import 'dart:async';

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

void main() {
  runApp(MyApp());
}

class MyApp extends StatefulWidget {
  @override
  _MyAppState createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  @override
  void initState() {
    super.initState();
    initPlatformState();
  }

  // Platform messages are asynchronous, so we initialize in an async method.
  Future<void> initPlatformState() async {
    String platformVersion;
    Wistory.initialize(
      companyToken:
          ""
    );
    if (!mounted) return;
  }

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

Publisher

unverified uploader

Wistory SDK wrapper for flutter

Documentation

API reference

License

Icon for licenses.unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on flutter_wistory