mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2025-07-23 17:11:23 +00:00

* feat: update UI in settings page * feat: customzing font in document page * fix: flutter analyze and format issues
8 lines
229 B
Dart
8 lines
229 B
Dart
extension GoogleFontsParser on String {
|
|
String parseFontFamilyName() {
|
|
final camelCase = RegExp('(?<=[a-z])[A-Z]');
|
|
return replaceAll('_regular', '')
|
|
.replaceAllMapped(camelCase, (m) => ' ${m.group(0)}');
|
|
}
|
|
}
|