mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2024-11-14 12:43:16 +00:00
45 lines
1.5 KiB
Dart
45 lines
1.5 KiB
Dart
import 'package:easy_localization/easy_localization.dart';
|
|
import 'package:flutter/material.dart';
|
|
import 'package:selfprivacy/ui/components/brand_button/filled_button.dart';
|
|
import 'package:selfprivacy/ui/components/brand_hero_screen/brand_hero_screen.dart';
|
|
import 'package:selfprivacy/ui/components/info_box/info_box.dart';
|
|
|
|
class RecoveryKeyReceiving extends StatelessWidget {
|
|
const RecoveryKeyReceiving({required this.recoveryKey, final 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: true,
|
|
hasFlashButton: false,
|
|
children: [
|
|
const Divider(),
|
|
const SizedBox(height: 16),
|
|
Text(
|
|
recoveryKey,
|
|
style: Theme.of(context).textTheme.bodyLarge!.copyWith(
|
|
fontSize: 24,
|
|
fontFamily: 'RobotoMono',
|
|
),
|
|
textAlign: TextAlign.center,
|
|
),
|
|
const SizedBox(height: 16),
|
|
const Divider(),
|
|
const SizedBox(height: 16),
|
|
InfoBox(
|
|
text: 'recovery_key.key_receiving_info'.tr(),
|
|
),
|
|
const SizedBox(height: 16),
|
|
FilledButton(
|
|
title: 'recovery_key.key_receiving_done'.tr(),
|
|
onPressed: () {
|
|
Navigator.of(context).popUntil((final route) => route.isFirst);
|
|
},
|
|
),
|
|
],
|
|
);
|
|
}
|