Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: removed password flow random apperance for devices which suppo… #480

Merged
merged 1 commit into from
Dec 27, 2024
Merged
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
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
// SPDX-License-Identifier: ice License 1.0

import 'dart:math';

import 'package:flutter/material.dart';
import 'package:flutter_keyboard_visibility/flutter_keyboard_visibility.dart';
import 'package:hooks_riverpod/hooks_riverpod.dart';
Expand Down Expand Up @@ -54,9 +52,7 @@ class GetStartedPage extends ConsumerWidget {
onPressed: () async {
final isPasskeyAvailable = await ref.read(isPasskeyAvailableProvider.future);
if (context.mounted) {
// TODO: remove once passwords flow is fully implemented and tested
final randomBool = Random().nextBool();
if (isPasskeyAvailable && randomBool) {
if (isPasskeyAvailable) {
await SignUpPasskeyRoute().push<void>(context);
} else {
await SignUpPasswordRoute().push<void>(context);
Expand Down
1 change: 1 addition & 0 deletions scripts/generate_code.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@
# https://pub.dev/packages/freezed
# https://pub.dev/packages/json_serializable
# https://pub.dev/packages/widgetbook
dart pub run build_runner clean
dart run build_runner build --delete-conflicting-outputs