notus 0.1.1

  • Example
  • Installing
  • Versions
  • 76

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).


  • Added meta package to dependencies.
  • Fixed analysis warnings.
  • Added example.


  • 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 = new 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.

  // 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: ^0.1.1

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:notus/notus.dart';
Version Uploaded Documentation Archive
0.1.1 Jul 24, 2018 Go to the documentation of notus 0.1.1 Download notus 0.1.1 archive
0.1.0 Jul 15, 2018 Go to the documentation of notus 0.1.0 Download notus 0.1.0 archive
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 Aug 17, 2018, and provided a score, details, and suggestions below. Analysis was completed with status tool failures using:

  • Dart: 2.0.0
  • pana: 0.11.8


Detected platforms: unsure

Error(s) prevent platform classification:

Fix dependencies in pubspec.yaml.

Issues and suggestions

Fix dependencies in pubspec.yaml.

Running pub upgrade failed with the following output:

ERR: The current Dart SDK version is 2.0.0.
 Because notus depends on quiver_hashcode ^1.0.0 which requires SDK version >=1.8.0 <2.0.0, version solving failed.

Fix platform conflicts.

Error(s) prevent platform classification:

Fix dependencies in pubspec.yaml.

Package is pre-v1 release.

While there is nothing inherently wrong with versions of 0.*.*, it usually means that the author is still experimenting with the general direction of the API.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0-dev.58.0 <3.0.0