Documentation
¶
Overview ¶
Command animations shows four animations in four labelled tiles: an AnimatedContainer that changes size, color and corner radius when tapped, a Pulse (a ScaleTransition driven by a repeating controller), an AnimatedSwitcher that cycles a counter, and a TweenAnimationBuilder that turns a plus sign. The app also starts the tapped animations by itself, every two seconds. It uses only the public packages.
Run it with: go run ./examples/animations
On Windows: go run ./cmd/glutter-windows run ./examples/animations (under Wine on Linux, headless with -headless; GLUTTER_BACKEND is win32 there). Nothing of this example is missing on Windows.
Environment: GLUTTER_BACKEND=x11|wayland (Linux) or win32 (Windows), GLUTTER_SCREENSHOT=<file.png>, GLUTTER_SCREENSHOT_AFTER=<duration>.