overwrite 0.3.5

  • README.md
  • Installing
  • Versions
  • 0

overwrite

Overwrite mode for textarea elements in Dart

To put a textarea element into overwrite mode:

    var overwrite = new OverwriteElement(element);

To set the element back to normal editing:

  overwrite.setInputMode(OverwriteMode.INSERT);

To subscribe to change made to the element value by typing, cutting, pasting, setting the value programmatically, or by whitespace being added:

  overwrite.onOverwriteEvent.listen((event) {
    // set text in model
  });

New text typed into the textarea will overwrite the existing content instead of inserting it.

Overwrite also handles deleting and backspacing single characters and selections, cut, and paste.

When the textarea receives focus, overwrite pads the value with spaces to fill the client width of the element.

Use this package as a library

1. Depend on it

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


dependencies:
  overwrite: ^0.3.5

2. Install it

You can install packages from the command line:

with pub:


$ pub get

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

3. Import it

Now in your Dart code, you can use:


import 'package:overwrite/overwrite.dart';
  
Version Uploaded Documentation Archive
0.3.5 Sep 16, 2016 Go to the documentation of overwrite 0.3.5 Download overwrite 0.3.5 archive
0.3.4 Jul 29, 2016 Go to the documentation of overwrite 0.3.4 Download overwrite 0.3.4 archive
0.3.3 Jul 29, 2016 Go to the documentation of overwrite 0.3.3 Download overwrite 0.3.3 archive
0.3.2 Jul 25, 2016 Go to the documentation of overwrite 0.3.2 Download overwrite 0.3.2 archive
0.3.1 Jul 18, 2016 Go to the documentation of overwrite 0.3.1 Download overwrite 0.3.1 archive
0.3.0 May 23, 2016 Go to the documentation of overwrite 0.3.0 Download overwrite 0.3.0 archive
0.2.11 Mar 4, 2016 Go to the documentation of overwrite 0.2.11 Download overwrite 0.2.11 archive
0.2.10 Feb 24, 2016 Go to the documentation of overwrite 0.2.10 Download overwrite 0.2.10 archive
0.2.9 Nov 6, 2015 Go to the documentation of overwrite 0.2.9 Download overwrite 0.2.9 archive
0.2.8 Sep 13, 2015 Go to the documentation of overwrite 0.2.8 Download overwrite 0.2.8 archive

All 17 versions...

Popularity:
Describes how popular the package is relative to other packages. [more]
0
Health:
Code health derived from static analysis. [more]
0
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
0
Overall:
Weighted score of the above. [more]
0
Learn more about scoring.

The package version is not analyzed, because it does not support Dart 2. Until this is resolved, the package will receive a health and maintenance score of 0.

Issues and suggestions

Support Dart 2 in pubspec.yaml.

The SDK constraint in pubspec.yaml doesn't allow the Dart 2.0.0 release. For information about upgrading it to be Dart 2 compatible, please see https://www.dartlang.org/dart-2#migration.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=1.8.0 <2.0.0