Skip to content

Commit

Permalink
Update forui/lib/src/theme/font/text_style_builder.dart
Browse files Browse the repository at this point in the history
Co-authored-by: Matthias Ngeo <[email protected]>
  • Loading branch information
kawaijoe and Pante authored May 9, 2024
1 parent f4cd690 commit 61d540c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion forui/lib/src/theme/font/text_style_builder.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,13 @@ import 'package:flutter/material.dart';

import 'package:forui/forui.dart';

/// An extension that adds a `inherit` constructor to [TextStyleBuilder].
/// A [TextStyle] that scales its properties by factors.
///
/// The scaled properties are:
/// * Font size
/// * Height
/// * Letter spacing
/// * Word spacing
extension type TextStyleBuilder(TextStyle style) implements TextStyle {
/// Creates a [TextStyle] that inherits the properties from the given [FFontData].
TextStyleBuilder.inherit(FFontData data, TextStyle style)
Expand Down

0 comments on commit 61d540c

Please sign in to comment.