From 02e5fb0ba20fd70bb145d5bdd1eb8eec10465420 Mon Sep 17 00:00:00 2001 From: Xin Yao Date: Fri, 26 Mar 2021 09:07:57 -0700 Subject: [PATCH] Fix home page --- README.md | 2 +- example/lib/pages/home_page.dart | 3 +-- example/lib/widgets/field.dart | 2 +- example/test/widget_test.dart | 5 +---- 4 files changed, 4 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index cfdbd4f2..ac307c4e 100644 --- a/README.md +++ b/README.md @@ -86,4 +86,4 @@ For web development, use `flutter config --enable-web` for flutter and use [Reac [FlutterQuill]: https://pub.dev/packages/flutter_quill [ReactQuill]: https://github.com/zenoamaro/react-quill [Slack Group]: https://join.slack.com/t/bulletjournal1024/shared_invite/zt-fys7t9hi-ITVU5PGDen1rNRyCjdcQ2g -[Sample Page]: https://github.com/singerdmx/flutter-quill/blob/master/app/lib/pages/home_page.dart +[Sample Page]: https://github.com/singerdmx/flutter-quill/blob/master/example/lib/pages/home_page.dart diff --git a/example/lib/pages/home_page.dart b/example/lib/pages/home_page.dart index f7299805..2e044fd7 100644 --- a/example/lib/pages/home_page.dart +++ b/example/lib/pages/home_page.dart @@ -79,12 +79,11 @@ class _HomePageState extends State { .getSelectionStyle() .attributes .keys - .contains("bold")) { + .contains('bold')) { _controller! .formatSelection(Attribute.clone(Attribute.bold, null)); } else { _controller!.formatSelection(Attribute.bold); - print("not bold"); } } }, diff --git a/example/lib/widgets/field.dart b/example/lib/widgets/field.dart index 35e710f2..5a6badfe 100644 --- a/example/lib/widgets/field.dart +++ b/example/lib/widgets/field.dart @@ -105,11 +105,11 @@ class _QuillFieldState extends State { children: [ child, Visibility( - child: widget.toolbar!, visible: _focused, maintainSize: true, maintainAnimation: true, maintainState: true, + child: widget.toolbar!, ), ], ); diff --git a/example/test/widget_test.dart b/example/test/widget_test.dart index 4088468f..5029542e 100644 --- a/example/test/widget_test.dart +++ b/example/test/widget_test.dart @@ -7,10 +7,7 @@ import 'package:flutter/material.dart'; import 'package:flutter_test/flutter_test.dart'; - -import '../lib/main.dart'; - -// import 'package:app/main.dart'; +import 'package:app/main.dart'; void main() { testWidgets('Counter increments smoke test', (WidgetTester tester) async {