custom_text 0.8.0 copy "custom_text: ^0.8.0" to clipboard
custom_text: ^0.8.0 copied to clipboard

A highly customisable text widget that enables decorations and gestures on strings.

0.8.0 #

  • Breaking:
    • Raise minimum Flutter SDK version to 3.7.0.
    • Remove CustomText.selectable that had been deprecated since 0.6.0. (#24)
    • Handler functions now get GestureDetails object instead of matcher type and text. (#25)
      • This is for supporting wider use cases.
        onTap: (details) {
          print(details.element.matcherType);
          print(details.actionText);
                  
          // or more
          print(details.shownText);
          print(details.gestureKind);
          print(details.globalPosition);
          ...
        }
        
        instead of
        onTap: (type, text) {
          print(type);
          print(text);
        }
        
    • Integrate CustomTextEditingController into custom_text.dart.
      • Use
        import 'package:custom_text/custom_text.dart';
        
        instead of
        import 'package:custom_text/custom_text_editing_controller.dart';
        
  • New:
    • Add onGesture. (#27)
      • This handler supports secondary and tertiary buttons and mouse enter and exit events.
  • Expose the base definition class.
  • Expose the typedefs of builders of SelectiveDefinition and SpanDefinition.
  • Internal refactorings.

0.7.0 #

  • Raise minimum Flutter SDK version to 3.3.0.
  • Refactor TextSpanNotifier to make it easier to add features in future versions.
  • Remove an inappropriate condition from didUpdateWidget.
  • Add screenshots to pubspec.yaml.

0.6.1 #

  • Fix Definition and ParserOptions to use also runtimeType for hashCode calculation.
  • Remove override of toString() from ParserOptions.
  • Make sure that null is not passed to the following arguments:
    • labelSelector of SelectiveDefinition
    • builder of SpanDefinition
  • Use text_parser 0.4.2.
  • Update example app.

0.6.0 #

  • New:
    • Add CustomText.selectable. (#16)
      • Deprecated. (#19)
      • Will be removed in the future in favour of SelectionArea.
    • Add CustomTextEditingController. (#17, #20)
  • Maybe breaking:
    • Use hoverStyle while being pressed if tapStyle is not provided.
  • Many bug fixes, improvements and major refactors. (eb0e6f7, 760cb45, #12, #15, etc)
    • Please see the history of dev versions for details.
  • Require Flutter >=3.0.0.
  • Depend on meta.
  • Update dependencies.

0.6.0-dev.6 #

  • Bump text_parser to 0.4.0.
  • Fix issue where changes of some properties were not reflected. (#21)

0.6.0-dev.5 #

  • Maybe breaking:
    • Use hoverStyle while being pressed if tapStyle is not provided.
  • Suppress error caused by updates of value after dispose().
  • Add test for behaviour on hover without hoverStyle.
  • Improve documentation, example app, etc.

0.6.0-dev.4 #

  • Require Flutter >=3.0.0.
  • Deprecate:
    • CustomText.selectable constructor is now deprecated. (#19)
      • Use SelectionArea on Flutter 3.3 and above.
      • If SelectionArea is insufficient, use CustomTextEditingController and TextField with readOnly: true.
  • New (experimental):
    • Add debounceDuration to CustomTextEditingController for somewhat better performance with long text. (#20)
  • Fix behaviour of CustomTextEditingController when text spans are rebuilt while one of them is hovered/pressed on.
  • Discard gesture recognizers more thoroughly.
  • Add tests for CustomTextEditingController.
  • Minor refactoring.

0.6.0-dev.3 #

  • Add tests for CustomText.selectable.
  • Suppress warnings in Flutter 3.
  • Minor refactoring.
  • Update lint rules.
  • Update and improve the example app.
  • Improve documentation.

0.6.0-dev.2 #

  • Fix issue of persistent hover style.
  • Update text_parser to 0.3.3.
  • Minor improvements.

0.6.0-dev.1 #

  • Bug fixes and major refactors. (eb0e6f7, 760cb45, #12, #15)
  • New (experimental):
    • Add CustomText.selectable. (#16)
    • Add CustomTextEditingController. (#17)
  • Depend on meta.
  • Require Flutter >=2.8.0.

0.5.1 #

  • Minor improvements.

0.5.0 #

  • Fix an issue of tap and hover inactive in a rare condition. (#7)
  • Fix issues of setState() called after dispose(). (#8, #10)
  • Remove deprecated onLongTap.
  • Minor refactoring.
  • Improve documentation of definition classes.

0.4.0 #

  • New:
    • Add ParserOptions for tweaking RegExp settings.
    • Add parserOptions parameter to CustomText.
    • Add LinkMatcher.
  • Depend on text_parser >=0.2.0.

0.3.1 #

  • Fix to allow dynamic update of text.

0.3.0 #

  • Breaking change:
    • Use the mouseCursor property of TextSpan for changing the mouse cursor. (#4)
      • cursorOnHover, which was experimental, was removed from CustomText.
      • mouseCursor was added to TextDefinition and SelectiveDefinition.
  • Deprecate:
    • onLongTap is now deprecated; use onLongPress instead.
  • New:
    • Add hoverStyle to CustomText, TextDefinition and SelectiveDefinition.
  • Refactoring and enhancement:
    • Improve management of tap state.
    • Prevent unnecessary rebuilds and duplicate recognizer creations.
    • Update example project.

0.2.0 #

  • Fix the error of undefined SystemMouseCursor on Flutter 2.2. (#2)
    • Requires Flutter >=2.2.0.
  • Several minor changes.

0.1.2 #

  • Fix and improve documentation.

0.1.1 #

  • Fix to properly dispose of TapGestureRecognizer.
  • Remove note on web limitations.
  • Refactoring and some improvements.
  • New (experimental):
    • Add feature to change mouse cursor on hover over clickable element.

0.1.0 #

  • Migrate to null safety.

0.0.3 #

  • Add tests.
  • Change minimum SDK version to match text_parser.
  • Workaround for Flutter issue.
  • Improve documentation and examples.

0.0.2 #

  • Fix broken links in README files.

0.0.1 #

  • Initial version.
87
likes
120
pub points
85%
popularity
screenshot

Publisher

verified publisherkaboc.cc

A highly customisable text widget that enables decorations and gestures on strings.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter, meta, text_parser

More

Packages that depend on custom_text