fluffychat/lib/pangea/instructions/reset_instructions_list_tile.dart
ggurdin 592aa43089
2202 positioning to dos in reading assistance (#2214)
* chore: move toolbar buttons above reading assistance input bar

* chore: positioning on message relative to header and footer / positioning of tooltip between message and header

* chore: update inline tooltip color

* chore: animate reading assistance input bar height
2025-03-25 14:40:18 -04:00

38 lines
1 KiB
Dart

import 'package:flutter/material.dart';
import 'package:flutter_gen/gen_l10n/l10n.dart';
import 'package:fluffychat/pangea/learning_settings/pages/settings_learning.dart';
import 'package:fluffychat/widgets/adaptive_dialogs/show_ok_cancel_alert_dialog.dart';
class ResetInstructionsListTile extends StatelessWidget {
const ResetInstructionsListTile({
super.key,
required this.controller,
});
final SettingsLearningController controller;
@override
Widget build(BuildContext context) {
//TODO: add to L10n
return ListTile(
leading: const Icon(Icons.lightbulb),
title: Text(
L10n.of(context).resetInstructionTooltipsTitle,
),
subtitle: Text(
L10n.of(context).resetInstructionTooltipsDesc,
),
onTap: () async {
final resp = await showOkCancelAlertDialog(
context: context,
title: L10n.of(context).areYouSure,
);
if (resp == OkCancelResult.ok) {
controller.resetInstructionTooltips();
}
},
);
}
}