36 lines
1.1 KiB
Dart
36 lines
1.1 KiB
Dart
import 'package:easy_localization/easy_localization.dart';
|
|
import 'package:flutter/material.dart';
|
|
import 'package:hooks_riverpod/hooks_riverpod.dart';
|
|
import 'package:island/widgets/app_scaffold.dart';
|
|
import 'package:material_symbols_icons/symbols.dart';
|
|
|
|
import 'login_content.dart';
|
|
|
|
final Map<int, (String, String, IconData)> kFactorTypes = {
|
|
0: ('authFactorPassword', 'authFactorPasswordDescription', Symbols.password),
|
|
1: ('authFactorEmail', 'authFactorEmailDescription', Symbols.email),
|
|
2: (
|
|
'authFactorInAppNotify',
|
|
'authFactorInAppNotifyDescription',
|
|
Symbols.notifications_active,
|
|
),
|
|
3: ('authFactorTOTP', 'authFactorTOTPDescription', Symbols.timer),
|
|
4: ('authFactorPin', 'authFactorPinDescription', Symbols.nest_secure_alarm),
|
|
};
|
|
|
|
class LoginScreen extends HookConsumerWidget {
|
|
const LoginScreen({super.key});
|
|
|
|
@override
|
|
Widget build(BuildContext context, WidgetRef ref) {
|
|
return AppScaffold(
|
|
isNoBackground: false,
|
|
appBar: AppBar(
|
|
leading: const PageBackButton(),
|
|
title: Text('login').tr(),
|
|
),
|
|
body: LoginContent(),
|
|
);
|
|
}
|
|
}
|