22 lines
571 B
Dart
22 lines
571 B
Dart
import 'package:flutter/material.dart';
|
|
|
|
import 'package:provider/provider.dart';
|
|
|
|
import 'package:pweb/providers/two_factor.dart';
|
|
|
|
import 'package:pweb/generated/i18n/app_localizations.dart';
|
|
|
|
|
|
class TwoFactorPromptText extends StatelessWidget {
|
|
const TwoFactorPromptText({super.key});
|
|
|
|
@override
|
|
Widget build(BuildContext context) => Text(
|
|
AppLocalizations.of(context)!.twoFactorPrompt(
|
|
context.watch<TwoFactorProvider>().pendingLogin?.destination ?? '',
|
|
),
|
|
style: Theme.of(context).textTheme.bodyLarge,
|
|
textAlign: TextAlign.center,
|
|
);
|
|
}
|