Skip to content

Commit ce7b91a

Browse files
committed
[rfw] Remove the RFW WASM example
1 parent fe5b25e commit ce7b91a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+52
-3175
lines changed

customer_testing.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ pushd packages/rfw
2929

3030
# Update the subpackages so that the analysis doesn't get confused.
3131
pushd example/remote; flutter packages get; popd
32-
pushd example/wasm; flutter packages get; popd
3332
pushd test_coverage; dart pub get; popd
3433

3534
flutter analyze --no-fatal-infos

packages/rfw/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
## NEXT
22

33
* Updates minimum supported SDK version to Flutter 3.27/Dart 3.6.
4+
* Removes the wasm example.
45

56
## 1.0.31
67

packages/rfw/README.md

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -582,11 +582,9 @@ The last kind of argument that widgets can have is callbacks.
582582

583583
Since remote widget libraries are declarative and not code, they
584584
cannot represent executable closures. Instead, they are represented as
585-
events. For example, here is how the "7" button from the
586-
[calculator example](https://github.com/flutter/packages/blob/main/packages/rfw/example/wasm/logic/calculator.rfwtxt)
587-
is represented:
585+
events. For example:
588586

589-
<?code-excerpt "example/wasm/logic/calculator.rfwtxt (button7)"?>
587+
<?code-excerpt "test/readme_test.dart (button7)"?>
590588
```rfwtxt
591589
CalculatorButton(label: "7", onPressed: event "digit" { arguments: [7] }),
592590
```
@@ -600,7 +598,7 @@ In that example, `CalculatorButton` is itself a remote widget that is
600598
defined in terms of a `Button`, and the `onPressed` argument
601599
is passed to the `onPressed` of the `Button`, like this:
602600

603-
<?code-excerpt "example/wasm/logic/calculator.rfwtxt (CalculatorButton)"?>
601+
<?code-excerpt "test/readme_test.dart (CalculatorButton)"?>
604602
```rfwtxt
605603
widget CalculatorButton = Padding(
606604
padding: [8.0],
@@ -762,8 +760,8 @@ by calling
762760
[`encodeLibraryBlob`](https://pub.dev/documentation/rfw/latest/formats/encodeLibraryBlob.html)
763761
on the results of calling `parseLibraryFile`.
764762

765-
The example in `example/wasm` has some [elaborate remote
766-
widgets](https://github.com/flutter/packages/blob/main/packages/rfw/example/wasm/logic/calculator.rfwtxt),
763+
The example in `example/remote` has some [elaborate remote
764+
widgets](https://github.com/flutter/packages/blob/main/packages/rfw/example/remote/remote_widget_libraries/counter_app2.rfwtxt),
767765
including some that manipulate state (`Button`).
768766

769767
#### State
@@ -773,12 +771,12 @@ Buttons must react immediately (in milliseconds) and cannot wait for
773771
logic that's possibly running on a remote server (maybe many hundreds
774772
of milliseconds away).
775773

776-
The aforementioned `Button` widget in the `wasm` example tracks a
777-
local "down" state, manipulates it in reaction to
774+
The aforementioned `Button` widget in the `remote_widget_libraries` example
775+
tracks a local "down" state, manipulates it in reaction to
778776
`onTapDown`/`onTapUp` events, and changes the shadow and margins of
779777
the button based on its state:
780778

781-
<?code-excerpt "example/wasm/logic/calculator.rfwtxt (Button)"?>
779+
<?code-excerpt "example/remote/remote_widget_libraries/counter_app2.rfwtxt (Button)"?>
782780
```rfwtxt
783781
widget Button { down: false } = GestureDetector(
784782
onTap: args.onPressed,

packages/rfw/example/README.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,3 @@ There are several examples.
88

99
* `remote` is a proof-of-concept showing files being obtained from a
1010
remote server and rendered by the application at runtime.
11-
12-
* `wasm` shows how package:rfw can be combined with package:wasm to
13-
configure logic as well as the user interface at runtime.

packages/rfw/example/remote/remote_widget_libraries/counter_app2.rfwtxt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ widget Counter = Container(
1717
),
1818
);
1919

20+
// #docregion Button
2021
widget Button { down: false } = GestureDetector(
2122
onTap: args.onPressed,
2223
onTapDown: set state.down = true,
@@ -57,3 +58,4 @@ widget Button { down: false } = GestureDetector(
5758
),
5859
),
5960
);
61+
// #enddocregion Button

packages/rfw/example/wasm/.gitignore

Lines changed: 0 additions & 46 deletions
This file was deleted.

packages/rfw/example/wasm/.metadata

Lines changed: 0 additions & 10 deletions
This file was deleted.

packages/rfw/example/wasm/.pluginToolsConfig.yaml

Lines changed: 0 additions & 3 deletions
This file was deleted.

packages/rfw/example/wasm/README.md

Lines changed: 0 additions & 45 deletions
This file was deleted.

packages/rfw/example/wasm/lib/main.dart

Lines changed: 0 additions & 96 deletions
This file was deleted.

0 commit comments

Comments
 (0)