feat : allow developer to change toolbar color as well as option to show default toolbar items and html to document converter added (#58)

* change toolbar and added export so developer can modify according to its need

* revert some chages from examples

* html to document convertion added

* test added

* code formated

* node to html added image parameter

* toolbar color and elevation added in editor stylee

* code formated

* remove duplicated exports

* fix test improts and formating
This commit is contained in:
Ali Hassan 2023-04-14 07:10:03 +05:00 • committed by GitHub
commit 865195f8c6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 71 additions and 34 deletions

View file

@ -2,7 +2,6 @@ import 'package:appflowy_editor/src/infra/flowy_svg.dart';
import 'package:flutter/material.dart';
import 'package:flutter_svg/svg.dart';
import 'package:flutter_test/flutter_test.dart';
import '../test_helper.dart';
void main() {

View file

@ -25,6 +25,14 @@ void main() {
expect(html.isNotEmpty, true);
});
});
group('HTMLConverterDocument tests', () {
test('HTMLToNodesConverter', () {
final converter = HTMLToNodesConverter(rawHTML);
final document = converter.toDocument();
expect(document.root.children.isNotEmpty, true);
});
});
}
const rawHTML = """<h1>AppFlowyEditor</h1>