Format code

pull/17/head
Xin Yao 4 years ago
parent a0644c376e
commit 4abbfc143f
  1. 4
      app/lib/widgets/demo_scaffold.dart
  2. 2
      app/pubspec.lock
  3. 1
      app/test/widget_test.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/controller.dart';
import 'package:flutter_quill/widgets/toolbar.dart'; import 'package:flutter_quill/widgets/toolbar.dart';
typedef DemoContentBuilder = Widget Function( typedef DemoContentBuilder = Widget Function(
BuildContext context, QuillController controller); BuildContext context, QuillController controller);
@ -56,7 +55,7 @@ class _DemoScaffoldState extends State<DemoScaffold> {
Future<void> _loadFromAssets() async { Future<void> _loadFromAssets() async {
try { try {
final result = final result =
await rootBundle.loadString('assets/${widget.documentFilename}'); await rootBundle.loadString('assets/${widget.documentFilename}');
final doc = Document.fromJson(jsonDecode(result)); final doc = Document.fromJson(jsonDecode(result));
setState(() { setState(() {
_controller = QuillController( _controller = QuillController(
@ -73,7 +72,6 @@ class _DemoScaffoldState extends State<DemoScaffold> {
} }
} }
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
final actions = widget.actions ?? <Widget>[]; final actions = widget.actions ?? <Widget>[];

@ -82,7 +82,7 @@ packages:
path: ".." path: ".."
relative: true relative: true
source: path source: path
version: "0.2.2" version: "0.2.4"
flutter_test: flutter_test:
dependency: "direct dev" dependency: "direct dev"
description: flutter description: flutter

@ -12,7 +12,6 @@ import '../lib/main.dart';
// import 'package:app/main.dart'; // import 'package:app/main.dart';
void main() { void main() {
testWidgets('Counter increments smoke test', (WidgetTester tester) async { testWidgets('Counter increments smoke test', (WidgetTester tester) async {
// Build our app and trigger a frame. // Build our app and trigger a frame.

Loading…
Cancel
Save