Skip to content

Commit 4e318a7

Browse files
committed
🐛 Export files
1 parent 002767c commit 4e318a7

File tree

5 files changed

+17
-6
lines changed

5 files changed

+17
-6
lines changed

lib/common/extensions/text_theme.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,20 @@
11
import 'package:flutter/material.dart';
22

3+
/// LinkStyle extension for [TextTheme].
34
extension LinkStyle on TextTheme {
5+
/// Link style for small text.
46
TextStyle get linkSmall => bodySmall!.copyWith(
57
fontWeight: FontWeight.bold,
68
decoration: TextDecoration.underline,
79
);
810

11+
/// Link style for medium text.
912
TextStyle get linkMedium => bodyMedium!.copyWith(
1013
fontWeight: FontWeight.bold,
1114
decoration: TextDecoration.underline,
1215
);
1316

17+
/// Link style for large text.
1418
TextStyle get linkLarge => bodyLarge!.copyWith(
1519
fontWeight: FontWeight.bold,
1620
decoration: TextDecoration.underline,

lib/dcc_toolkit.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ export 'common/dimensions.dart';
33
export 'common/extensions/build_context.dart';
44
export 'common/extensions/color.dart';
55
export 'common/extensions/iterable.dart';
6+
export 'common/extensions/text_theme.dart';
67
export 'common/result/result.dart';
78
export 'logger/bolt_logger.dart';
89
export 'style/style.dart';

lib/style/kleurplaat/color_group.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ class ColorGroup implements ColorGroupInterface<Color> {
2828

2929
return ColorGroup(
3030
color: Color.lerp(color, other.color, t) ?? color,
31-
onColorContrast: Color.lerp(onColorContrast, other.onColorContrast, t) ?? onColorContrast,
31+
onColorContrast: Color.lerp(onColorContrast, other.onColorContrast, t) ??
32+
onColorContrast,
3233
onColorSubtle: onColorSubtle == null || other.onColorSubtle == null
3334
? null
3435
: Color.lerp(onColorSubtle, other.onColorSubtle, t),

lib/style/kleurplaat/katjas_kleurplaat.dart

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ import 'package:dcc_toolkit/style/kleurplaat/surface_group.dart';
44
import 'package:flutter/material.dart';
55

66
/// {@macro kleurplaat}
7-
class KatjasKleurplaat extends ThemeExtension<KatjasKleurplaat> implements KleurplaatInterface<Color> {
7+
class KatjasKleurplaat extends ThemeExtension<KatjasKleurplaat>
8+
implements KleurplaatInterface<Color> {
89
/// {@macro kleurplaat}
910
const KatjasKleurplaat({
1011
required this.primary,
@@ -94,7 +95,8 @@ class KatjasKleurplaat extends ThemeExtension<KatjasKleurplaat> implements Kleur
9495
}
9596

9697
/// Converts the [KatjasKleurplaat] to a [ColorScheme].
97-
ColorScheme toColorScheme({Brightness brightness = Brightness.light}) => ColorScheme(
98+
ColorScheme toColorScheme({Brightness brightness = Brightness.light}) =>
99+
ColorScheme(
98100
brightness: brightness,
99101
primary: primary.color,
100102
primaryContainer: primary.color,

lib/style/kleurplaat/surface_group.dart

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,14 +59,17 @@ class SurfaceGroup implements SurfaceGroupInterface<Color> {
5959
return SurfaceGroup(
6060
color: Color.lerp(color, other.color, t)!,
6161
onColorContrast: Color.lerp(onColorContrast, other.onColorContrast, t)!,
62-
onColorContrastDim: Color.lerp(onColorContrastDim, other.onColorContrastDim, t)!,
62+
onColorContrastDim:
63+
Color.lerp(onColorContrastDim, other.onColorContrastDim, t)!,
6364
onColorSubtle: Color.lerp(onColorSubtle, other.onColorSubtle, t)!,
64-
onColorSubtleDim: Color.lerp(onColorSubtleDim, other.onColorSubtleDim, t)!,
65+
onColorSubtleDim:
66+
Color.lerp(onColorSubtleDim, other.onColorSubtleDim, t)!,
6567
containerLowest: Color.lerp(containerLowest, other.containerLowest, t)!,
6668
containerLow: Color.lerp(containerLow, other.containerLow, t)!,
6769
container: Color.lerp(container, other.container, t)!,
6870
containerHigh: Color.lerp(containerHigh, other.containerHigh, t)!,
69-
containerHighest: Color.lerp(containerHighest, other.containerHighest, t)!,
71+
containerHighest:
72+
Color.lerp(containerHighest, other.containerHighest, t)!,
7073
link: Color.lerp(link, other.link, t)!,
7174
);
7275
}

0 commit comments

Comments
 (0)