feat: přidat projekt

This commit is contained in:
Matyáš Caras 2023-02-10 15:53:42 +01:00
commit 95b26b4063
42 changed files with 5261 additions and 0 deletions

12
lib/utils/dokument.dart Normal file
View file

@ -0,0 +1,12 @@
import 'package:fleather/fleather.dart';
extension ActualJson on ParchmentDocument {
List<Map<String, dynamic>> toActualJson() {
var out = <Map<String, dynamic>>[];
var d = toDelta().toList();
for (var element in d) {
out.add(element.toJson());
}
return out;
}
}