diff --git a/packages/local_auth/local_auth/CHANGELOG.md b/packages/local_auth/local_auth/CHANGELOG.md index 6765b497e506..ec27d1781af8 100644 --- a/packages/local_auth/local_auth/CHANGELOG.md +++ b/packages/local_auth/local_auth/CHANGELOG.md @@ -1,3 +1,8 @@ +## 2.0.2 + +* Fixes `use_key_in_widget_constructors` lint in the example. +* Removes ignoring `public_member_api_docs` lint. + ## 2.0.1 * Restores the ability to import `error_codes.dart`. diff --git a/packages/local_auth/local_auth/example/lib/main.dart b/packages/local_auth/local_auth/example/lib/main.dart index cc687f562402..bd86914728c6 100644 --- a/packages/local_auth/local_auth/example/lib/main.dart +++ b/packages/local_auth/local_auth/example/lib/main.dart @@ -2,8 +2,6 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -// ignore_for_file: public_member_api_docs - import 'dart:async'; import 'package:flutter/material.dart'; @@ -14,7 +12,9 @@ void main() { runApp(const MyApp()); } +/// MyApp is the Main Application. class MyApp extends StatefulWidget { + /// Default Constructor const MyApp({Key? key}) : super(key: key); @override diff --git a/packages/local_auth/local_auth/example/lib/readme_excerpts.dart b/packages/local_auth/local_auth/example/lib/readme_excerpts.dart index 25ddfe0fa62f..bf13e5fa9073 100644 --- a/packages/local_auth/local_auth/example/lib/readme_excerpts.dart +++ b/packages/local_auth/local_auth/example/lib/readme_excerpts.dart @@ -5,8 +5,6 @@ // This file exists solely to host compiled excerpts for README.md, and is not // intended for use as an actual example application. -// ignore_for_file: public_member_api_docs - import 'package:flutter/material.dart'; // #docregion ErrorHandling import 'package:flutter/services.dart'; @@ -24,10 +22,14 @@ import 'package:local_auth_ios/local_auth_ios.dart'; // #enddocregion CustomMessages void main() { - runApp(MyApp()); + runApp(const MyApp()); } +/// MyApp is the Main Application. class MyApp extends StatefulWidget { + /// Default Constructor + const MyApp({Key? key}) : super(key: key); + @override State createState() => _MyAppState(); } diff --git a/packages/local_auth/local_auth/lib/src/local_auth.dart b/packages/local_auth/local_auth/lib/src/local_auth.dart index 206bd04f7b32..2dce66df6a9c 100644 --- a/packages/local_auth/local_auth/lib/src/local_auth.dart +++ b/packages/local_auth/local_auth/lib/src/local_auth.dart @@ -2,12 +2,6 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -// This is a temporary ignore to allow us to land a new set of linter rules in a -// series of manageable patches instead of one gigantic PR. It disables some of -// the new lints that are already failing on this plugin, for this plugin. It -// should be deleted and the failing lints addressed as soon as possible. -// ignore_for_file: public_member_api_docs - import 'dart:async'; import 'package:flutter/services.dart'; diff --git a/packages/local_auth/local_auth/pubspec.yaml b/packages/local_auth/local_auth/pubspec.yaml index 087b84920bb9..119b8d778cbc 100644 --- a/packages/local_auth/local_auth/pubspec.yaml +++ b/packages/local_auth/local_auth/pubspec.yaml @@ -3,7 +3,7 @@ description: Flutter plugin for Android and iOS devices to allow local authentication via fingerprint, touch ID, face ID, passcode, pin, or pattern. repository: https://github.com/flutter/plugins/tree/main/packages/local_auth/local_auth issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+local_auth%22 -version: 2.0.1 +version: 2.0.2 environment: sdk: ">=2.14.0 <3.0.0"