notus_plus 0.1.3

  • Readme
  • Changelog
  • Example
  • Installing
  • 74

Notus is a rich text document model for Zefyr project.

This package is currently in early preview. If you found a bug or have a feature request, please file it at the issue tracker.

Zefyr provides a lightweight and user friendly rich text editor for Flutter framework.

For documentation, please see the main Zefyr repository.

Notus is a generic Dart package and does not depend on Flutter in any way. It can be used on any platform supported by the Dart language: web, server (mac, linux, windows) and, of course, mobile (android and ios).

0.1.3 #

Bug Fixed

0.1.1 #

  • Bug fixed.

0.1.0 #

  • Initial release


// Copyright (c) 2018, the Zefyr project authors.  Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.

import 'package:notus/notus.dart';

void main() {
  final doc = NotusDocument();
  // Modify this document with insert, delete and format operations
      0, 'Notus package provides rich text document model for Zefyr editor');
  doc.format(0, 5, NotusAttribute.bold); // Makes first word bold.
  doc.format(0, 0, NotusAttribute.h1); // Makes first line a heading.
  doc.delete(23, 10); // Deletes "rich text " segment.

  // Collects style attributes at 1 character in this document.
  doc.collectStyle(1, 0); // returned style would include "bold" and "h1".

  // Listen to all changes applied to this document.
  doc.changes.listen((change) {

  // Dispose resources allocated by this document, e.g. closes "changes" stream.
  // After document is closed it cannot be modified.

Use this package as a library

1. Depend on it

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

  notus_plus: ^0.1.3

2. Install it

You can install packages from the command line:

with pub:

$ pub get

with Flutter:

$ flutter pub get

Alternatively, your editor might support pub get or 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:notus_plus/convert.dart';
import 'package:notus_plus/notus.dart';
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Learn more about scoring.

We analyzed this package on Jul 14, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.8.4
  • pana: 0.13.15


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.2.0 <3.0.0
collection ^1.14.6 1.14.13 1.15.0-nullsafety
meta ^1.1.0 1.2.2 1.3.0-nullsafety
quill_delta ^1.0.0 1.0.2
quiver_hashcode ^2.0.0 2.0.0
Dev dependencies
pedantic ^1.0.0
test ^1.10.0
test_coverage ^0.4.0