Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: flutter-v0.2.1 #2

Merged
merged 3 commits into from
Aug 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ updates:
patterns:
- "*"
- package-ecosystem: pub
directory: /packages/mesh/example
directory: /flutter/mesh/example
schedule:
interval: monthly
groups:
packages-mesh-example-pub:
patterns:
- "*"
- package-ecosystem: pub
directory: /packages/mesh
directory: /flutter/mesh
schedule:
interval: monthly
groups:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/omesh_flutter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
semantic_pull_request:
defaults:
run:
working-directory: "packages/mesh"
working-directory: "flutter/mesh"
runs-on: ubuntu-latest
steps:
- name: Semantic pull request
Expand All @@ -35,7 +35,7 @@ jobs:
build:
defaults:
run:
working-directory: "packages/mesh"
working-directory: "flutter/mesh"
runs-on: ubuntu-latest
steps:
- name: checkout
Expand Down
18 changes: 9 additions & 9 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,65 +6,65 @@
"configurations": [
{
"name": "example",
"cwd": "packages/mesh/example",
"cwd": "flutter/mesh/example",
"request": "launch",
"type": "dart"
},
{
"name": "example (profile mode)",
"cwd": "packages/mesh/example",
"cwd": "flutter/mesh/example",
"request": "launch",
"type": "dart",
"flutterMode": "profile"
},
{
"name": "example (release mode)",
"cwd": "packages/mesh/example",
"cwd": "flutter/mesh/example",
"request": "launch",
"type": "dart",
"flutterMode": "release"
},
{
"name": "example (no impeller)",
"cwd": "packages/mesh/example",
"cwd": "flutter/mesh/example",
"request": "launch",
"type": "dart",
"args": ["--no-enable-impeller"]
},
{
"name": "example (no impeller, profile mode)",
"cwd": "packages/mesh/example",
"cwd": "flutter/mesh/example",
"request": "launch",
"type": "dart",
"args": ["--no-enable-impeller"],
"flutterMode": "profile"
},
{
"name": "example (no impeller, release mode)",
"cwd": "packages/mesh/example",
"cwd": "flutter/mesh/example",
"request": "launch",
"type": "dart",
"args": ["--no-enable-impeller"],
"flutterMode": "release"
},
{
"name": "example (enable impeller)",
"cwd": "packages/mesh/example",
"cwd": "flutter/mesh/example",
"request": "launch",
"type": "dart",
"args": ["--enable-impeller"]
},
{
"name": "example (enable impeller, profile mode)",
"cwd": "packages/mesh/example",
"cwd": "flutter/mesh/example",
"request": "launch",
"type": "dart",
"args": ["--enable-impeller"],
"flutterMode": "profile"
},
{
"name": "example (enable impeller, release mode)",
"cwd": "packages/mesh/example",
"cwd": "flutter/mesh/example",
"request": "launch",
"type": "dart",
"args": ["--enable-impeller"],
Expand Down
4 changes: 4 additions & 0 deletions flutter/mesh/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# v0.2.1

- Fix readme images on pub.dev

# v0.2.0

- First release 🐣
30 changes: 15 additions & 15 deletions flutter/mesh/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

⚡ Fast and highly customizable vector animated Mesh Gradients for Flutter applications.

<img src="doc/assets/preview.png" width="500">
<img src="https://raw.githubusercontent.com/renancaraujo/omesh/main/flutter/mesh/doc/assets/preview.png" width="500">

---

Expand Down Expand Up @@ -53,7 +53,7 @@ A simple usage of a 3x3 mesh with colors in each vertex

Result:

<img src="doc/assets/basic_example.png" width="500">
<img src="https://raw.githubusercontent.com/renancaraujo/omesh/main/flutter/mesh/doc/assets/basic_example.png" width="500">

Code:

Expand Down Expand Up @@ -94,7 +94,7 @@ More advanced example with different colors in each vertex, bezier vertices and

Result:

<img src="doc/assets/advanced_example.png" width="500">
<img src="https://raw.githubusercontent.com/renancaraujo/omesh/main/flutter/mesh/doc/assets/advanced_example.png" width="500">

Code:

Expand Down Expand Up @@ -187,8 +187,8 @@ In this example the mesh will distort after a button click.
Result:

<p float="left">
<img src="doc/assets/intrinsic_example_1.png" width="300">
<img src="doc/assets/intrinsic_example_2.png" width="300">
<img src="https://raw.githubusercontent.com/renancaraujo/omesh/main/flutter/mesh/doc/assets/intrinsic_example_1.png" width="300">
<img src="https://raw.githubusercontent.com/renancaraujo/omesh/main/flutter/mesh/doc/assets/intrinsic_example_2.png" width="300">
</p>

Code:
Expand Down Expand Up @@ -265,10 +265,10 @@ An example to illustrate animation from an animation controller.
Result (animation frames):

<p float="left">
<img src="doc/assets/animation_example_1.png" width="150">
<img src="doc/assets/animation_example_2.png" width="150">
<img src="doc/assets/animation_example_3.png" width="150">
<img src="doc/assets/animation_example_4.png" width="150">
<img src="https://raw.githubusercontent.com/renancaraujo/omesh/main/flutter/mesh/doc/assets/animation_example_1.png" width="150">
<img src="https://raw.githubusercontent.com/renancaraujo/omesh/main/flutter/mesh/doc/assets/animation_example_2.png" width="150">
<img src="https://raw.githubusercontent.com/renancaraujo/omesh/main/flutter/mesh/doc/assets/animation_example_3.png" width="150">
<img src="https://raw.githubusercontent.com/renancaraujo/omesh/main/flutter/mesh/doc/assets/animation_example_4.png" width="150">
</p>

Code:
Expand Down Expand Up @@ -377,7 +377,7 @@ class _MyWidgetState extends State<MyWidget> with SingleTickerProviderStateMixin
When running on the [Impeller Rendering Engine](https://docs.flutter.dev/perf/impeller) (which is default for Flutter on iOS),
one might see some line-ish artifacts:

<img src="doc/assets/impeller.png" width="250">
<img src="https://raw.githubusercontent.com/renancaraujo/omesh/main/flutter/mesh/doc/assets/impeller.png" width="250">

This is caused by a [very specific issue](https://github.com/flutter/flutter/issues/151355) that has been already fixed in the flutter `main` channel but can still be observed on
Flutter stable version 3.22.
Expand All @@ -401,7 +401,7 @@ Known situations where O'Mesh doesn't seem to behave the way it is supposed to.

If you see lines like this:

<img src="doc/assets/impeller.png" width="200">
<img src="https://raw.githubusercontent.com/renancaraujo/omesh/main/flutter/mesh/doc/assets/impeller.png" width="200">

It may be caused by an issue with the Impeller rendering engine. Learn the possible workarounds [here](#about-impeller).

Expand All @@ -426,8 +426,8 @@ animation.
See below the differences between different tessellation factors (3 and 30):

<p float="left">
<img src="doc/assets/tess_1.png" width="200">
<img src="doc/assets/tess_2.png" width="200">
<img src="https://raw.githubusercontent.com/renancaraujo/omesh/main/flutter/mesh/doc/assets/tess_1.png" width="200">
<img src="https://raw.githubusercontent.com/renancaraujo/omesh/main/flutter/mesh/doc/assets/tess_2.png" width="200">
</p>

### Issues with color space xyY
Expand All @@ -436,8 +436,8 @@ When using the xyY colorspace you may face issues when setting at least one of t
to complete black. Like on the second image below:

<p float="left">
<img src="doc/assets/xyy_issue1.png" width="200">
<img src="doc/assets/xyy_issue2.png" width="200">
<img src="https://raw.githubusercontent.com/renancaraujo/omesh/main/flutter/mesh/doc/assets/xyy_issue1.png" width="200">
<img src="https://raw.githubusercontent.com/renancaraujo/omesh/main/flutter/mesh/doc/assets/xyy_issue2.png" width="200">
</p>

This is expected behavior, as the xyY color space relies on illumination to interpolate colors, black cannot be interpolated.
Expand Down
2 changes: 1 addition & 1 deletion flutter/mesh/example/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# O'Mesh Flutter Example App

<img src="doc/assets/preview.png" width="500">
<img src="https://raw.githubusercontent.com/renancaraujo/omesh/main/flutter/mesh/doc/assets/preview.png" width="500">

⚡ Fast and highly customizable vector animated Mesh Gradients for Flutter applications.

Expand Down
2 changes: 1 addition & 1 deletion flutter/mesh/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ documentation: https://github.com/renancaraujo/omesh/tree/main/flutter/mesh
topics: [mesh-gradients, flutter, shaders, ui, gradient]
screenshots:
- description: 'This screenshot shows a usage example of the dependabot_gen CLI tool.'
path: doc/assets/preview.png
path: https://raw.githubusercontent.com/renancaraujo/omesh/main/flutter/mesh/doc/assets/preview.png

environment:
sdk: ">=3.4.0 <4.0.0"
Expand Down
Loading