Skip to content

Commit 4698ec1

Browse files
Panteclaude
andcommitted
Add explicit horizontal axis variants to FResizable & FSlider
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 650cd07 commit 4698ec1

74 files changed

Lines changed: 671 additions & 537 deletions

File tree

Some content is hidden

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

docs_snippets/lib/examples/foundation/focused_outline.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class FocusedOutlinePage extends Example {
1717
padding: const .symmetric(vertical: 8.0, horizontal: 12),
1818
child: Text(
1919
'Focused',
20-
style: context.theme.typography.base.copyWith(color: context.theme.colors.primaryForeground),
20+
style: context.theme.typography.md.copyWith(color: context.theme.colors.primaryForeground),
2121
),
2222
),
2323
);

docs_snippets/lib/examples/foundation/portal.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class PortalPage extends Example {
2626
mainAxisSize: .min,
2727
crossAxisAlignment: .start,
2828
children: [
29-
Text('Dimensions', style: context.theme.typography.base),
29+
Text('Dimensions', style: context.theme.typography.md),
3030
const SizedBox(height: 7),
3131
Text(
3232
'Set the dimensions for the layer.',

docs_snippets/lib/examples/foundation/tappable_bounce.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class TappableBouncePage extends Example {
3333
color: states.contains(FTappableVariant.pressed)
3434
? context.theme.colors.secondary
3535
: context.theme.colors.background,
36-
borderRadius: context.theme.style.borderRadius.base,
36+
borderRadius: context.theme.style.borderRadius.md,
3737
border: .all(color: context.theme.colors.border),
3838
),
3939
padding: const .symmetric(vertical: 8.0, horizontal: 12),

docs_snippets/lib/examples/foundation/tappable_group.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class TappableGroupPage extends Example {
2323
color: states.contains(FTappableVariant.pressed)
2424
? context.theme.colors.secondary
2525
: context.theme.colors.background,
26-
borderRadius: context.theme.style.borderRadius.base,
26+
borderRadius: context.theme.style.borderRadius.md,
2727
border: .all(color: context.theme.colors.border),
2828
),
2929
padding: const .symmetric(vertical: 8.0, horizontal: 12),

docs_snippets/lib/examples/widgets/alert.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class AlertPrimaryPage extends Example {
1414
@override
1515
Widget example(BuildContext _) => const FAlert(
1616
// {@highlight}
17-
variant: null,
17+
variant: .primary,
1818
// {@endhighlight}
1919
title: Text('Heads Up!'),
2020
subtitle: Text('You can add components to your app using the cli.'),

docs_snippets/lib/examples/widgets/popover.dart

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class PopoverPage extends Example {
2323
mainAxisSize: .min,
2424
crossAxisAlignment: .start,
2525
children: [
26-
Text('Dimensions', style: context.theme.typography.base),
26+
Text('Dimensions', style: context.theme.typography.md),
2727
const SizedBox(height: 7),
2828
Text(
2929
'Set the dimensions for the layer.',
@@ -85,7 +85,7 @@ class HorizontalPopoverPage extends Example {
8585
mainAxisSize: .min,
8686
crossAxisAlignment: .start,
8787
children: [
88-
Text('Dimensions', style: context.theme.typography.base),
88+
Text('Dimensions', style: context.theme.typography.md),
8989
const SizedBox(height: 7),
9090
Text(
9191
'Set the dimensions for the layer.',
@@ -148,7 +148,7 @@ class NoHideRegionPopoverPage extends Example {
148148
mainAxisSize: .min,
149149
crossAxisAlignment: .start,
150150
children: [
151-
Text('Dimensions', style: context.theme.typography.base),
151+
Text('Dimensions', style: context.theme.typography.md),
152152
const SizedBox(height: 7),
153153
Text(
154154
'Set the dimensions for the layer.',
@@ -209,7 +209,7 @@ class NestedPopoverPage extends Example {
209209
mainAxisSize: .min,
210210
crossAxisAlignment: .start,
211211
children: [
212-
Text('Dimensions', style: context.theme.typography.base),
212+
Text('Dimensions', style: context.theme.typography.md),
213213
const SizedBox(height: 7),
214214
Text(
215215
'Set the dimensions for the layer.',
@@ -299,7 +299,7 @@ class BlurredPopoverPage extends Example {
299299
mainAxisSize: .min,
300300
crossAxisAlignment: .start,
301301
children: [
302-
Text('Dimensions', style: context.theme.typography.base),
302+
Text('Dimensions', style: context.theme.typography.md),
303303
const SizedBox(height: 7),
304304
Text(
305305
'Set the dimensions for the layer.',
@@ -361,7 +361,7 @@ class FlipPopoverPage extends Example {
361361
mainAxisSize: .min,
362362
crossAxisAlignment: .start,
363363
children: [
364-
Text('Dimensions', style: context.theme.typography.base),
364+
Text('Dimensions', style: context.theme.typography.md),
365365
const SizedBox(height: 7),
366366
Text(
367367
'Set the dimensions for the layer.',
@@ -424,7 +424,7 @@ class SlidePopoverPage extends Example {
424424
mainAxisSize: .min,
425425
crossAxisAlignment: .start,
426426
children: [
427-
Text('Dimensions', style: context.theme.typography.base),
427+
Text('Dimensions', style: context.theme.typography.md),
428428
const SizedBox(height: 7),
429429
Text(
430430
'Set the dimensions for the layer.',
@@ -487,7 +487,7 @@ class AllowOverflowPopoverPage extends Example {
487487
mainAxisSize: .min,
488488
crossAxisAlignment: .start,
489489
children: [
490-
Text('Dimensions', style: context.theme.typography.base),
490+
Text('Dimensions', style: context.theme.typography.md),
491491
const SizedBox(height: 7),
492492
Text(
493493
'Set the dimensions for the layer.',

docs_snippets/lib/examples/widgets/sidebar.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ class SidebarPage extends Example {
125125
child: Container(
126126
decoration: BoxDecoration(
127127
color: context.theme.colors.muted,
128-
borderRadius: context.theme.style.borderRadius.base,
128+
borderRadius: context.theme.style.borderRadius.md,
129129
),
130130
),
131131
),
@@ -134,7 +134,7 @@ class SidebarPage extends Example {
134134
child: Container(
135135
decoration: BoxDecoration(
136136
color: context.theme.colors.muted,
137-
borderRadius: context.theme.style.borderRadius.base,
137+
borderRadius: context.theme.style.borderRadius.md,
138138
),
139139
),
140140
),

docs_snippets/lib/examples/widgets/switch.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ class _FormSwitchPageState extends StatefulExampleState<FormSwitchPage> {
8989
children: [
9090
Text(
9191
'Marketing Emails',
92-
style: theme.typography.base.copyWith(
92+
style: theme.typography.md.copyWith(
9393
fontWeight: .w500,
9494
color: theme.colors.foreground,
9595
height: 1.5,
@@ -128,7 +128,7 @@ class _FormSwitchPageState extends StatefulExampleState<FormSwitchPage> {
128128
children: [
129129
Text(
130130
'Security emails',
131-
style: theme.typography.base.copyWith(
131+
style: theme.typography.md.copyWith(
132132
fontWeight: .w500,
133133
color: theme.colors.foreground,
134134
height: 1.5,

docs_snippets/lib/portal_visualization/visualization.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ class Visualization extends StatelessWidget {
7474
clipBehavior: .hardEdge,
7575
decoration: BoxDecoration(
7676
border: .all(color: context.theme.colors.border),
77-
borderRadius: context.theme.style.borderRadius.base,
77+
borderRadius: context.theme.style.borderRadius.md,
7878
),
7979
padding: const .symmetric(horizontal: 75, vertical: 30),
8080
child: Center(

docs_snippets/lib/snippets/concepts/themes/components/style.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Widget build(BuildContext context) {
1414
decoration: BoxDecoration(
1515
// {@highlight}
1616
border: .all(color: colors.border, width: style.borderWidth),
17-
borderRadius: style.borderRadius.base,
17+
borderRadius: style.borderRadius.md,
1818
color: colors.primary,
1919
// {@endhighlight}
2020
),

0 commit comments

Comments
 (0)