Skip to content

Commit 12284b3

Browse files
fix(firebase_ui_auth): Error added in ProfileScreen in firebase_ui_auth 1.4.0 (#10957)
* Fix Error: * fix(test): get tests to pass The prefer_const_constructors warning is ignored in this case because the LoadingIndicator widget used inside the children list of the Row does not have a const constructor. This is due to the fact that LoadingIndicator extends PlatformWidget, which doesn't have a const constructor, making it impossible to have a const constructor for LoadingIndicator. Since we can't make the LoadingIndicator constructor const, we have to ignore the warning for the specific Row constructor. This is an acceptable solution in cases like this, where making the constructor const is not feasible or possible. * fix: revert changes
1 parent 4897fa0 commit 12284b3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Diff for: packages/firebase_ui_auth/lib/src/screens/profile_screen.dart

+3-2
Original file line numberDiff line numberDiff line change
@@ -390,9 +390,10 @@ class _EmailVerificationBadgeState extends State<_EmailVerificationBadge> {
390390
),
391391
const SizedBox(height: 16),
392392
if (state == EmailVerificationState.pending)
393-
const Row(
393+
// ignore: prefer_const_constructors
394+
Row(
394395
mainAxisAlignment: MainAxisAlignment.center,
395-
children: [
396+
children: const [
396397
LoadingIndicator(size: 16, borderWidth: 0.5),
397398
SizedBox(width: 16),
398399
Text('Waiting for email verification'),

0 commit comments

Comments
 (0)