Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
22b5d41
added images and material 3 page
esouthren Apr 11, 2023
54b65f6
Add card and buttons widgets
esouthren Apr 11, 2023
f3e1d6f
add containement widgets
esouthren Apr 11, 2023
5631433
sort file
esouthren Apr 11, 2023
6a8fc19
add navigation widgets
esouthren Apr 11, 2023
acc6d9b
add selection widgets
esouthren Apr 11, 2023
3928ed5
add remaining widgets
esouthren Apr 11, 2023
8f35d3e
update snackbar image
esouthren Apr 11, 2023
a90a624
added material 3 image container
esouthren Apr 12, 2023
6c41f90
added toggle switch
esouthren Apr 13, 2023
f4d4d25
added icon toggle
esouthren Apr 14, 2023
ec5a499
sassy clean
esouthren Apr 14, 2023
69ffd84
added card colors in json
esouthren Apr 14, 2023
a98ec66
update toggle position
esouthren Apr 14, 2023
160533f
update css
esouthren Apr 14, 2023
f21305c
update hover duration and toggle icon boundary
esouthren Apr 14, 2023
e8d001b
update image transparencies
esouthren Apr 18, 2023
3b1ed1d
remove light/dark toggle
esouthren Apr 18, 2023
0deaea6
add other hover images
esouthren Apr 18, 2023
d4b98a8
update formatting
esouthren Apr 18, 2023
13e0075
update copy
esouthren Apr 18, 2023
e2acb2d
code tidy
esouthren Apr 18, 2023
a3fcb39
update listTile link
esouthren Apr 18, 2023
e762d7c
sort json order and whitespace
esouthren Apr 18, 2023
eac578f
comment responses
esouthren Apr 18, 2023
e19107e
Added M2 page notice
esouthren Apr 18, 2023
76eb19f
copy updates
esouthren Apr 19, 2023
897e064
remove m2 card from widgets page
esouthren Apr 19, 2023
66e1757
comment responses
esouthren Apr 20, 2023
644d151
fix other catalog path URLs
esouthren Apr 20, 2023
49f85e6
comment updates
esouthren Apr 20, 2023
2e9d8d9
update buttons Url
esouthren Apr 24, 2023
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
Prev Previous commit
Next Next commit
fix other catalog path URLs
  • Loading branch information
esouthren committed Apr 20, 2023
commit 644d1515eb0af40b485a640255acfc83870dafbd
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<!-- Material 3 Catalog Page -->
{% for section in site.data.catalog.index %}
{% if section.name == include.category %}
{% assign category = section %}
Expand All @@ -17,30 +18,10 @@
</ul>
{% endif -%}

<p>{{ category.pagecontent }}</p>

<p>See more widgets in the <a href="{{site.url}}/development/ui/widgets">widget catalog</a>.</p>
<p> {{ category.pagecontent }}</p>

{% assign components = site.data.catalog.widgets | where_exp:"comp","comp.categories contains include.category" -%}

{% if components.size != 0 -%}
<div class="card-deck card-deck--responsive">
{% for comp in components -%}
<div class="card">
<a href="{{comp.link}}">
<div class="card-image-holder">
{{comp.image}}
</div>
</a>
<div class="card-body">
<a href="{{comp.link}}"><header class="card-title">{{comp.name}}</header></a>
<p class="card-text">{{ comp.description | truncatewords: 25 }}</p>
</div>
</div>
{% endfor -%}
</div>
{% endif -%}

