2022-05-26 01:02:06 +00:00
|
|
|
import 'package:easy_localization/easy_localization.dart';
|
|
|
|
import 'package:flutter/material.dart';
|
2024-01-31 05:14:23 +00:00
|
|
|
import 'package:selfprivacy/ui/layouts/brand_hero_screen.dart';
|
2024-12-06 15:59:10 +00:00
|
|
|
import 'package:selfprivacy/ui/organisms/displays/key_display.dart';
|
2022-05-24 17:45:13 +00:00
|
|
|
|
2024-12-06 15:59:10 +00:00
|
|
|
class NewRecoveryKeyPage extends StatelessWidget {
|
|
|
|
const NewRecoveryKeyPage({required this.recoveryKey, super.key});
|
2022-05-26 01:02:06 +00:00
|
|
|
|
2024-02-09 11:07:03 +00:00
|
|
|
final String recoveryKey;
|
2024-02-08 15:08:29 +00:00
|
|
|
|
2024-02-09 11:07:03 +00: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 15:59:10 +00:00
|
|
|
KeyDisplay(
|
|
|
|
keyToDisplay: recoveryKey,
|
|
|
|
canCopy: false,
|
|
|
|
infoboxText: 'recovery_key.key_receiving_info'.tr(),
|
2022-06-05 22:40:34 +00:00
|
|
|
),
|
2024-02-09 11:07:03 +00:00
|
|
|
],
|
|
|
|
);
|
2022-05-26 01:02:06 +00:00
|
|
|
}
|