Skip to content

Commit 748383c

Browse files
committed
Fixed lint issues
1 parent 0970c71 commit 748383c

File tree

5 files changed

+30
-2
lines changed

5 files changed

+30
-2
lines changed

example/analysis_options.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
include: package:flutter_lints/flutter.yaml
2+
3+
analyzer:
4+
exclude:
5+
# Ignore generated files
6+
- '**/*.g.dart'
7+
- 'lib/src/generated/*.dart'
8+
linter:
9+
rules:
10+
- public_member_api_docs

example/lib/main.dart

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,13 @@ import 'package:flutter/material.dart';
44
import 'package:flutter/services.dart';
55
import 'package:google_api_availability/google_api_availability.dart';
66

7-
void main() => runApp(MyApp());
7+
void main() => runApp(const MyApp());
88

99
///Creates the mutable state for this widget
1010
class MyApp extends StatefulWidget {
11+
///Named [key] parameter to identify a widget
12+
const MyApp({Key? key}) : super(key: key);
13+
1114
@override
1215
_MyAppState createState() => _MyAppState();
1316
}

example/pubspec.lock

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,27 @@ packages:
2727
description: flutter
2828
source: sdk
2929
version: "0.0.0"
30+
flutter_lints:
31+
dependency: "direct dev"
32+
description:
33+
name: flutter_lints
34+
url: "https://pub.dartlang.org"
35+
source: hosted
36+
version: "1.0.4"
3037
google_api_availability:
3138
dependency: "direct dev"
3239
description:
3340
path: ".."
3441
relative: true
3542
source: path
3643
version: "3.0.1"
44+
lints:
45+
dependency: transitive
46+
description:
47+
name: lints
48+
url: "https://pub.dartlang.org"
49+
source: hosted
50+
version: "1.0.1"
3751
meta:
3852
dependency: transitive
3953
description:

example/pubspec.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ dependencies:
1313
dev_dependencies:
1414
google_api_availability:
1515
path: ../
16+
flutter_lints: 1.0.4
1617

1718
flutter:
1819
uses-material-design: true

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: google_api_availability
22
description: A Flutter plugin to check the availability of Google Play Services on an Android device.
3-
version: 3.0.1
3+
version: 3.0.2
44
homepage: https://github.com/baseflowit/flutter-google-api-availability
55

66
environment:

0 commit comments

Comments
 (0)