{% if category.subcategories and category.subcategories.size != 0 -%}
{% for sub in category.subcategories -%}
{% assign components = site.data.catalog.widgets | where_exp:"comp","comp.subcategories contains sub.name" -%}
Expand All @@ -50,12 +31,15 @@ <h2 id="{{sub.name}}">{{sub.name}}</h2>
{% for comp in components -%}
<div class="card">
<a href="{{comp.link}}">
<div class="card-image-holder">
{{comp.image}}
<div class="card-image-holder-material-3" style="--bg-color: {{sub.color}}">
{{ comp.image }}
<div class="card-image-material-3-hover">
{{ comp.hoverimage }}
</div>
</div>
</a>
<div class="card-body">
<a href="{{comp.link}}"><header class="card-title">{{comp.name}}</header></a>
<a href="{{comp.link}}"><header class="card-title card-title-material-3">{{comp.name}}</header></a>
<p class="card-text">{{ comp.description | truncatewords: 25 }}</p>
</div>
</div>
Expand All @@ -65,5 +49,5 @@ <h2 id="{{sub.name}}">{{sub.name}}</h2>
{% endfor -%}
{% endif -%}

<p>See more widgets in the <a href="{{site.url}}/development/ui/widgets">widget catalog</a>.</p>
<p>Check out more widgets in the <a href="{{site.url}}/development/ui/widgets">widget catalog</a>.</p>
</div>
34 changes: 25 additions & 9 deletions src/_includes/docs/catalogpage.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<!-- Material 3 Catalog Page -->
{% for section in site.data.catalog.index %}
{% if section.name == include.category %}
{% assign category = section %}
Expand All @@ -18,10 +17,30 @@
</ul>
{% endif -%}

<p> {{ category.pagecontent }}</p>
<p>{{ category.pagecontent }}</p>

<p>See more widgets in the <a href="{{site.url}}/development/ui/widgets">widget catalog</a>.</p>

{% assign components = site.data.catalog.widgets | where_exp:"comp","comp.categories contains include.category" -%}

{% if components.size != 0 -%}
<div class="card-deck card-deck--responsive">
{% for comp in components -%}
<div class="card">
<a href="{{comp.link}}">
<div class="card-image-holder">
{{comp.image}}
</div>
</a>
<div class="card-body">
<a href="{{comp.link}}"><header class="card-title">{{comp.name}}</header></a>
<p class="card-text">{{ comp.description | truncatewords: 25 }}</p>
</div>
</div>
{% endfor -%}
</div>
{% endif -%}

{% if category.subcategories and category.subcategories.size != 0 -%}
{% for sub in category.subcategories -%}
{% assign components = site.data.catalog.widgets | where_exp:"comp","comp.subcategories contains sub.name" -%}
Expand All @@ -31,15 +50,12 @@ <h2 id="{{sub.name}}">{{sub.name}}</h2>
{% for comp in components -%}
<div class="card">
<a href="{{comp.link}}">
<div class="card-image-holder-material-3" style="--bg-color: {{sub.color}}">
{{ comp.image }}
<div class="card-image-material-3-hover">
{{ comp.hoverimage }}
</div>
<div class="card-image-holder">
{{comp.image}}
</div>
</a>
<div class="card-body">
<a href="{{comp.link}}"><header class="card-title card-title-material-3">{{comp.name}}</header></a>
<a href="{{comp.link}}"><header class="card-title">{{comp.name}}</header></a>
<p class="card-text">{{ comp.description | truncatewords: 25 }}</p>
</div>
</div>
Expand All @@ -49,5 +65,5 @@ <h2 id="{{sub.name}}">{{sub.name}}</h2>
{% endfor -%}
{% endif -%}

<p>Check out more widgets in the <a href="{{site.url}}/development/ui/widgets">widget catalog</a>.</p>
<p>See more widgets in the <a href="{{site.url}}/development/ui/widgets">widget catalog</a>.</p>
</div>
2 changes: 1 addition & 1 deletion src/development/ui/widgets/material.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ description: >
A catalog of Flutter's widgets implementing Material 3 design guidelines.
---

{% include docs/catalogpage.html category="Material Components" %}
{% include docs/catalogpage-material.html category="Material Components" %}
2 changes: 1 addition & 1 deletion src/development/ui/widgets/material2.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ description: >
A catalog of Flutter's widgets implementing the Material 2 design guidelines.
---

{% include docs/catalogpage-material-2.html category="Material 2 Components" %}
{% include docs/catalogpage.html category="Material 2 Components" %}