Move editor UI into the app and release verified Core dependencies (#14)
Gitea CI / Assemble and validate CI artifacts (push) Successful in 1m47s
Gitea CI / Check code and tests (push) Successful in 7m15s
Gitea CI / Build Android APK (push) Successful in 4m6s
Gitea CI / Build Windows x64 app (push) Successful in 3m34s
Gitea CI / Audit and package Windows x64 (push) Successful in 1m29s
Gitea CI / Gitea CI passed (push) Successful in 1s
Gitea Release / Prepare draft Release (push) Failing after 8s
Gitea Release / Upload Android to draft Release (push) Skipped
Gitea Release / Upload Windows to draft Release (push) Skipped
Gitea Release / Verify and publish Release (push) Skipped
Gitea CI / Assemble and validate CI artifacts (push) Successful in 1m47s
Gitea CI / Check code and tests (push) Successful in 7m15s
Gitea CI / Build Android APK (push) Successful in 4m6s
Gitea CI / Build Windows x64 app (push) Successful in 3m34s
Gitea CI / Audit and package Windows x64 (push) Successful in 1m29s
Gitea CI / Gitea CI passed (push) Successful in 1s
Gitea Release / Prepare draft Release (push) Failing after 8s
Gitea Release / Upload Android to draft Release (push) Skipped
Gitea Release / Upload Windows to draft Release (push) Skipped
Gitea Release / Verify and publish Release (push) Skipped
This commit was merged in pull request #14.
This commit is contained in:
1 parent
abc1868550
commit
06f1c26681
452 files changed
+43806
-2329
No files matched your search
+37
-24
@@ -16,8 +16,8 @@ import 'package:cutdex/workspace/project_state.dart';
|
||||
import 'package:cutdex/workspace/media_file_extensions.dart';
|
||||
import 'package:cutdex/workspace/media_import.dart';
|
||||
import 'package:cutdex/workspace/media_availability.dart';
|
||||
import 'package:cutdex_sdk/project.dart';
|
||||
import 'package:cutdex_sdk/runtime.dart';
|
||||
import 'package:cutdex_core/project.dart';
|
||||
import 'package:cutdex_native_flutter/cutdex_native_flutter.dart';
|
||||
import 'package:cutdex/integrations/platform/native_project_drop_region.dart';
|
||||
import 'package:flutter/gestures.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
@@ -679,13 +679,13 @@ void main() {
|
||||
final sortButton = tester.getRect(
|
||||
find.byKey(const Key('media-sort-button')),
|
||||
);
|
||||
expect(header.height, 76);
|
||||
expect(importButton.height, 28);
|
||||
expect(header.height, 64);
|
||||
expect(importButton.height, 24);
|
||||
expect(importButton.top - header.top, 4);
|
||||
expect(header.right - importButton.right, 12);
|
||||
expect(header.right - layoutButton.right, 12);
|
||||
expect(header.right - importButton.right, 8);
|
||||
expect(header.right - layoutButton.right, 8);
|
||||
expect(sortButton.top, layoutButton.top);
|
||||
expect(layoutButton.left - sortButton.right, 36);
|
||||
expect(layoutButton.left - sortButton.right, 40);
|
||||
expect(find.byKey(const Key('media-category-button')), findsOneWidget);
|
||||
expect(find.byKey(const ValueKey('media-filter-image')), findsNothing);
|
||||
expect(
|
||||
@@ -793,7 +793,7 @@ void main() {
|
||||
(tester.widget<GridView>(find.byType(GridView)).gridDelegate
|
||||
as SliverGridDelegateWithFixedCrossAxisCount)
|
||||
.crossAxisCount;
|
||||
expect(columns(), 1);
|
||||
expect(columns(), 2);
|
||||
expect(
|
||||
find.ancestor(
|
||||
of: find.byType(GridView),
|
||||
@@ -809,6 +809,18 @@ void main() {
|
||||
findsNothing,
|
||||
);
|
||||
final first = find.text('very-long-asset-name-0.png');
|
||||
final firstTile = find.byKey(
|
||||
const ValueKey('/originals/very-long-asset-name-0.png'),
|
||||
);
|
||||
final tileWidget = tester.widget(firstTile);
|
||||
await tester.binding.setSurfaceSize(const Size(520, 600));
|
||||
await tester.pumpAndSettle();
|
||||
expect(columns(), 4);
|
||||
expect(tester.widget(firstTile), same(tileWidget));
|
||||
await tester.binding.setSurfaceSize(const Size(280, 600));
|
||||
await tester.pumpAndSettle();
|
||||
expect(columns(), 2);
|
||||
expect(tester.widget(firstTile), same(tileWidget));
|
||||
await tester.tap(first);
|
||||
await tester.tap(find.byTooltip('列表布局'));
|
||||
await tester.pumpAndSettle();
|
||||
@@ -841,14 +853,15 @@ void main() {
|
||||
await tester.pumpAndSettle();
|
||||
for (final (width, count) in [
|
||||
(120.0, 1),
|
||||
(180.0, 1),
|
||||
(220.0, 1),
|
||||
(280.0, 1),
|
||||
(240.0, 1),
|
||||
(360.0, 2),
|
||||
(520.0, 3),
|
||||
(560.0, 3),
|
||||
(900.0, 5),
|
||||
(180.0, 2),
|
||||
(220.0, 2),
|
||||
(260.0, 2),
|
||||
(280.0, 2),
|
||||
(240.0, 2),
|
||||
(360.0, 3),
|
||||
(520.0, 4),
|
||||
(560.0, 5),
|
||||
(900.0, 7),
|
||||
]) {
|
||||
await tester.binding.setSurfaceSize(Size(width, 600));
|
||||
await tester.pumpAndSettle();
|
||||
@@ -862,7 +875,7 @@ void main() {
|
||||
padding.horizontal -
|
||||
delegate.crossAxisSpacing * (count - 1)) /
|
||||
count;
|
||||
expect(tileWidth, greaterThanOrEqualTo(width < 184 ? width - 24 : 160));
|
||||
expect(tileWidth, lessThanOrEqualTo(120));
|
||||
expect(tester.takeException(), isNull);
|
||||
}
|
||||
expect(
|
||||
@@ -894,11 +907,11 @@ void main() {
|
||||
(tester.widget<GridView>(find.byType(GridView)).gridDelegate
|
||||
as SliverGridDelegateWithFixedCrossAxisCount)
|
||||
.crossAxisCount;
|
||||
expect(columns(), 4);
|
||||
expect(columns(), 6);
|
||||
for (final (size, count) in [
|
||||
(MediaGridSize.small, 5),
|
||||
(MediaGridSize.large, 3),
|
||||
(MediaGridSize.medium, 4),
|
||||
(MediaGridSize.small, 7),
|
||||
(MediaGridSize.large, 5),
|
||||
(MediaGridSize.medium, 6),
|
||||
]) {
|
||||
await tester.tap(find.byKey(const Key('media-size-button')));
|
||||
await tester.pumpAndSettle();
|
||||
@@ -923,7 +936,7 @@ void main() {
|
||||
final container = await mount(tester);
|
||||
expect(
|
||||
tester.getSize(find.byKey(const Key('media-panel-header'))).height,
|
||||
76,
|
||||
64,
|
||||
);
|
||||
expect(
|
||||
tester.getSize(find.byKey(const Key('media-search'))).width,
|
||||
@@ -1044,9 +1057,9 @@ void main() {
|
||||
browser.gridSize = size;
|
||||
await tester.pump();
|
||||
final firstOffset = position().pixels;
|
||||
expect(firstOffset, lessThanOrEqualTo(position().maxScrollExtent));
|
||||
expect(firstOffset, lessThanOrEqualTo(position().maxScrollExtent + 1e-6));
|
||||
await tester.pumpAndSettle();
|
||||
expect(position().pixels, firstOffset);
|
||||
expect(position().pixels, closeTo(firstOffset, 1e-6));
|
||||
expect(
|
||||
tester
|
||||
.getRect(find.byKey(ValueKey(anchor.assetId)))
|
||||
|
||||
Reference in new issue
Block a user