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:
parent
c19239e071
commit
865195f8c6
2 changed files with 71 additions and 34 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in a new issue