appflowy_code_block 1.0.0 copy "appflowy_code_block: ^1.0.0" to clipboard
appflowy_code_block: ^1.0.0 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.purple),
        useMaterial3: true,
      ),
      home: const HomePage(),
    );
  }
}
4
likes
0
pub points
9%
popularity

Publisher

unverified uploader

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

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

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

More

Packages that depend on appflowy_code_block