remove unused packages.
This commit is contained in:
+4
-4
@@ -9,7 +9,7 @@ import 'package:flutter/services.dart';
|
|||||||
import 'package:flutter_acrylic/flutter_acrylic.dart';
|
import 'package:flutter_acrylic/flutter_acrylic.dart';
|
||||||
import 'package:url_launcher/url_launcher_string.dart';
|
import 'package:url_launcher/url_launcher_string.dart';
|
||||||
import 'package:window_manager/window_manager.dart';
|
import 'package:window_manager/window_manager.dart';
|
||||||
import 'package:zbar_scan_plugin/zbar_scan_plugin.dart' as ZBar;
|
import 'package:zbar_scan_plugin/zbar_scan_plugin.dart' as zbar;
|
||||||
|
|
||||||
Future main() async {
|
Future main() async {
|
||||||
WidgetsFlutterBinding.ensureInitialized();
|
WidgetsFlutterBinding.ensureInitialized();
|
||||||
@@ -72,7 +72,7 @@ enum Status {
|
|||||||
class _MyHomePageState extends State<MyHomePage> {
|
class _MyHomePageState extends State<MyHomePage> {
|
||||||
Offset currentWindowPos = Offset.zero;
|
Offset currentWindowPos = Offset.zero;
|
||||||
Status status = Status.standBy;
|
Status status = Status.standBy;
|
||||||
List<ZBar.CodeInfo> codes = [];
|
List<zbar.CodeInfo> codes = [];
|
||||||
|
|
||||||
@override
|
@override
|
||||||
void initState() {
|
void initState() {
|
||||||
@@ -115,10 +115,10 @@ class _MyHomePageState extends State<MyHomePage> {
|
|||||||
super.initState();
|
super.initState();
|
||||||
}
|
}
|
||||||
|
|
||||||
static Future<List<ZBar.CodeInfo>> scan(dynamic _) async {
|
static Future<List<zbar.CodeInfo>> scan(dynamic _) async {
|
||||||
var imagePath = '/tmp/${DateTime.now().toIso8601String()}.png';
|
var imagePath = '/tmp/${DateTime.now().toIso8601String()}.png';
|
||||||
Process.runSync('scrot', [imagePath]);
|
Process.runSync('scrot', [imagePath]);
|
||||||
var result = ZBar.scan(imagePath);
|
var result = zbar.scan(imagePath);
|
||||||
File(imagePath).delete();
|
File(imagePath).delete();
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|||||||
+2
-4
@@ -34,16 +34,14 @@ dependencies:
|
|||||||
|
|
||||||
# The following adds the Cupertino Icons font to your application.
|
# The following adds the Cupertino Icons font to your application.
|
||||||
# Use with the CupertinoIcons class for iOS style icons.
|
# Use with the CupertinoIcons class for iOS style icons.
|
||||||
cupertino_icons: ^1.0.2
|
|
||||||
window_manager: ^0.3.2
|
window_manager: ^0.3.2
|
||||||
flutter_acrylic: ^1.1.2
|
flutter_acrylic: ^1.1.2
|
||||||
image: ^3.3.0
|
|
||||||
auto_size_text: ^3.0.0
|
auto_size_text: ^3.0.0
|
||||||
url_launcher: ^6.1.10
|
url_launcher: ^6.1.10
|
||||||
|
collection: ^1.17.0
|
||||||
zbar_scan_plugin:
|
zbar_scan_plugin:
|
||||||
git:
|
git:
|
||||||
url: https://github.com/debuggerx01/zbar_scan_plugin.git
|
url: https://github.com/debuggerx01/zbar_scan_plugin.git
|
||||||
collection: ^1.17.0
|
|
||||||
|
|
||||||
dev_dependencies:
|
dev_dependencies:
|
||||||
flutter_test:
|
flutter_test:
|
||||||
@@ -54,7 +52,7 @@ dev_dependencies:
|
|||||||
# activated in the `analysis_options.yaml` file located at the root of your
|
# activated in the `analysis_options.yaml` file located at the root of your
|
||||||
# package. See that file for information about deactivating specific lint
|
# package. See that file for information about deactivating specific lint
|
||||||
# rules and activating additional ones.
|
# rules and activating additional ones.
|
||||||
flutter_lints: ^2.0.0
|
flutter_lints: ^2.0.1
|
||||||
yaml: any
|
yaml: any
|
||||||
|
|
||||||
# For information on the generic Dart part of this file, see the
|
# For information on the generic Dart part of this file, see the
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
// ignore_for_file: avoid_print
|
||||||
|
|
||||||
import 'dart:io';
|
import 'dart:io';
|
||||||
|
|
||||||
import 'package:yaml/yaml.dart';
|
import 'package:yaml/yaml.dart';
|
||||||
|
|||||||
Reference in New Issue
Block a user