lvn_plugin_flutter 0.1.3
lvn_plugin_flutter: ^0.1.3 copied to clipboard
Plugin for AI LuatVietnam.
example/lib/main.dart
import 'package:flutter/material.dart';
import 'package:lvn_plugin_flutter/lvn_plugin_flutter.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatefulWidget {
@override
_MyAppState createState() => _MyAppState();
}
class _MyAppState extends State<MyApp> {
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
appBar: AppBar(
title: const Text('Plugin example app'),
),
body: Center(
child: Column(
mainAxisSize: MainAxisSize.min,
children: [
/// Phần 2. Hướng dẫn tạo Widget với plugin
// SampleButton(
// text: "Sample Button",
// onPressed: () {
// print("Sample Button Click");
// },
// ),
Expanded(
child:Stack(
children: [
DragButton(x: 80,y: 180,bcode: "CB0123456788",bid: 3, pid: 1),
],
)),
// /// Phần 4. Hướng dẫn gọi native code từ plugin
// FutureBuilder<String?>(
// future: SampleCallNativeFlutter.getToken(),
// builder: (_, snapshoot) {
// return Text('${snapshoot.data}');
// },
// ),
],
),
),
),
);
}
}