Skip to content
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
2 changes: 1 addition & 1 deletion examples/app-architecture/todo_data_service/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ dev_dependencies:
json_serializable: ^6.10.0

flutter:
uses-material-design: true
uses-material-design: true
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,3 @@ dev_dependencies:

flutter:
uses-material-design: true

Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
include: ../../../analysis_options.yaml


1 change: 0 additions & 1 deletion examples/tools/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,3 @@ dev_dependencies:

flutter:
uses-material-design: true

3 changes: 1 addition & 2 deletions examples/ui/adaptive_app_demos/README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
# adaptive_app_demos

This project contains demo code for adaptive app development techniques from
https://github.com/gskinnerTeam/flutter-adaptive-demo.
https://github.com/gskinnerTeam/flutter-adaptive-demo.

Additional example code in this project was moved from
code snippets originally seen in
[Building adaptive apps](https://docs.flutter.dev/ui/layout/responsive/building-adaptive-apps)
to ensure analysis in the flutter.dev CI pipeline.
These snippets were intended to illustrate concepts and may
therefore not be fully integrated/a functional part of the original demo code.

2 changes: 1 addition & 1 deletion prompts/llmstxt_instructions.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,4 @@ If I encounter an error while performing an operation (for example, a tool fails

---

By following these instructions, I will help keep the `llms.txt` file accurate and up-to-date.
By following these instructions, I will help keep the `llms.txt` file accurate and up-to-date.
67 changes: 44 additions & 23 deletions site/lib/_sass/base/_base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ body {

// If the TOC is disabled, reduce the subheader height to
// ensure offset calculations are still correct.
&[data-toc="false"], &.no-toc {
&[data-toc="false"],
&.no-toc {
--site-subheader-height: 0rem;
}
}
Expand Down Expand Up @@ -65,10 +66,10 @@ picture {
.material-symbols {
font-family: var(--site-icon-fontFamily);
font-variation-settings:
'FILL' 0,
'wght' 400,
'GRAD' 0,
'opsz' 24;
'FILL' 0,
'wght' 400,
'GRAD' 0,
'opsz' 24;

font-weight: normal;
font-style: normal;
Expand Down Expand Up @@ -100,7 +101,9 @@ picture {
max-width: 320px;
}

&--border { border: 1px solid var(--site-inset-borderColor); }
&--border {
border: 1px solid var(--site-inset-borderColor);
}
}

.site-image-right {
Expand Down Expand Up @@ -157,16 +160,16 @@ main figure {
flex-direction: row;
flex-wrap: wrap;

> div {
width: 100%;
>div {
width: 100%;

&:last-child {
text-align: center;
}
}

@media(min-width: 769px) {
> div {
>div {
&:first-child {
flex: 0 0 58%;
max-width: 58%;
Expand Down Expand Up @@ -203,7 +206,9 @@ main figure {
}

table {
td, th {

td,
th {
padding: .25rem;
}
}
Expand Down Expand Up @@ -232,7 +237,8 @@ table {
}
}

td, th {
td,
th {
border-top: 1px solid var(--site-inset-borderColor);
padding: .75rem;
}
Expand All @@ -244,7 +250,8 @@ thead:has(th:empty) {
display: none;
}

.table-wrapper, .scrollable-table {
.table-wrapper,
.scrollable-table {
overflow-x: auto;
margin-block-start: 1rem;
margin-block-end: 1rem;
Expand Down Expand Up @@ -274,7 +281,7 @@ blockquote {
details {
margin-bottom: 0.75rem;

> summary {
>summary {
font-weight: 500;
user-select: none;
border-radius: 0.125rem;
Expand All @@ -288,7 +295,7 @@ details {
&[open] {
margin-bottom: unset;

> summary {
>summary {
margin-bottom: 0.75rem;
}
}
Expand All @@ -315,7 +322,7 @@ ol.steps {
$step-indicator-height: 1.75rem;

li {
> * {
>* {
&:first-child {
margin-block-start: 0;
}
Expand All @@ -330,22 +337,23 @@ ol.steps {
}
}

ul > li {
ul>li {
&:not(:last-child) {
padding-block-end: .5rem;
}
}

> li {
>li {
position: relative;
counter-increment: steps;

ol, ul {
ol,
ul {
padding-inline-start: 2rem;
margin-block-end: 0.75rem;
}

> h3:first-child {
>h3:first-child {
display: flex;
align-items: center;
height: $step-indicator-height;
Expand Down Expand Up @@ -397,18 +405,25 @@ ol.steps {
}

main {
ol + img, ul + img, ol + p, ul + p, p + p + img {

ol+img,
ul+img,
ol+p,
ul+p,
p+p+img {
margin-bottom: 1rem;
}

td {
> *:last-child {
>*:last-child {
margin-bottom: 0;
}
}
}

p + ul, p + ol, p + dl {
p+ul,
p+ol,
p+dl {
margin-block-start: 0.75rem;
margin-block-end: 0.75rem;
}
Expand All @@ -421,6 +436,7 @@ p + ul, p + ol, p + dl {

.card-os-bug {
position: relative;

&::before {
content: "";
position: absolute;
Expand All @@ -432,33 +448,38 @@ p + ul, p + ol, p + dl {
background-size: contain;
background-color: transparent;
background-repeat: no-repeat;
z-index: var(--site-z-floating); /* Place in front of card */
z-index: var(--site-z-floating);
/* Place in front of card */
}
}

.card-macos {
@extend .card-os-bug;

&::before {
background-image: url("/assets/images/docs/brand-svg/macos-bug.svg");
}
}

.card-windows {
@extend .card-os-bug;

&::before {
background-image: url("/assets/images/docs/brand-svg/windows-bug.svg");
}
}

.card-linux {
@extend .card-os-bug;

&::before {
background-image: url("/assets/images/docs/brand-svg/linux.svg");
}
}

.card-chromeos {
@extend .card-os-bug;

&::before {
background-image: url("/assets/images/docs/brand-svg/chromeos.svg");
}
Expand Down
18 changes: 14 additions & 4 deletions site/lib/_sass/base/_print-overrides.scss
Original file line number Diff line number Diff line change
@@ -1,9 +1,18 @@
// Overrides for printing so only page content is printed
@media print {

// Ignore navigation elements and other non-necessary interactive ones
#site-header, .subnav, .site-footer, #sidenav, .navbar,
#site-toc--side, #page-github-links, #cookie-notice, .site-banner,
.code-excerpt__copy-btn, .breadcrumb {
#site-header,
.subnav,
.site-footer,
#sidenav,
.navbar,
#site-toc--side,
#page-github-links,
#cookie-notice,
.site-banner,
.code-excerpt__copy-btn,
.breadcrumb {
display: none !important;
}

Expand All @@ -27,7 +36,8 @@
}

// Show borders around notes and code blocks
.alert, pre {
.alert,
pre {
border: 1px solid black;
}
}
12 changes: 9 additions & 3 deletions site/lib/_sass/base/_reset.scss
Original file line number Diff line number Diff line change
@@ -1,16 +1,22 @@
*, ::before, ::after {
*,
::before,
::after {
box-sizing: border-box;
border-width: 0;
}

html, body {
html,
body {
padding: 0;
margin: 0;
-webkit-text-size-adjust: none;
text-size-adjust: none;
}

button, input, select, textarea {
button,
input,
select,
textarea {
font-family: inherit;
font-feature-settings: inherit;
font-variation-settings: inherit;
Expand Down
3 changes: 2 additions & 1 deletion site/lib/_sass/base/_root.scss
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,8 @@ body {
--site-alert-warning-color: #cea11f;
--site-alert-error-color: #ff5d5d;

.opal, .opal span {
.opal,
.opal span {
color: var(--opal-dark-color) !important;
font-style: var(--opal-dark-font-style) !important;
font-weight: var(--opal-dark-font-weight) !important;
Expand Down
4 changes: 2 additions & 2 deletions site/lib/_sass/base/_utils.scss
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ main {
margin-block-end: 0;
}

> * {
>* {
max-width: 100%;
min-width: 0;
}
Expand All @@ -41,7 +41,7 @@ main {
justify-content: space-around;
margin: 1rem;

> figure {
>figure {
margin-block-end: 0;
}
}
Expand Down
3 changes: 2 additions & 1 deletion site/lib/_sass/components/_banner.scss
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
text-wrap: balance;
}

a, button {
a,
button {
white-space: nowrap;
color: var(--site-onPrimary-color);
font-family: var(--site-ui-fontFamily);
Expand Down
10 changes: 6 additions & 4 deletions site/lib/_sass/components/_button.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,18 @@ a {
}

&:visited {
color:var(--site-link-fgColor);
color: var(--site-link-fgColor);
}
}

a, button {
a,
button {
text-decoration: none;
background: none;
cursor: pointer;

&.filled-button, &.text-button {
&.filled-button,
&.text-button {
display: flex;
align-items: center;
width: fit-content;
Expand Down Expand Up @@ -78,7 +80,7 @@ a, button {
-webkit-user-select: none;
background: none;

> span {
>span {
font-size: 1.75rem;
}

Expand Down
Loading
Loading