11 Commits

Author SHA1 Message Date
4293343a2e docs: Fixed linked joints examples (#2400)
Embedded flutter-app joints examples didn't work, because flutter-app script expects the example page to be located in the lib folder of a module. Introduced a new subfolder param, to specify where to find the example page.

Verified joints examples apps and code button on the doc page work; Also verified the same for the effects page.
2023-03-13 11:25:49 +00:00
2ed1403560 fix: Use flutter.bat on Windows (#1979)
Co-authored-by: Lukas Klingsbo <me@lukas.fyi>
2022-10-01 13:48:26 +00:00
68ef250a9f docs: Allow multiple infoboxes on a page to have code (#1814) 2022-07-24 01:17:51 +00:00
8d00847cfc feat: Added Decorator class and HasDecorator mixin (#1781)
The new class allows applying visual filters to canvas drawing operations. It is conceptually similar to the LayerProcessor class, except that it applies directly to a canvas instead of a Picture.

This functionality was extracted from PR #1755.

NB: the guitar image was taken from here, which is a public domain image, i.e. licensed under CC0 1.0.
2022-07-18 19:44:17 +00:00
58571141bc docs: Added ability to create infobox-style widgets in the documentation (#1771)
Additional mode "infobox" allows Flutter widgets to be inserted into the generated documentation site as wikipedia-style infoboxes floating on the right. This is useful for presenting content to the user up-front without sacrificing the flow of the exposition. For example, currently the Tap Events demo is "hidden" in the middle of a long page.

We believe that presenting the content in this way would make the user more excited to read about it.
2022-07-02 01:02:19 +02:00
2711ba60c2 feat: Implement tap events based on componentsAtPoint (#1661)
This PR adds a new event system based on the componentsAtPoint delivery mechanism. These events allow for a proper support of components that implement renderTree() method. The CameraComponent is one such component, with more planned in the future.

Additionally, the following improvements compared to the current tap events added:

    - the same component can be tapped with multiple fingers simultaneously;
    - a component that received onTapDown is guaranteed to receive onTapUp or onTapCancel later;
    - a component that moves away from the point of touch will receive onTapCancel instead of onTapUp (even though the game widget receives onTapUp from Flutter).

Due to the fact that the switch from the current event system to the new event system is potentially a significant breaking change, the new event system is introduced as parallel to the existing one. This way we have more time to test the new system before recommending the switch and deprecating the old one; and the switch itself should feel more gradual.
2022-06-06 15:37:01 +00:00
cf393761a1 docs: Chapter 3 of the Klondike game tutorial (#1515) 2022-04-11 21:27:54 +00:00
0e91f5ca4d docs: Flutter-app directive can now also show the listings of code (#1500) 2022-03-29 21:43:06 +02:00
167396142e docs: Take PUBLISH_PATH into account when building docs (#1499) 2022-03-28 11:23:03 +02:00
87031b3e5f docs: Tutorial for making a Klondike card game, steps 1 & 2 (#1477) 2022-03-27 20:53:42 +00:00
2935a6a55d feat: Create sphinx extension for integrating Flutter apps into the documentation site (#1393) 2022-02-27 21:25:33 +00:00