fluffychat/lib/pangea/instructions/reset_instructions_list_tile.dart
wcjord 379e4a8db9
Reading assistance (#2175)
* still in draft

* feat(reading_assistance): whole message activity oriented

* chore: fix .env file path

* feat: animate selected toolbar into middle of screen

* chore: initial work for message bubble size animation

* refactor(reading_assistance): hooking up the choice interactions and polishing UI

* chore: animate in content and buttons

* formatting

* position reading content relative to selected token

* working on limiting choices

* chore: fix positioning of toolbar animation

* chore: simplify positioning logic

* chore: animate in button height

* getting there

* rough draft with restricted activity number is complete

---------

Co-authored-by: ggurdin <ggurdin@gmail.com>
2025-03-24 15:20:07 -04:00

51 lines
1.3 KiB
Dart

import 'package:flutter/material.dart';
import 'package:fluffychat/pangea/learning_settings/pages/settings_learning.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: const Text(
"Reset instruction tooltips",
),
subtitle: const Text(
"Click to show instruction tooltips like for a brand new user.",
),
onTap: () => showAdaptiveDialog(
context: context,
builder: (context) {
return AlertDialog(
title: const Text(
"Reset instruction tooltips?",
),
actions: [
TextButton(
onPressed: () {
controller.resetInstructionTooltips();
Navigator.of(context).pop();
},
child: const Text("Reset"),
),
TextButton(
onPressed: () {
Navigator.of(context).pop();
},
child: const Text("Cancel"),
),
],
);
},
),
);
}
}