Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeDoctorDE committed Apr 7, 2024
1 parent fceea13 commit d59c17d
Show file tree
Hide file tree
Showing 6 changed files with 214 additions and 232 deletions.
2 changes: 1 addition & 1 deletion app/lib/api/changes.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import 'package:flutter/material.dart';
import 'package:flutter_gen/gen_l10n/app_localizations.dart';
import 'package:phosphor_flutter/phosphor_flutter.dart';

FutureOr<NoteData?> checkFileChanges(
Future<NoteData?> checkFileChanges(
BuildContext context, AppDocumentEntity? entity) async {
if (entity is! AppDocumentFile) return null;
final data = entity.load();
Expand Down
6 changes: 0 additions & 6 deletions app/lib/renderers/elements/shape.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,6 @@ class ShapeRenderer extends Renderer<ShapeElement> {

ShapeRenderer(super.element);

@override
FutureOr<void> setup(
NoteData document, AssetService assetService, DocumentPage page) async {
await super.setup(document, assetService, page);
}

@override
FutureOr<void> build(Canvas canvas, Size size, NoteData document,
DocumentPage page, DocumentInfo info, CameraTransform transform,
Expand Down
16 changes: 5 additions & 11 deletions app/lib/renderers/elements/texture.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,11 @@ class TextureRenderer extends Renderer<TextureElement> {
TextureRenderer(super.element);

@override
void setup(NoteData document, AssetService assetService, DocumentPage page) {
super.setup(document, assetService, page);
}

@override
FutureOr<void> build(Canvas canvas, Size size, NoteData document,
DocumentPage page, DocumentInfo info, CameraTransform transform,
[ColorScheme? colorScheme, bool foreground = false]) {
drawSurfaceTextureOnCanvas(
element.texture, canvas, 1, Offset.zero, rect.size, rect.topLeft);
}
void build(Canvas canvas, Size size, NoteData document, DocumentPage page,
DocumentInfo info, CameraTransform transform,
[ColorScheme? colorScheme, bool foreground = false]) =>
drawSurfaceTextureOnCanvas(
element.texture, canvas, 1, Offset.zero, rect.size, rect.topLeft);

@override
void buildSvg(XmlDocument xml, NoteData document, DocumentPage page,
Expand Down
18 changes: 9 additions & 9 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@
"write-heading-ids": "docusaurus write-heading-ids"
},
"dependencies": {
"@docusaurus/core": "3.2.0",
"@docusaurus/plugin-client-redirects": "3.2.0",
"@docusaurus/plugin-content-docs": "3.2.0",
"@docusaurus/plugin-pwa": "3.2.0",
"@docusaurus/preset-classic": "3.2.0",
"@docusaurus/theme-common": "3.2.0",
"@docusaurus/core": "3.2.1",
"@docusaurus/plugin-client-redirects": "3.2.1",
"@docusaurus/plugin-content-docs": "3.2.1",
"@docusaurus/plugin-pwa": "3.2.1",
"@docusaurus/preset-classic": "3.2.1",
"@docusaurus/theme-common": "3.2.1",
"@mdx-js/react": "^3.0.1",
"@phosphor-icons/react": "^2.1.4",
"@swc/core": "^1.4.12",
Expand Down Expand Up @@ -50,9 +50,9 @@
},
"packageManager": "[email protected]",
"devDependencies": {
"@docusaurus/module-type-aliases": "3.2.0",
"@docusaurus/tsconfig": "3.2.0",
"markdownlint-cli2": "^0.12.1",
"@docusaurus/module-type-aliases": "3.2.1",
"@docusaurus/tsconfig": "3.2.1",
"markdownlint-cli2": "^0.13.0",
"typescript": "^5.4.4",
"webpack": "^5.91.0"
}
Expand Down
Loading

0 comments on commit d59c17d

Please sign in to comment.