Skip to content

Commit

Permalink
doc
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasDevApps committed May 1, 2024
1 parent 9f04eaa commit f7bbed7
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
14 changes: 13 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,16 @@ Packages containing a number of useful extensions not present by default.
- `replaceItemAtIndex`
- `swapItems`
- `swapItemsAtIndex`
- `separate`
- `separate`

## Map

- `replaceValue`

## String

- `firstLetterToUpperCase`

## Widget

- `toFittedBox`
2 changes: 1 addition & 1 deletion lib/helper_extension.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ library helper_extension;
export 'src/helper_extension_list.dart';
export 'src/helper_extension_map.dart';
export 'src/helper_extension_string.dart';
export 'src/helper_extension_text.dart';
export 'src/helper_extension_widget.dart';
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ library helper_extension;

import 'package:flutter/material.dart';

extension HelperExtensionText on Text {
/// Function to transform the [Text] to a [FittedBox].
extension HelperExtensionText on Widget {
/// Function to transform the [Widget] to a [FittedBox].
///
/// We set the [fit] to [BoxFit.scaleDown] to scale down the text
/// in the case of overflowed.
Expand Down

0 comments on commit f7bbed7

Please sign in to comment.