Navaron Bracke

update example app pubspec & gitignore

@@ -8,6 +8,7 @@ @@ -8,6 +8,7 @@
8 .buildlog/ 8 .buildlog/
9 .history 9 .history
10 .svn/ 10 .svn/
  11 +migrate_working_dir/
11 12
12 # IntelliJ related 13 # IntelliJ related
13 *.iml 14 *.iml
@@ -31,8 +32,6 @@ @@ -31,8 +32,6 @@
31 .pub/ 32 .pub/
32 /build/ 33 /build/
33 34
34 -# Web related  
35 -  
36 # Symbolication related 35 # Symbolication related
37 app.*.symbols 36 app.*.symbols
38 37
1 -# This file tracks properties of this Flutter project.  
2 -# Used by Flutter tool to assess capabilities and perform upgrades etc.  
3 -#  
4 -# This file should be version controlled and should not be manually edited.  
5 -  
6 -version:  
7 - revision: 5f105a6ca7a5ac7b8bc9b241f4c2d86f4188cf5c  
8 - channel: stable  
9 -  
10 -project_type: app  
@@ -8,9 +8,9 @@ This project is a starting point for a Flutter application. @@ -8,9 +8,9 @@ This project is a starting point for a Flutter application.
8 8
9 A few resources to get you started if this is your first Flutter project: 9 A few resources to get you started if this is your first Flutter project:
10 10
11 -- [Lab: Write your first Flutter app](https://flutter.dev/docs/get-started/codelab)  
12 -- [Cookbook: Useful Flutter samples](https://flutter.dev/docs/cookbook) 11 +- [Lab: Write your first Flutter app](https://docs.flutter.dev/get-started/codelab)
  12 +- [Cookbook: Useful Flutter samples](https://docs.flutter.dev/cookbook)
13 13
14 -For help getting started with Flutter, view our  
15 -[online documentation](https://flutter.dev/docs), which offers tutorials, 14 +For help getting started with Flutter development, view the
  15 +[online documentation](https://docs.flutter.dev/), which offers tutorials,
16 samples, guidance on mobile development, and a full API reference. 16 samples, guidance on mobile development, and a full API reference.
1 -include: package:lint/analysis_options.yaml  
  1 +# This file configures the analyzer, which statically analyzes Dart code to
  2 +# check for errors, warnings, and lints.
  3 +#
  4 +# The issues identified by the analyzer are surfaced in the UI of Dart-enabled
  5 +# IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be
  6 +# invoked from the command line by running `flutter analyze`.
  7 +
  8 +# The following line activates a set of recommended lints for Flutter apps,
  9 +# packages, and plugins designed to encourage good coding practices.
  10 +include: package:flutter_lints/flutter.yaml
  11 +
  12 +linter:
  13 + # The lint rules applied to this project can be customized in the
  14 + # section below to disable rules from the `package:flutter_lints/flutter.yaml`
  15 + # included above or to enable additional rules. A list of all available lints
  16 + # and their documentation is published at https://dart.dev/lints.
  17 + #
  18 + # Instead of disabling a lint rule for the entire project in the
  19 + # section below, it can also be suppressed for a single line of code
  20 + # or a specific dart file by using the `// ignore: name_of_lint` and
  21 + # `// ignore_for_file: name_of_lint` syntax on the line or in the file
  22 + # producing the lint.
  23 + rules:
  24 + # avoid_print: false # Uncomment to disable the `avoid_print` rule
  25 + # prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule
  26 +
  27 +# Additional information about this file can be found at
  28 +# https://dart.dev/guides/language/analysis-options
1 name: mobile_scanner_example 1 name: mobile_scanner_example
2 description: Demonstrates how to use the mobile_scanner plugin. 2 description: Demonstrates how to use the mobile_scanner plugin.
  3 +# The following line prevents the package from being accidentally published to
  4 +# pub.dev using `flutter pub publish`. This is preferred for private packages.
3 publish_to: 'none' # Remove this line if you wish to publish to pub.dev 5 publish_to: 'none' # Remove this line if you wish to publish to pub.dev
4 version: 0.0.1 6 version: 0.0.1
5 7
6 environment: 8 environment:
7 - sdk: ">=2.12.0 <4.0.0" 9 + sdk: '>=2.17.0 <4.0.0'
8 10
  11 +# Dependencies specify other packages that your package needs in order to work.
  12 +# To automatically upgrade your package dependencies to the latest versions
  13 +# consider running `flutter pub upgrade --major-versions`. Alternatively,
  14 +# dependencies can be manually updated by changing the version numbers below to
  15 +# the latest version available on pub.dev. To see which dependencies have newer
  16 +# versions available, run `flutter pub outdated`.
9 dependencies: 17 dependencies:
10 flutter: 18 flutter:
11 sdk: flutter 19 sdk: flutter
12 - image_picker: ^1.0.0  
13 20
  21 + image_picker: ^1.0.4
14 mobile_scanner: 22 mobile_scanner:
  23 + # When depending on this package from a real application you should use:
  24 + # mobile_scanner: ^x.y.z
  25 + # See https://dart.dev/tools/pub/dependencies#version-constraints
  26 + # The example app is bundled with the plugin so we use a path dependency on
  27 + # the parent directory to use the current plugin's version.
15 path: ../ 28 path: ../
16 29
17 dev_dependencies: 30 dev_dependencies:
  31 + integration_test:
  32 + sdk: flutter
18 flutter_test: 33 flutter_test:
19 sdk: flutter 34 sdk: flutter
20 - lint: ^2.0.1 35 + flutter_lints: ^2.0.0
21 36
22 flutter: 37 flutter:
23 uses-material-design: true 38 uses-material-design: true