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.
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.
- patrol_log
Log package for Patrol, a Flutter-native UI testing framework
87Compare - flame_test
Classes and helpers for testing applications built with the Flame Engine.
80Compare - bloc_test
A testing library that makes it easy to test blocs and cubits.
82Compare - golden_screenshot
Utilities to automate screenshot generation using Flutter's golden tests.
76Compare
Works with
Packages commonly used together with flutter_quill_test: ones it builds on, ones built on it, and its own family.