light_html_editor 0.0.1 copy "light_html_editor: ^0.0.1" to clipboard
light_html_editor: ^0.0.1 copied to clipboard

outdated

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
              },
            ),
          ),
        ),
      ),
    );
  }
}
14
likes
0
points
192
downloads

Publisher

verified publishermanuelh.at

Weekly Downloads

A lightweight HTML editor for Flutter.

Homepage

License

unknown (license)

Dependencies

flutter

More

Packages that depend on light_html_editor