From 4abbfc143fdea3ea2967dd28980e0a1bab7ad1aa Mon Sep 17 00:00:00 2001 From: Xin Yao Date: Sat, 6 Feb 2021 13:11:16 -0800 Subject: [PATCH] Format code --- app/lib/widgets/demo_scaffold.dart | 4 +--- app/pubspec.lock | 2 +- app/test/widget_test.dart | 1 - 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/app/lib/widgets/demo_scaffold.dart b/app/lib/widgets/demo_scaffold.dart index 8e0b749b..3caa00d5 100644 --- a/app/lib/widgets/demo_scaffold.dart +++ b/app/lib/widgets/demo_scaffold.dart @@ -6,7 +6,6 @@ import 'package:flutter_quill/models/documents/document.dart'; import 'package:flutter_quill/widgets/controller.dart'; import 'package:flutter_quill/widgets/toolbar.dart'; - typedef DemoContentBuilder = Widget Function( BuildContext context, QuillController controller); @@ -56,7 +55,7 @@ class _DemoScaffoldState extends State { Future _loadFromAssets() async { try { final result = - await rootBundle.loadString('assets/${widget.documentFilename}'); + await rootBundle.loadString('assets/${widget.documentFilename}'); final doc = Document.fromJson(jsonDecode(result)); setState(() { _controller = QuillController( @@ -73,7 +72,6 @@ class _DemoScaffoldState extends State { } } - @override Widget build(BuildContext context) { final actions = widget.actions ?? []; diff --git a/app/pubspec.lock b/app/pubspec.lock index 1169bd23..feb97033 100644 --- a/app/pubspec.lock +++ b/app/pubspec.lock @@ -82,7 +82,7 @@ packages: path: ".." relative: true source: path - version: "0.2.2" + version: "0.2.4" flutter_test: dependency: "direct dev" description: flutter diff --git a/app/test/widget_test.dart b/app/test/widget_test.dart index 3e91b322..4088468f 100644 --- a/app/test/widget_test.dart +++ b/app/test/widget_test.dart @@ -12,7 +12,6 @@ import '../lib/main.dart'; // import 'package:app/main.dart'; - void main() { testWidgets('Counter increments smoke test', (WidgetTester tester) async { // Build our app and trigger a frame.