2022-05-26 04:02:06 +03:00
|
|
|
import 'package:easy_localization/easy_localization.dart';
|
|
|
|
import 'package:flutter/material.dart';
|
2024-01-31 09:14:23 +04:00
|
|
|
import 'package:selfprivacy/ui/layouts/brand_hero_screen.dart';
|
2024-12-06 18:59:10 +03:00
|
|
|
import 'package:selfprivacy/ui/organisms/displays/key_display.dart';
|
2022-05-24 20:45:13 +03:00
|
|
|
|
2024-12-06 18:59:10 +03:00
|
|
|
class NewRecoveryKeyPage extends StatelessWidget {
|
|
|
|
const NewRecoveryKeyPage({required this.recoveryKey, super.key});
|
2022-05-26 04:02:06 +03:00
|
|
|
|
2024-02-09 14:07:03 +03:00
|
|
|
final String recoveryKey;
|
2024-02-08 18:08:29 +03:00
|
|
|
|
2024-02-09 14:07:03 +03:00
|
|
|
@override
|
|
|
|
Widget build(final BuildContext context) => BrandHeroScreen(
|
|
|
|
heroTitle: 'recovery_key.key_main_header'.tr(),
|
|
|
|
heroSubtitle: 'recovery_key.key_receiving_description'.tr(),
|
|
|
|
hasBackButton: false,
|
|
|
|
hasFlashButton: false,
|
|
|
|
children: [
|
2024-12-06 18:59:10 +03:00
|
|
|
KeyDisplay(
|
|
|
|
keyToDisplay: recoveryKey,
|
|
|
|
canCopy: false,
|
|
|
|
infoboxText: 'recovery_key.key_receiving_info'.tr(),
|
2022-06-06 01:40:34 +03:00
|
|
|
),
|
2024-02-09 14:07:03 +03:00
|
|
|
],
|
|
|
|
);
|
2022-05-26 04:02:06 +03:00
|
|
|
}
|