Fix home page

pull/113/head
Xin Yao 4 years ago
parent 8efa97ec12
commit 02e5fb0ba2
  1. 2
      README.md
  2. 3
      example/lib/pages/home_page.dart
  3. 2
      example/lib/widgets/field.dart
  4. 5
      example/test/widget_test.dart

@ -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

@ -79,12 +79,11 @@ class _HomePageState extends State<HomePage> {
.getSelectionStyle()
.attributes
.keys
.contains("bold")) {
.contains('bold')) {
_controller!
.formatSelection(Attribute.clone(Attribute.bold, null));
} else {
_controller!.formatSelection(Attribute.bold);
print("not bold");
}
}
},

@ -105,11 +105,11 @@ class _QuillFieldState extends State<QuillField> {
children: [
child,
Visibility(
child: widget.toolbar!,
visible: _focused,
maintainSize: true,
maintainAnimation: true,
maintainState: true,
child: widget.toolbar!,
),
],
);

@ -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 {

Loading…
Cancel
Save