Skip to content
Open
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
6 changes: 6 additions & 0 deletions analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
include: package:flutter_lints/flutter.yaml

linter:
rules:
# Ignoring to handle diffenent SDKs on dev machine
#- unnecessary_ignore
6 changes: 0 additions & 6 deletions packages/firebase_ui_auth/analysis_options.yaml

This file was deleted.

28 changes: 0 additions & 28 deletions packages/firebase_ui_auth/example/analysis_options.yaml

This file was deleted.

2 changes: 1 addition & 1 deletion packages/firebase_ui_auth/example/lib/config.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.

// ignore_for_file: do_not_use_environment, constant_identifier_names, non_constant_identifier_names
// ignore_for_file: constant_identifier_names, non_constant_identifier_names

import 'package:flutter/foundation.dart';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
// BSD-style license that can be found in the LICENSE file.

// File generated by FlutterFire CLI.
// ignore_for_file: lines_longer_than_80_chars, avoid_classes_with_only_static_members
import 'package:firebase_core/firebase_core.dart' show FirebaseOptions;
import 'package:flutter/foundation.dart'
show defaultTargetPlatform, kIsWeb, TargetPlatform;
Expand Down
2 changes: 1 addition & 1 deletion packages/firebase_ui_auth/example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ dev_dependencies:
sdk: flutter
flutter_test:
sdk: flutter
flutter_lints: ^3.0.1
flutter_lints: ^6.0.0
google_sign_in: ^6.2.1
http: ^1.1.2
integration_test:
Expand Down
2 changes: 1 addition & 1 deletion packages/firebase_ui_auth/lib/firebase_ui_auth.dart
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ class FirebaseUIAuth {
await OAuthProviders.signOut(resolvedAuth);
await resolvedAuth.signOut();

if (context != null) {
if (context != null && context.mounted) {
final action = FirebaseUIAction.ofType<SignedOutAction>(context);
action?.callback(context);
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// Copyright 2022, the Chromium project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// ignore_for_file: deprecated_member_use

import 'package:firebase_auth/firebase_auth.dart' as fba;
import 'package:flutter/foundation.dart';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ class __EmailVerificationScreenContentState
super.initState();
}

void _sendEmailVerification(_) {
void _sendEmailVerification(void _) {
controller
..addListener(() {
setState(() {});
Expand Down
7 changes: 5 additions & 2 deletions packages/firebase_ui_auth/lib/src/screens/profile_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,6 @@ class _EmailVerificationBadgeState extends State<_EmailVerificationBadge> {
),
const SizedBox(height: 16),
if (state == EmailVerificationState.pending)
// ignore: prefer_const_constructors
Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Expand Down Expand Up @@ -615,6 +614,8 @@ class _MFAToggleState extends State<_MFAToggle> {
final mfa = widget.auth.currentUser!.multiFactor;
final session = await mfa.getSession();

if (!mounted) return;

await startPhoneVerification(
context: context,
action: AuthAction.none,
Expand All @@ -637,7 +638,9 @@ class _MFAToggleState extends State<_MFAToggle> {
isLoading = false;
});

Navigator.of(context).popUntil((route) => route == currentRoute);
if (context.mounted) {
Navigator.of(context).popUntil((route) => route == currentRoute);
}
}
})
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ class _AuthFlowBuilderState<T extends AuthController>

late AuthProvider provider = widget.provider ?? _createDefaultProvider();

Widget _defaultBuilder(_, __, ___, ____) {
Widget _defaultBuilder(BuildContext _, AuthState __, T ___, Widget? ____) {
return widget.child!;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,8 @@ class _DeleteAccountButtonState extends State<DeleteAccountButton> {
final user = auth.currentUser!;
await auth.currentUser?.delete();

if (!mounted) return;

FirebaseUIAction.ofType<AccountDeletedAction>(
context,
)?.callback(context, user);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ class _EditableUserDisplayNameState extends State<EditableUserDisplayName> {
await auth.currentUser?.updateDisplayName(ctrl.text);
await auth.currentUser?.reload();

if (!mounted) return;

FirebaseUIAction.ofType<DisplayNameChangedAction>(context)?.callback(
context,
previousDisplayName,
Expand Down
3 changes: 1 addition & 2 deletions packages/firebase_ui_auth/lib/src/widgets/phone_input.dart
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ class _CountryPicker extends StatefulWidget {
const _CountryPicker();

@override
// ignore: library_private_types_in_public_api
_CountryPickerState createState() => _CountryPickerState();
}

Expand Down Expand Up @@ -142,7 +141,7 @@ class PhoneInputState extends State<PhoneInput> {
// ignore: library_private_types_in_public_api
_CountryCodeItem? countryCodeItem;

void _onSubmitted(_) {
void _onSubmitted(void _) {
if (formKey.currentState!.validate()) {
widget.onSubmit?.call(phoneNumber);
}
Expand Down
2 changes: 1 addition & 1 deletion packages/firebase_ui_auth/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ dependencies:
dev_dependencies:
flutter_test:
sdk: flutter
flutter_lints: ^3.0.1
flutter_lints: ^6.0.0
mockito: ^5.4.4

false_secrets:
Expand Down
4 changes: 0 additions & 4 deletions packages/firebase_ui_database/analysis_options.yaml

This file was deleted.

29 changes: 0 additions & 29 deletions packages/firebase_ui_database/example/analysis_options.yaml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
// BSD-style license that can be found in the LICENSE file.

// File generated by FlutterFire CLI.
// ignore_for_file: lines_longer_than_80_chars, avoid_classes_with_only_static_members
import 'package:firebase_core/firebase_core.dart' show FirebaseOptions;
import 'package:flutter/foundation.dart'
show defaultTargetPlatform, kIsWeb, TargetPlatform;
Expand Down
2 changes: 1 addition & 1 deletion packages/firebase_ui_database/example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ dev_dependencies:
# activated in the `analysis_options.yaml` file located at the root of your
# package. See that file for information about deactivating specific lint
# rules and activating additional ones.
flutter_lints: ^3.0.1
flutter_lints: ^6.0.0

# For information on the generic Dart part of this file, see the
# following page: https://dart.dev/tools/pub/pubspec
Expand Down
2 changes: 1 addition & 1 deletion packages/firebase_ui_database/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ dependencies:
dev_dependencies:
flutter_test:
sdk: flutter
flutter_lints: ^3.0.1
flutter_lints: ^6.0.0

# For information on the generic Dart part of this file, see the
# following page: https://dart.dev/tools/pub/pubspec
Expand Down
4 changes: 0 additions & 4 deletions packages/firebase_ui_firestore/analysis_options.yaml

This file was deleted.

29 changes: 0 additions & 29 deletions packages/firebase_ui_firestore/example/analysis_options.yaml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
// BSD-style license that can be found in the LICENSE file.

// File generated by FlutterFire CLI.
// ignore_for_file: lines_longer_than_80_chars, avoid_classes_with_only_static_members
import 'package:firebase_core/firebase_core.dart' show FirebaseOptions;
import 'package:flutter/foundation.dart'
show defaultTargetPlatform, kIsWeb, TargetPlatform;
Expand Down
2 changes: 1 addition & 1 deletion packages/firebase_ui_firestore/example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ dev_dependencies:
# activated in the `analysis_options.yaml` file located at the root of your
# package. See that file for information about deactivating specific lint
# rules and activating additional ones.
flutter_lints: ^3.0.1
flutter_lints: ^6.0.0

# For information on the generic Dart part of this file, see the
# following page: https://dart.dev/tools/pub/pubspec
Expand Down
2 changes: 1 addition & 1 deletion packages/firebase_ui_firestore/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ dependencies:
dev_dependencies:
flutter_test:
sdk: flutter
flutter_lints: ^3.0.1
flutter_lints: ^6.0.0
mockito: ^5.4.4

# For information on the generic Dart part of this file, see the
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.

// ignore_for_file: subtype_of_sealed_class, must_be_immutable, avoid_implementing_value_types
// ignore_for_file: subtype_of_sealed_class, must_be_immutable

import 'dart:async';

Expand Down
4 changes: 0 additions & 4 deletions packages/firebase_ui_localizations/analysis_options.yaml

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
// BSD-style license that can be found in the LICENSE file.

// File generated by FlutterFire CLI.
// ignore_for_file: lines_longer_than_80_chars, avoid_classes_with_only_static_members
import 'package:firebase_core/firebase_core.dart' show FirebaseOptions;
import 'package:flutter/foundation.dart'
show defaultTargetPlatform, kIsWeb, TargetPlatform;
Expand Down
2 changes: 1 addition & 1 deletion packages/firebase_ui_localizations/example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ dependencies:
sdk: flutter

dev_dependencies:
flutter_lints: ^3.0.1
flutter_lints: ^6.0.0
flutter_test:
sdk: flutter

Expand Down
2 changes: 1 addition & 1 deletion packages/firebase_ui_localizations/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ dependencies:
dev_dependencies:
flutter_test:
sdk: flutter
flutter_lints: ^3.0.1
flutter_lints: ^6.0.0

false_secrets:
- example/**
Expand Down
4 changes: 0 additions & 4 deletions packages/firebase_ui_oauth/analysis_options.yaml

This file was deleted.

29 changes: 0 additions & 29 deletions packages/firebase_ui_oauth/example/analysis_options.yaml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
// BSD-style license that can be found in the LICENSE file.

// File generated by FlutterFire CLI.
// ignore_for_file: lines_longer_than_80_chars, avoid_classes_with_only_static_members
import 'package:firebase_core/firebase_core.dart' show FirebaseOptions;
import 'package:flutter/foundation.dart'
show defaultTargetPlatform, kIsWeb, TargetPlatform;
Expand Down
2 changes: 1 addition & 1 deletion packages/firebase_ui_oauth/example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ dev_dependencies:
# activated in the `analysis_options.yaml` file located at the root of your
# package. See that file for information about deactivating specific lint
# rules and activating additional ones.
flutter_lints: ^3.0.1
flutter_lints: ^6.0.0

# For information on the generic Dart part of this file, see the
# following page: https://dart.dev/tools/pub/pubspec
Expand Down
Loading
Loading