selfprivacy.org.app/lib/ui/pages/recovery_key/recovery_key_receiving.dart
2024-12-06 18:59:10 +03:00

26 lines
852 B
Dart

import 'package:easy_localization/easy_localization.dart';
import 'package:flutter/material.dart';
import 'package:selfprivacy/ui/layouts/brand_hero_screen.dart';
import 'package:selfprivacy/ui/organisms/displays/key_display.dart';
class NewRecoveryKeyPage extends StatelessWidget {
const NewRecoveryKeyPage({required this.recoveryKey, super.key});
final String recoveryKey;
@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: [
KeyDisplay(
keyToDisplay: recoveryKey,
canCopy: false,
infoboxText: 'recovery_key.key_receiving_info'.tr(),
),
],
);
}