Skip to content
pubscout

flutter_quill_test

11.1.0, released 2 years ago by freshplatform.net

Test utilities for interacting with the flutter_quill editor in widget tests.

Quiet but busy
$ flutter pub add flutter_quill_test
Source repository

What it does

Provides WidgetTester extensions to simplify testing flutter_quill editors. Allows entering, replacing, and removing text, as well as moving cursors and updating selections.

AI-written summary of version 11.1.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You are writing widget tests for a Flutter app using flutter_quill
  • You need to programmatically interact with a QuillEditor in test cases

Skip it when

  • You are not using flutter_quill in your project

Strengths

  • Simplifies widget testing for complex rich text editors
  • Extends standard WidgetTester with intuitive methods

Weaknesses

  • Tightly coupled to a single package (flutter_quill)

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
2

Add flutter_test and flutter_quill_test as dev dependencies.

import 'package:flutter_test/flutter_test.dart';
import 'package:flutter_quill_test/flutter_quill_test.dart';

void main() {
  testWidgets('Example test', (WidgetTester tester) async {
    await tester.quillEnterText(find.byType(QuillEditor), 'Hello, World!\n');
  });
}

Alternatives

Packages that do the same job and could replace flutter_quill_test.

Works with

Packages commonly used together with flutter_quill_test: ones it builds on, ones built on it, and its own family.