light_html_editor 0.0.1
light_html_editor: ^0.0.1 copied to clipboard
A lightweight HTML editor for Flutter.
example/lib/main.dart
import 'package:flutter/material.dart';
import 'package:light_html_editor/editor.dart';
import 'package:light_html_editor/placeholder.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'HTML Editor Demo',
theme: ThemeData(
primarySwatch: Colors.blue,
),
home: Scaffold(
body: Center(
child: SizedBox(
width: 400,
child: RichTextEditor(
placeholders: [
RichTextPlaceholder(
"VAR", "Some longer text that got shortened!"),
],
onChanged: (String html) {
// do something with the richtext
},
),
),
),
),
);
}
}