appflowy_code_block 1.1.1 copy "appflowy_code_block: ^1.1.1" to clipboard
appflowy_code_block: ^1.1.1 copied to clipboard

unlisted

CodeBlock Component that provides a rich code block using AppFlowy Editor.

example/lib/main.dart

import 'package:appflowy_editor/appflowy_editor.dart';
import 'package:flutter_localizations/flutter_localizations.dart';
import 'package:flutter/material.dart';

import 'pages/pages.dart';

void main() {
  runApp(const MyApp());
}

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Code Block Demo',
      localizationsDelegates: const [
        GlobalMaterialLocalizations.delegate,
        GlobalCupertinoLocalizations.delegate,
        GlobalWidgetsLocalizations.delegate,
        AppFlowyEditorLocalizations.delegate,
      ],
      supportedLocales: const [Locale('en', 'US')],
      theme: ThemeData(
        colorScheme: ColorScheme.fromSeed(
          seedColor: Colors.orange,
          brightness: Brightness.light,
        ),
        useMaterial3: true,
      ),
      home: const HomePage(),
    );
  }
}
4
likes
50
pub points
45%
popularity

Publisher

unverified uploader

CodeBlock Component that provides a rich code block using AppFlowy Editor.

Repository (GitHub)
View/report issues

License

MPL-2.0, AGPL-3.0 (LICENSE)

Dependencies

appflowy_editor, collection, file_picker, flutter, flutter_localizations, highlight, intl, intl_utils, markdown, path

More

Packages that depend on appflowy_code_block