flutter_quill_test 11.0.0-dev.3 flutter_quill_test: ^11.0.0-dev.3 copied to clipboard
Test utilities for flutter_quill which includes methods to simplify interacting with the editor in test cases.
๐ Flutter Quill Test #
Test utilities for flutter_quill which include methods to simplify interacting with the editor in test cases.
๐ Table of contents #
๐พ Installation #
Add the dependencies flutter_test
and flutter_quill_test
:
flutter pub add 'dev:flutter_test:{"sdk":"flutter"}'
flutter pub add dev:flutter_quill_test
๐งช Testing #
To aid in testing applications using the editor an extension to the flutter WidgetTester
is provided which includes
methods to simplify interacting with the editor in test cases.
Import the test utilities in your test file:
import 'package:flutter_quill_test/flutter_quill_test.dart';
and then enter text using quillEnterText
:
await tester.quillEnterText(find.byType(QuillEditor), 'test\n');
๐ค Contributing #
We greatly appreciate your time and effort.
To keep the project consistent and maintainable, we have a few guidelines that we ask all contributors to follow. These guidelines help ensure that everyone can understand and work with the code easier.
See Contributing for more details.