diff --git a/example/lib/main.dart b/example/lib/main.dart index dc7f102..532275e 100644 --- a/example/lib/main.dart +++ b/example/lib/main.dart @@ -67,25 +67,17 @@ class _MyHomePageState extends State { onSelected: (val) async { switch (val) { case 0: - { - String? html = await keyEditor.currentState?.getHtml(); - print(html); - } + String? html = await keyEditor.currentState?.getHtml(); + print(html); break; case 1: - { - await keyEditor.currentState?.clear(); - } + await keyEditor.currentState?.clear(); break; case 2: - { - await keyEditor.currentState?.unFocus(); - } + await keyEditor.currentState?.unFocus(); break; case 3: - { - await keyEditor.currentState?.focus(); - } + await keyEditor.currentState?.focus(); break; } }, diff --git a/lib/src/widgets/fonts_dialog.dart b/lib/src/widgets/fonts_dialog.dart index fe6c372..f276ecc 100644 --- a/lib/src/widgets/fonts_dialog.dart +++ b/lib/src/widgets/fonts_dialog.dart @@ -1,5 +1,3 @@ -import 'dart:io'; - import 'package:flutter/material.dart'; import 'package:flutter_html/flutter_html.dart'; import 'package:path/path.dart'; @@ -21,8 +19,9 @@ class FontsDialog extends StatelessWidget { children: [ for (SystemFont font in getSystemFonts()) InkWell( - child: Html(data: '

' - '${basename(font.path!)}

'), + child: Html( + data: '

' + '${basename(font.path!)}

'), onTap: () { Navigator.pop(context, font.name); }, diff --git a/test/rich_editor_test.dart b/test/rich_editor_test.dart index 2f4b195..ab73b3a 100644 --- a/test/rich_editor_test.dart +++ b/test/rich_editor_test.dart @@ -1,12 +1 @@ -import 'package:flutter_test/flutter_test.dart'; - -import 'package:rich_editor/rich_editor.dart'; - -void main() { - // test('adds one to input values', () { - // final calculator = Calculator(); - // expect(calculator.addOne(2), 3); - // expect(calculator.addOne(-7), -6); - // expect(calculator.addOne(0), 1); - // }); -} +void main() {}