mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2025-01-09 17:39:42 +00:00
26 lines
852 B
Dart
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(),
|
|
),
|
|
],
|
|
);
|
|
}
|