appflowy_editor 5.1.0 copy "appflowy_editor: ^5.1.0" to clipboard
appflowy_editor: ^5.1.0 copied to clipboard

A highly customizable rich-text editor for Flutter. The AppFlowy Editor project for AppFlowy and beyond.

example/lib/main.dart

import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';

import 'package:appflowy_editor/appflowy_editor.dart';
import 'package:example/home_page.dart';
import 'package:flutter_localizations/flutter_localizations.dart';

void main() {
  WidgetsFlutterBinding.ensureInitialized();

  if (defaultTargetPlatform == TargetPlatform.android) {
    SystemChrome.setEnabledSystemUIMode(SystemUiMode.edgeToEdge, overlays: []);
    SystemChrome.setSystemUIOverlayStyle(
      const SystemUiOverlayStyle(systemNavigationBarColor: Colors.transparent),
    );
  }

  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      localizationsDelegates: const [
        GlobalMaterialLocalizations.delegate,
        GlobalCupertinoLocalizations.delegate,
        GlobalWidgetsLocalizations.delegate,
        AppFlowyEditorLocalizations.delegate,
      ],
      supportedLocales: AppFlowyEditorLocalizations.delegate.supportedLocales,
      debugShowCheckedModeBanner: false,
      home: const HomePage(),
      theme: ThemeData.light(useMaterial3: true),
    );
  }
}
copied to clipboard
455
likes
130
points
5.49k
downloads

Publisher

verified publisherappflowy.io

Weekly Downloads

2024.09.14 - 2025.03.29

A highly customizable rich-text editor for Flutter. The AppFlowy Editor project for AppFlowy and beyond.

Repository (GitHub)

Topics

#widget #editor #appflowy

Documentation

API reference

License

MPL-2.0, AGPL-3.0 (license)

Dependencies

collection, device_info_plus, diff_match_patch, file_picker, flutter, flutter_svg, html, http, intl, keyboard_height_plugin, logging, markdown, nanoid, numerus, pdf, provider, scroll_to_index, string_validator, universal_html, universal_platform, url_launcher

More

Packages that depend on appflowy_editor