Skip to content

Commit ca0fda5

Browse files
committed
Fixed conflict between the BloatingActionButtons by defining unique heroTags
1 parent e6de1f4 commit ca0fda5

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

lib/pages/trainings_mode.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ class _TrainingsModeState extends State<TrainingsMode> {
6868
const SizedBox(width: 16),
6969
FloatingActionButton.small(
7070
child: Icon(Icons.lightbulb_outline),
71+
heroTag: "hint",
7172
onPressed: (){
7273
MyAlertDialog().showHintDialog(
7374
context,
@@ -131,6 +132,7 @@ class _TrainingsModeState extends State<TrainingsMode> {
131132
FloatingActionButton.extended(
132133
label: Text(appLocalizations.done), // Done
133134
icon: Icon(Icons.done_all),
135+
heroTag: "done",
134136
onPressed: () {
135137
String userCode = enterCodeController.text;
136138
// Call library and check it's result

0 commit comments

Comments
 (0)