remove FAB hero

Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
dom
2026-07-03 18:40:48 +08:00
parent f73fb0904a
commit 204715266f
2 changed files with 20 additions and 1 deletions

17
lib/scripts/fab.patch Normal file
View File

@@ -0,0 +1,17 @@
diff --git a/packages/flutter/lib/src/material/floating_action_button.dart b/packages/flutter/lib/src/material/floating_action_button.dart
index 4b78e44dab9..80ca9c9bfc2 100644
--- a/packages/flutter/lib/src/material/floating_action_button.dart
+++ b/packages/flutter/lib/src/material/floating_action_button.dart
@@ -603,9 +603,9 @@ class FloatingActionButton extends StatelessWidget {
result = Tooltip(message: tooltip, child: result);
}
- if (heroTag != null) {
- result = Hero(tag: heroTag!, child: result);
- }
+ // if (heroTag != null) {
+ // result = Hero(tag: heroTag!, child: result);
+ // }
return MergeSemantics(child: result);
}