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

come.

example/lib/main.dart

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

import 'package:flutter/services.dart';

import 'package:wx_both_tools/wx_both_tools.dart';

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

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

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

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

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

    Future<String?> version=WxBothTools.platformVersion;
    version.then((value){
      if(value!.isNotEmpty){
        setState(() {
          _platformVersion=value;
        });
      }
    }

    );

  }

  @override
  Widget build(BuildContext context) {


    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Plugin example app'),
        ),
        body: Center(child: Text(_platformVersion),)
      ),
    );
  }
}
0
likes
150
points
0
downloads

Publisher

unverified uploader

Weekly Downloads

come.

Homepage

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on wx_both_tools

Packages that implement wx_both_tools