Navaron Bracke
Committed by GitHub

Merge pull request #784 from navaronbracke/pre_platform_interface_cleanups

fix: Cleanups for plugin_platform_interface work
... ... @@ -8,6 +8,7 @@
.buildlog/
.history
.svn/
migrate_working_dir/
# IntelliJ related
*.iml
... ... @@ -31,8 +32,6 @@
.pub/
/build/
# Web related
# Symbolication related
app.*.symbols
... ...
# This file tracks properties of this Flutter project.
# Used by Flutter tool to assess capabilities and perform upgrades etc.
#
# This file should be version controlled and should not be manually edited.
version:
revision: 5f105a6ca7a5ac7b8bc9b241f4c2d86f4188cf5c
channel: stable
project_type: app
... ... @@ -8,9 +8,9 @@ This project is a starting point for a Flutter application.
A few resources to get you started if this is your first Flutter project:
- [Lab: Write your first Flutter app](https://flutter.dev/docs/get-started/codelab)
- [Cookbook: Useful Flutter samples](https://flutter.dev/docs/cookbook)
- [Lab: Write your first Flutter app](https://docs.flutter.dev/get-started/codelab)
- [Cookbook: Useful Flutter samples](https://docs.flutter.dev/cookbook)
For help getting started with Flutter, view our
[online documentation](https://flutter.dev/docs), which offers tutorials,
For help getting started with Flutter development, view the
[online documentation](https://docs.flutter.dev/), which offers tutorials,
samples, guidance on mobile development, and a full API reference.
... ...
... ... @@ -4,10 +4,10 @@ import 'package:mobile_scanner/mobile_scanner.dart';
import 'package:mobile_scanner_example/scanner_error_widget.dart';
class BarcodeListScannerWithController extends StatefulWidget {
const BarcodeListScannerWithController({Key? key}) : super(key: key);
const BarcodeListScannerWithController({super.key});
@override
_BarcodeListScannerWithControllerState createState() =>
State<BarcodeListScannerWithController> createState() =>
_BarcodeListScannerWithControllerState();
}
... ...
... ... @@ -4,10 +4,10 @@ import 'package:mobile_scanner/mobile_scanner.dart';
import 'package:mobile_scanner_example/scanner_error_widget.dart';
class BarcodeScannerWithController extends StatefulWidget {
const BarcodeScannerWithController({Key? key}) : super(key: key);
const BarcodeScannerWithController({super.key});
@override
_BarcodeScannerWithControllerState createState() =>
State<BarcodeScannerWithController> createState() =>
_BarcodeScannerWithControllerState();
}
... ...
... ... @@ -3,10 +3,10 @@ import 'package:mobile_scanner/mobile_scanner.dart';
import 'package:mobile_scanner_example/scanner_error_widget.dart';
class BarcodeScannerPageView extends StatefulWidget {
const BarcodeScannerPageView({Key? key}) : super(key: key);
const BarcodeScannerPageView({super.key});
@override
_BarcodeScannerPageViewState createState() => _BarcodeScannerPageViewState();
State<BarcodeScannerPageView> createState() => _BarcodeScannerPageViewState();
}
class _BarcodeScannerPageViewState extends State<BarcodeScannerPageView>
... ...
... ... @@ -5,10 +5,10 @@ import 'package:mobile_scanner/mobile_scanner.dart';
import 'package:mobile_scanner_example/scanner_error_widget.dart';
class BarcodeScannerReturningImage extends StatefulWidget {
const BarcodeScannerReturningImage({Key? key}) : super(key: key);
const BarcodeScannerReturningImage({super.key});
@override
_BarcodeScannerReturningImageState createState() =>
State<BarcodeScannerReturningImage> createState() =>
_BarcodeScannerReturningImageState();
}
... ...
... ... @@ -6,10 +6,10 @@ import 'package:mobile_scanner/mobile_scanner.dart';
import 'package:mobile_scanner_example/scanner_error_widget.dart';
class BarcodeScannerWithScanWindow extends StatefulWidget {
const BarcodeScannerWithScanWindow({Key? key}) : super(key: key);
const BarcodeScannerWithScanWindow({super.key});
@override
_BarcodeScannerWithScanWindowState createState() =>
State<BarcodeScannerWithScanWindow> createState() =>
_BarcodeScannerWithScanWindowState();
}
... ...
... ... @@ -3,10 +3,10 @@ import 'package:mobile_scanner/mobile_scanner.dart';
import 'package:mobile_scanner_example/scanner_error_widget.dart';
class BarcodeScannerWithoutController extends StatefulWidget {
const BarcodeScannerWithoutController({Key? key}) : super(key: key);
const BarcodeScannerWithoutController({super.key});
@override
_BarcodeScannerWithoutControllerState createState() =>
State<BarcodeScannerWithoutController> createState() =>
_BarcodeScannerWithoutControllerState();
}
... ...
... ... @@ -5,10 +5,10 @@ import 'package:mobile_scanner/mobile_scanner.dart';
import 'package:mobile_scanner_example/scanner_error_widget.dart';
class BarcodeScannerWithZoom extends StatefulWidget {
const BarcodeScannerWithZoom({Key? key}) : super(key: key);
const BarcodeScannerWithZoom({super.key});
@override
_BarcodeScannerWithZoomState createState() => _BarcodeScannerWithZoomState();
State<BarcodeScannerWithZoom> createState() => _BarcodeScannerWithZoomState();
}
class _BarcodeScannerWithZoomState extends State<BarcodeScannerWithZoom>
... ...
... ... @@ -11,7 +11,7 @@ import 'package:mobile_scanner_example/mobile_scanner_overlay.dart';
void main() => runApp(const MaterialApp(home: MyHome()));
class MyHome extends StatelessWidget {
const MyHome({Key? key}) : super(key: key);
const MyHome({super.key});
@override
Widget build(BuildContext context) {
... ...
... ... @@ -2,7 +2,7 @@ import 'package:flutter/material.dart';
import 'package:mobile_scanner/mobile_scanner.dart';
class ScannerErrorWidget extends StatelessWidget {
const ScannerErrorWidget({Key? key, required this.error}) : super(key: key);
const ScannerErrorWidget({super.key, required this.error});
final MobileScannerException error;
... ...
name: mobile_scanner_example
description: Demonstrates how to use the mobile_scanner plugin.
# The following line prevents the package from being accidentally published to
# pub.dev using `flutter pub publish`. This is preferred for private packages.
publish_to: 'none' # Remove this line if you wish to publish to pub.dev
version: 0.0.1
environment:
sdk: ">=2.12.0 <4.0.0"
sdk: '>=2.17.0 <4.0.0'
# Dependencies specify other packages that your package needs in order to work.
# To automatically upgrade your package dependencies to the latest versions
# consider running `flutter pub upgrade --major-versions`. Alternatively,
# dependencies can be manually updated by changing the version numbers below to
# the latest version available on pub.dev. To see which dependencies have newer
# versions available, run `flutter pub outdated`.
dependencies:
flutter:
sdk: flutter
image_picker: ^1.0.0
image_picker: ^1.0.4
mobile_scanner:
# When depending on this package from a real application you should use:
# mobile_scanner: ^x.y.z
# See https://dart.dev/tools/pub/dependencies#version-constraints
# The example app is bundled with the plugin so we use a path dependency on
# the parent directory to use the current plugin's version.
path: ../
dev_dependencies:
flutter_test:
sdk: flutter
lint: ^2.0.1
integration_test:
sdk: flutter
lint: ^2.1.2
flutter:
uses-material-design: true
... ...
// This is a basic Flutter widget test.
//
// To perform an interaction with a widget in your test, use the WidgetTester
// utility that Flutter provides. For example, you can send tap and scroll
// gestures. You can also use WidgetTester to find child widgets in the widget
// tree, read text, and verify that the values of widget properties are correct.
import 'package:flutter_test/flutter_test.dart';
void main() {
testWidgets('Verify Platform version', (WidgetTester tester) async {
// Build our app and trigger a frame.
});
}
... ... @@ -34,7 +34,7 @@
<script>
// The value below is injected by flutter build, do not touch.
var serviceWorkerVersion = null;
const serviceWorkerVersion = null;
</script>
<!-- This script adds the flutter initialization JS code -->
<script src="flutter.js" defer></script>
... ...