dartlangeditorflutterflutter-appsflutter-examplesflutter-packageflutter-widgetquillquill-deltaquilljsreactquillrich-textrich-text-editorwysiwygwysiwyg-editor
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
1.1 KiB
42 lines
1.1 KiB
import 'package:flutter/material.dart'; |
|
import 'package:flutter_quill/flutter_quill.dart'; |
|
|
|
class HomePage extends StatefulWidget { |
|
const HomePage({super.key}); |
|
|
|
@override |
|
State<HomePage> createState() => _HomePageState(); |
|
} |
|
|
|
class _HomePageState extends State<HomePage> { |
|
final _controller = QuillController.basic(); |
|
@override |
|
Widget build(BuildContext context) { |
|
return QuillProvider( |
|
configurations: QuillConfigurations( |
|
controller: _controller, |
|
sharedConfigurations: QuillSharedConfigurations( |
|
animationConfigurations: QuillAnimationConfigurations.disableAll(), |
|
), |
|
), |
|
child: Scaffold( |
|
appBar: AppBar( |
|
title: const Text('Flutter Quill Demo'), |
|
), |
|
body: Column( |
|
children: [ |
|
const QuillToolbar(), |
|
Expanded( |
|
child: QuillEditor.basic( |
|
configurations: const QuillEditorConfigurations( |
|
scrollable: true, |
|
padding: EdgeInsets.all(16), |
|
), |
|
), |
|
) |
|
], |
|
), |
|
), |
|
); |
|
} |
|
}
|
|
|