fixed hero tag issue
This commit is contained in:
@@ -9,12 +9,15 @@ class CookingDurationButton extends StatelessWidget {
|
||||
required this.selectedDuration,
|
||||
required this.onDurationChanged,
|
||||
this.label = '',
|
||||
required this.heroTag,
|
||||
});
|
||||
|
||||
final String label;
|
||||
final void Function(Duration duration) onDurationChanged;
|
||||
final Duration selectedDuration;
|
||||
|
||||
final Object heroTag;
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
String text = label;
|
||||
@@ -22,6 +25,7 @@ class CookingDurationButton extends StatelessWidget {
|
||||
text = durationToFormattedString(selectedDuration);
|
||||
}
|
||||
return FloatingActionButton.extended(
|
||||
heroTag: heroTag,
|
||||
onPressed: () => showDialog(
|
||||
context: context,
|
||||
builder: (context) => _getDurationDialog(
|
||||
|
||||
Reference in New Issue
Block a user