flutter_quill 0.0.9 copy "flutter_quill: ^0.0.9" to clipboard
flutter_quill: ^0.0.9 copied to clipboard

outdated

One client and affiliated collaborator of Flutter Quill is Bullet Journal App.

example/main.dart

import 'dart:async';
import 'dart:io';

import 'package:flutter/material.dart';
import 'package:flutter_quill/widgets/controller.dart';
import 'package:flutter_quill/widgets/editor.dart';
import 'package:flutter_quill/widgets/toolbar.dart';

class HomePage extends StatefulWidget {
  @override
  _HomePageState createState() => _HomePageState();
}

class _HomePageState extends State<HomePage> {
  QuillController _controller = QuillController.basic();

  @override
  Widget build(BuildContext context) {
    return Scaffold(
        body: Column(
      children: [
        QuillToolbar.basic(
            controller: _controller, uploadFileCallback: _uploadImageCallBack),
        Expanded(
          child: Container(
            child: QuillEditor.basic(
              controller: _controller,
              readOnly: false, // change to true to be view only mode
            ),
          ),
        )
      ],
    ));
  }

  Future<String> _uploadImageCallBack(File file) async {
    // call upload file API and return file's absolute url
    return new Completer<String>().future;
  }
}
2.04k
likes
0
points
141k
downloads

Publisher

verified publisherbulletjournal.us

Weekly Downloads

One client and affiliated collaborator of Flutter Quill is Bullet Journal App.

Homepage
Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

collection, flutter, flutter_colorpicker, image_picker, photo_view, quill_delta, quiver_hashcode, tuple, url_launcher

More

Packages that depend on flutter_quill