Issue is present in repo demo but not in live demo (https://flow.demo.vyuh.tech/).
What I've tried:
Repo demo does not run had to:
-
Updated font_awesome_flutter dependency: Added a dependency override in pubspec.yaml to use version 11.0.0 instead of 10.12.0. The older version was incompatible with newer Flutter versions where IconData is a final class.
-
Fixed type compatibility: Changed the icon parameter type in _buildIconButton from IconData to FaIconData to match the FontAwesome icons being passed (FontAwesomeIcons.github and FontAwesomeIcons.dartLang).
Tested on
setup 1:
- Flutter: 3.44.0
- Dart: 3.12.0
- vyuh_node_flow: ^0.27.3
- Platform: macOS Chrome
setup 2:
- Flutter: 3.35.0
- Dart: 3.9.0
- vyuh_node_flow: ^0.27.3
- Platform: macOS Chrome
SOLUTION: Zoom Disable Workaround
config: NodeFlowConfig(
showAttribution: false,
scrollToZoom: false,
minZoom: 1.0, // ← KEY FIX
maxZoom: 1.0, // ← KEY FIX
)
Questions:
- If the live demo is using same pubspec.yaml why does the issue not trigger?
- What exact versions of dependencies are used so i can replicate live demo env?
- I have tried many approaches on own project to fix issue can you suggest where i should I focus to debug the issue?
Issue is present in repo demo but not in live demo (https://flow.demo.vyuh.tech/).
What I've tried:
Repo demo does not run had to:
Updated font_awesome_flutter dependency: Added a dependency override in pubspec.yaml to use version 11.0.0 instead of 10.12.0. The older version was incompatible with newer Flutter versions where IconData is a final class.
Fixed type compatibility: Changed the icon parameter type in _buildIconButton from IconData to FaIconData to match the FontAwesome icons being passed (FontAwesomeIcons.github and FontAwesomeIcons.dartLang).
Tested on
setup 1:
setup 2:
SOLUTION: Zoom Disable Workaround
config: NodeFlowConfig(
showAttribution: false,
scrollToZoom: false,
minZoom: 1.0, // ← KEY FIX
maxZoom: 1.0, // ← KEY FIX
)
Questions: