Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.

[local_auth] fix use_key_in_widget_constructors lint #5675

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions packages/local_auth/local_auth/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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`.
Expand Down
4 changes: 2 additions & 2 deletions packages/local_auth/local_auth/example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand All @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand All @@ -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<MyApp> createState() => _MyAppState();
}
Expand Down
6 changes: 0 additions & 6 deletions packages/local_auth/local_auth/lib/src/local_auth.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
2 changes: 1 addition & 1 deletion packages/local_auth/local_auth/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down