walle_kit_v2 4.0.0 copy "walle_kit_v2: ^4.0.0" to clipboard
walle_kit_v2: ^4.0.0 copied to clipboard

PlatformAndroid

A powerful Flutter plugin allowing developers to read/write channelId to apk with Walle Tools/SDKs.

example/lib/main.dart

import 'dart:async';

import 'package:flutter/material.dart';
import 'package:walle_kit_v2/walle_kit.dart';

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

class MyApp extends StatefulWidget {
  const MyApp({
    super.key,
  });

  @override
  State<StatefulWidget> createState() => _MyAppState();
}

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

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

  Future<void> _initChannelId() async {
    final String? channelId = await Walle.instance.getChannelId();

    if (!mounted) {
      return;
    }

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

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

Publisher

unverified uploader

Weekly Downloads

A powerful Flutter plugin allowing developers to read/write channelId to apk with Walle Tools/SDKs.

Documentation

API reference

License

Apache-2.0 (license)

Dependencies

flutter, json_annotation, plugin_platform_interface

More

Packages that depend on walle_kit_v2

Packages that implement walle_kit_v2