mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
feat: code block improvements (#5054)
* feat: prettify code block component + copy code * feat: search for languages in code block * feat: non-collapsed selection indentation in code block * fix: focus workaround for language search * feat: multi selection outdent * feat: add line numbering * feat: prefer built in mono font for code block * fix: add clamping physics to scrollview * feat: pseudo auto indent and fix rebuild issue * refactor: consolidate commands * fix: track cursor in code block * fix: no need to set selection on updating language
This commit is contained in:
@ -1,10 +1,12 @@
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
import 'package:appflowy_editor/appflowy_editor.dart';
|
||||
import 'package:flowy_infra/size.dart';
|
||||
import 'package:flowy_infra/theme.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:google_fonts/google_fonts.dart';
|
||||
|
||||
const builtInFontFamily = 'Poppins';
|
||||
const builtInCodeFontFamily = 'RobotoMono';
|
||||
|
||||
abstract class BaseAppearance {
|
||||
final white = const Color(0xFFFFFFFF);
|
||||
|
Reference in New Issue
Block a user