walle_kit 3.0.4 copy "walle_kit: ^3.0.4" to clipboard
walle_kit: ^3.0.4 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/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'),
        ),
      ),
    );
  }
}
2
likes
140
pub points
69%
popularity

Publisher

verified publisherrxreader.com

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

Repository (GitHub)
View/report issues

Documentation

API reference

License

Apache-2.0 (LICENSE)

Dependencies

flutter, json_annotation, plugin_platform_interface

More

Packages that depend on walle_kit