From 5d866eb6ec4de7f87def7345075eb7728b61d7e8 Mon Sep 17 00:00:00 2001 From: larpoux Date: Wed, 19 Feb 2025 16:09:49 +0100 Subject: [PATCH] Tauweb : Version 0.17.8 --- CHANGELOG.md | 2 +- README.md | 87 ++++++++++++++++++++++++++++++-------------- example/pubspec.lock | 4 +- example/pubspec.yaml | 4 +- pubspec.yaml | 4 +- 5 files changed, 66 insertions(+), 35 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c13934f..d4efb7d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,4 @@ -## 0.17.7 +## 0.17.8 - ## The [CHANGELOG file is here](https://tau.canardoux.xyz/etau_CHANGELOG.html) diff --git a/README.md b/README.md index 3c56ca3..52c5d2c 100644 --- a/README.md +++ b/README.md @@ -1,29 +1,60 @@ -If [Jekyll] is installed on your computer, you can also build and preview the created site *locally*. This lets you test changes before committing them, and avoids waiting for GitHub Pages.[^1] And you will be able to deploy your local build to a different platform than GitHub Pages. - -More specifically, the created site: - -- uses a gem-based approach, i.e. uses a `Gemfile` and loads the `just-the-docs` gem -- uses the [GitHub Pages / Actions workflow] to build and publish the site on GitHub Pages - -Other than that, you're free to customize sites that you create with this template, however you like. You can easily change the versions of `just-the-docs` and Jekyll it uses, as well as adding further plugins. - -[Browse our documentation][Just the Docs] to learn more about how to use this theme. - -To get started with creating a site, simply: - -1. click "[use this template]" to create a GitHub repository -2. go to Settings > Pages > Build and deployment > Source, and select GitHub Actions - -If you want to maintain your docs in the `docs` directory of an existing project repo, see [Hosting your docs from an existing project repo](https://github.com/just-the-docs/just-the-docs-template/blob/main/README.md#hosting-your-docs-from-an-existing-project-repo) in the template README. - ----- - -[^1]: [It can take up to 10 minutes for changes to your site to publish after you push the changes to GitHub](https://docs.github.com/en/pages/setting-up-a-github-pages-site-with-jekyll/creating-a-github-pages-site-with-jekyll#creating-your-site). - -[Just the Docs]: https://just-the-docs.github.io/just-the-docs/ -[GitHub Pages]: https://docs.github.com/en/pages -[README]: https://github.com/just-the-docs/just-the-docs-template/blob/main/README.md -[Jekyll]: https://jekyllrb.com -[GitHub Pages / Actions workflow]: https://github.blog/changelog/2022-07-27-github-pages-custom-github-actions-workflows-beta/ -[use this template]: https://github.com/just-the-docs/just-the-docs-template/generate +For general information about developing packages, see the Dart guide for +[creating packages](https://dart.dev/guides/libraries/create-packages) +and the Flutter guide for +[developing packages and plugins](https://flutter.dev/to/develop-packages). +--> + +# Tauweb + +`Tauweb` is an [Etau](https://pub.dev/packages/etau) implementation for Flutter Web. + +[Etau](https://pub.dev/packages/etau) is the interface and this is what see the App. +So, there are not many things to say about `Tauweb` because this is just an implementation. +The only verb used by the App is `tau()`, which gives the implementation. + +You can see all the [Etau project documentation](https://tau.canardoux.xyz/etau-README.html) here. + +Example +```dart +import 'package:etau/etau.dart'; +import 'package:tau_web/tau_web.dart'; + + @override + void initState() + { + super.initState(); + tau().init().then + ((e){ + audioCtx = tau().newAudioContext(); + }); + } + + ... + // Then all the code depends only on the interface (`etau`) + dest = audioCtx.destination; + source = audioCtx.createBufferSource(); + source!.buffer = audioBuffer; + pannerNode = audioCtx.createStereoPanner(); + pannerNode!.pan.value = pannerValue; + source!.connect(pannerNode!).connect(dest!); + +``` + +if your App needs to support at the same time Fliutter Web And Flutter on mobiles: +```dart +import 'package:etau/etau.dart'; +import 'package:etau/dummy.dart' + if (dart.library.js_interop) 'package:tau_web/tau_web.dart' + if (dart.library.io) 'package:tau_war/tau_war.dart'; + + @override + void initState() + { + super.initState(); + tau().init().then + ((e){ + audioCtx = tau().newAudioContext(); + }); + } +``` diff --git a/example/pubspec.lock b/example/pubspec.lock index 4550dd9..acd4482 100644 --- a/example/pubspec.lock +++ b/example/pubspec.lock @@ -53,10 +53,10 @@ packages: dependency: "direct main" description: name: etau - sha256: "7ac988ae528b7f3014c54841c97f90153ec28a73b445c54d988eeacc06998466" + sha256: "6faf2945ce28a080d3f2d8f557ee0b9d12c9956963aafb7fabaecbe32196e11b" url: "https://pub.dev" source: hosted - version: "0.17.7" + version: "0.17.8" fake_async: dependency: transitive description: diff --git a/example/pubspec.yaml b/example/pubspec.yaml index e6bc8ae..5e0ac5c 100644 --- a/example/pubspec.yaml +++ b/example/pubspec.yaml @@ -15,7 +15,7 @@ description: "An example showing how to use the etau implementation for the Web. # This version is used _only_ for the Runner app, which is used if you just do # a `flutter run` or a `flutter make-host-app-editable`. It has no impact # on any other native host app that you embed your Flutter project into. -version: 0.17.7 +version: 0.17.8 environment: sdk: ^3.5.3 @@ -27,7 +27,7 @@ dependencies: ## tau_wars: ^0.0.14-alpha.4 ## path: ../ # tau_wars Dir - etau: ^0.17.7 + etau: ^0.17.8 # path: ../../etau # etau Dir # The following adds the Cupertino Icons font to your application. diff --git a/pubspec.yaml b/pubspec.yaml index 17a4bdb..165a6e7 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: tau_web description: "A Etau implementation for the Web. This is just an implementation. All the API is in the `Etau` plugin. Member of the `Tau` family. Europe Stands With Ukraine. Pray for Ukraine." -version: 0.17.7 +version: 0.17.8 homepage: https://tau-ver.canardoux.xyz/etau-README.html repository: https://github.com/canardoux/tau_web @@ -12,7 +12,7 @@ dependencies: flutter: sdk: flutter - etau: ^0.17.7 + etau: ^0.17.8 # path: ../etau # etau Dir web: ^1.0.0