extended_text_library 0.4.9

extended_text_library #

pub package

library for extended_text and extended_text_field.

extended_text #

pub package GitHub stars GitHub forks GitHub license GitHub issues flutter-candies

Extended official text to build special text like inline image or @somebody quickly,it also support custom background,custom over flow and custom selection toolbar and handles.

extended_text_field #

pub package GitHub stars GitHub forks GitHub license GitHub issues flutter-candies

Extended official text field to build special text like inline image, @somebody, custom background etc quickly.It also support to build custom seleciton toolbar and handles.

[0.4.9]

  • workaround about wrong selection position of WidgetSpan

[0.4.8]

  • fix issue that ImageSpan's padding can't be null.
  • add behavior for ImageSpan

[0.4.7]

  • change kMinInteractiveSize to kExtendedMinInteractiveSize

[0.4.6]

  • fix null exception of effectiveOffset in getCaretOffset method

[0.4.5]

  • fix kMinInteractiveSize is missing in high version of flutter

[0.4.4]

  • add common selection library for extended_text and extended_text_field

[0.4.3]

  • set default value('\uFFFC') of actualText for ExtendedWidgetSpan
  • add onTap call back for ImageSpan
  • change return type to TextSpan for SpecialTextSpanBuilder's Build method

[0.4.2]

  • improve codes base on v1.7.8
  • support WidgetSpan (ExtendedWidgetSpan)

[0.4.1]

  • add textSpanNestToArray and textSpanToActualText

[0.3.5]

  • move extended_text_utils from extended_text_field

[0.3.1]

  • remove caretIn parameter(SpecialTextSpan)
  • deleteAll parameter has the same effect as caretIn parameter(SpecialTextSpan)

[0.3.0]

  • add caretIn parameter(whether caret can be move into special text for SpecialTextSpan(like a image span or @xxxx)) for SpecialTextSpan

[0.2.6]

  • add GestureRecognizer for image span

[0.2.4]

  • handle image loaded failed for image span

[0.2.3]

  • remove CachedNetworkImage

[0.2.2]

  • update deafult build method in SpecialTextSpanBuilder

[0.2.1]

  • change cacheImageFolderName from "extenedtext" to "cacheimage"

[0.2.0]

  • add BackgroundTextSpan, support to paint custom background

[0.1.6]

  • override compareTo method in SpecialTextSpan and ImageSpan to fix issue that image span or special text span was error rendering

[0.1.5]

  • fix start index is not right in SpecialTextSpanBuilder
  • override == and hashCode for ImageSpan

[0.1.3]

  • override == and hashCode for SpecialTextSpan
  • update build method in SpecialTextSpanBuilder

[0.1.2]

  • add deleteAll parameter for SpecialTextSpan

[0.1.0]

  • add following to support extended_text and extended_text_field cached_network_image.dart extended_text_utils.dart image_span.dart special_text_span_base.dart special_text_span_builder.dart

example/README.md

example #

A new Flutter application.

Getting Started #

This project is a starting point for a Flutter application.

A few resources to get you started if this is your first Flutter project:

For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  extended_text_library: ^0.4.9

2. Install it

You can install packages from the command line:

with Flutter:


$ flutter pub get

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


import 'package:extended_text_library/extended_text_library.dart';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
72
Health:
Code health derived from static analysis. [more]
100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
100
Overall:
Weighted score of the above. [more]
86
Learn more about scoring.

We analyzed this package on Sep 13, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.5.0
  • pana: 0.12.21
  • Flutter: 1.9.1+hotfix.2

Platforms

Detected platforms: Flutter

References Flutter, and has no conflicting libraries.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.1.0 <3.0.0
flutter 0.0.0
Transitive dependencies
collection 1.14.11 1.14.12
meta 1.1.7
sky_engine 0.0.99
typed_data 1.1.6
vector_math 2.0.8
Dev dependencies
flutter_test