fluffychat/lib/pangea/join_codes/too_many_requests_dialog.dart
2025-12-04 16:36:04 -05:00

48 lines
1.4 KiB
Dart

import 'package:flutter/material.dart';
import 'package:fluffychat/l10n/l10n.dart';
import 'package:fluffychat/pangea/bot/widgets/bot_face_svg.dart';
class TooManyRequestsDialog extends StatelessWidget {
const TooManyRequestsDialog({super.key});
@override
Widget build(BuildContext context) {
return Dialog(
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(12.0),
),
child: Padding(
padding: const EdgeInsets.all(16.0),
child: Column(
mainAxisSize: MainAxisSize.min,
children: [
const BotFace(
width: 100,
expression: BotExpression.idle,
),
const SizedBox(height: 16),
Text(
L10n.of(context).areYouLikeMe,
style: Theme.of(context).textTheme.titleLarge,
textAlign: TextAlign.center,
),
const SizedBox(height: 8),
Text(
L10n.of(context).tryAgainLater,
style: Theme.of(context).textTheme.bodyMedium,
textAlign: TextAlign.center,
),
const SizedBox(height: 16),
TextButton(
onPressed: () {
Navigator.of(context).pop();
},
child: Text(L10n.of(context).close),
),
],
),
),
);
}
}