We have had some feedback on the text editor so far. Users like it and want more buttons, and the top priority is a word-count feature that displays a dialog with the current count. Customers have has indicated that they would like a powerful toolbar above the editor pane for a range of features. They like the pop-up dialog style, but say that the current one does not fit into the look of the application.
Open the code sample for Chapter 2, Advancing the Editor texteditor
to see a slightly modified version of the project from the first chapter. It is not ready to run out of the box as we will add in a package
to deal with the dialog creation.
The text editor functionality has been moved into a separate file—our main.dart
was getting rather cluttered. My personal preference is to keep it as minimal as possible. The main.dart
now imports a file, editor.dart,
and the main function is used to connect the interface to the Editor
object, which now...