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

outdated

A powerful flutter plugin with Walle SDK.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'dart:async';

import 'package:walle_kit/walle_kit.dart';

void main() => runApp(MyApp());

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

class _MyAppState extends State<MyApp> {
  String _channelId = '';

  @override
  void initState() {
    super.initState();
    _initChannelId();
  }

  Future<void> _initChannelId() async {
    String channelId = await WalleKit.getChannelId();

    if (!mounted) {
      return;
    }

    setState(() {
      _channelId = channelId ?? '';
    });
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('walle_kit'),
        ),
        body: Center(
          child: Text('channelId: $_channelId\n'),
        ),
      ),
    );
  }
}
2
likes
0
pub points
65%
popularity

Publisher

verified publisherrxreader.com

A powerful flutter plugin with Walle SDK.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on walle_kit