fix: onboarding page spacing

This commit is contained in:
Prateek Sunal 2024-03-25 12:38:51 +05:30
parent bd5c56349a
commit b185a37435

View file

@ -167,7 +167,7 @@ class _OnboardingPageState extends State<OnboardingPage> {
text: l10n.newUser,
),
),
const SizedBox(height: 24),
const SizedBox(height: 16),
Container(
height: 56,
width: double.infinity,
@ -219,11 +219,10 @@ class _OnboardingPageState extends State<OnboardingPage> {
}
Future<void> _optForOfflineMode() async {
final canContinue = Platform.isMacOS || Platform.isLinux
bool canCheckBio = Platform.isMacOS || Platform.isLinux
? true
: await LocalAuthentication().canCheckBiometrics;
if (!canContinue) {
if (!canCheckBio) {
showToast(
context,
"Sorry, biometric authentication is not supported on this device.",