feat: word counter service (#705)
* feat: word counter service * chore: minor improvement * test: add expect for stop() * fix: code review
This commit is contained in:
parent
7000a19d81
commit
9c27b8e309
1 changed files with 310 additions and 59 deletions
|
|
@ -3,18 +3,20 @@ import 'dart:convert';
|
|||
import 'dart:io';
|
||||
import 'dart:math';
|
||||
|
||||
import 'package:appflowy_editor/appflowy_editor.dart';
|
||||
import 'package:flutter/foundation.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter/services.dart';
|
||||
|
||||
import 'package:example/pages/customize_theme_for_editor.dart';
|
||||
import 'package:example/pages/editor.dart';
|
||||
import 'package:example/pages/editor_list.dart';
|
||||
import 'package:example/pages/focus_example_for_editor.dart';
|
||||
import 'package:file_picker/file_picker.dart';
|
||||
import 'package:flutter/foundation.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter/services.dart';
|
||||
import 'package:path_provider/path_provider.dart';
|
||||
import 'package:universal_html/html.dart' as html;
|
||||
|
||||
import 'package:appflowy_editor/appflowy_editor.dart';
|
||||
|
||||
enum ExportFileType {
|
||||
documentJson,
|
||||
markdown,
|
||||
|
|
@ -93,9 +95,7 @@ class _HomePageState extends State<HomePage> {
|
|||
surfaceTintColor: Colors.transparent,
|
||||
title: const Text('AppFlowy Editor'),
|
||||
),
|
||||
body: SafeArea(
|
||||
child: _buildBody(context),
|
||||
),
|
||||
body: SafeArea(child: _widgetBuilder(context)),
|
||||
);
|
||||
}
|
||||
|
||||
|
|
@ -220,10 +220,6 @@ class _HomePageState extends State<HomePage> {
|
|||
);
|
||||
}
|
||||
|
||||
Widget _buildBody(BuildContext context) {
|
||||
return _widgetBuilder(context);
|
||||
}
|
||||
|
||||
Widget _buildListTile(
|
||||
BuildContext context,
|
||||
String text,
|
||||
|
|
|
|||
Loading…
Reference in a new issue