wechat_kit_extension 1.0.1 copy "wechat_kit_extension: ^1.0.1" to clipboard
wechat_kit_extension: ^1.0.1 copied to clipboard

An extension package for wechat_kit, including WeChat API integrations.

example/lib/main.dart

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

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

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: const MyHomePage(),
    );
  }
}

class MyHomePage extends StatefulWidget {
  const MyHomePage({Key? key}) : super(key: key);

  @override
  State<MyHomePage> createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(title: const Text('wechat_kit_extension example')),
      body: Center(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: <Widget>[
            TextButton(
              onPressed: () {
                WechatExtension.getAccessToken(
                  appId: 'REPLACE_YOUR_APP_ID',
                  appSecret: 'REPLACE_YOUR_APP_SECRET',
                );
              },
              child: const Text('getAccessToken'),
            ),
          ],
        ),
      ),
    );
  }
}
1
likes
130
pub points
84%
popularity

Publisher

verified publisherrxreader.com

An extension package for wechat_kit, including WeChat API integrations.

Repository (GitHub)
View/report issues

Documentation

API reference

License

Apache-2.0 (LICENSE)

More

Packages that depend on wechat_kit_extension