From 6017c330b27a74a02fb50e300fd0d6f0af8b4e80 Mon Sep 17 00:00:00 2001 From: "song.chao" Date: Wed, 31 Jan 2024 10:22:52 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/v2/quickstart.md | 2 +- example/lib/main.dart | 10 ---------- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/docs/v2/quickstart.md b/docs/v2/quickstart.md index c45e8ec..10177bb 100644 --- a/docs/v2/quickstart.md +++ b/docs/v2/quickstart.md @@ -34,7 +34,7 @@ class MyApp extends StatefulWidget { State createState() => _MyAppState(); } -class _MyAppState extends State { +class _MyAppState extends State { final iminPrinter = IminPrinter(); @override void initState() { diff --git a/example/lib/main.dart b/example/lib/main.dart index a4e26c9..10e96fa 100644 --- a/example/lib/main.dart +++ b/example/lib/main.dart @@ -29,18 +29,8 @@ class _MyAppState extends State { }); } }); - // getDeviceUseSDKVersion(); } - // /// 获取设备应该使用哪个版本SDK - // Future getDeviceUseSDKVersion() async { - // bool? v = await iminPrinter.getUseSdkVersion(); - // setState(() { - // version = v; - // }); - - // } - @override Widget build(BuildContext context) { return MaterialApp(