refactor(desktop): reorganize workspace panels and navigation
This commit is contained in:
1 parent
826745b407
commit
1f73765745
92 files changed
+5811
-2650
No files matched your search
@@ -1,3 +1,4 @@
|
||||
import 'package:cutdex/shared/widgets/error_notification_host.dart';
|
||||
import 'package:cutdex/errors/app_failure.dart';
|
||||
|
||||
import 'package:cutdex/app/editor_theme.dart';
|
||||
@@ -523,6 +524,7 @@ void main() {
|
||||
UncontrolledProviderScope(
|
||||
container: container,
|
||||
child: MaterialApp.router(
|
||||
builder: (context, child) => ErrorNotificationHost(child: child!),
|
||||
localizationsDelegates: AppLocalizations.localizationsDelegates,
|
||||
supportedLocales: AppLocalizations.supportedLocales,
|
||||
locale: const Locale('zh'),
|
||||
@@ -584,6 +586,7 @@ void main() {
|
||||
UncontrolledProviderScope(
|
||||
container: container,
|
||||
child: MaterialApp.router(
|
||||
builder: (context, child) => ErrorNotificationHost(child: child!),
|
||||
localizationsDelegates: AppLocalizations.localizationsDelegates,
|
||||
supportedLocales: AppLocalizations.supportedLocales,
|
||||
locale: const Locale('zh'),
|
||||
@@ -638,6 +641,7 @@ void main() {
|
||||
UncontrolledProviderScope(
|
||||
container: container,
|
||||
child: MaterialApp.router(
|
||||
builder: (context, child) => ErrorNotificationHost(child: child!),
|
||||
localizationsDelegates: AppLocalizations.localizationsDelegates,
|
||||
supportedLocales: AppLocalizations.supportedLocales,
|
||||
locale: const Locale('zh'),
|
||||
@@ -652,10 +656,7 @@ void main() {
|
||||
expect(tester.getTopRight(find.byIcon(Icons.close)).dx, lessThan(1200));
|
||||
await tester.tap(find.byIcon(Icons.close));
|
||||
await tester.pump(const Duration(milliseconds: 200));
|
||||
final opacity = tester.widgetList<AnimatedOpacity>(
|
||||
find.byType(AnimatedOpacity),
|
||||
);
|
||||
expect(opacity.any((widget) => widget.opacity == 0), isTrue);
|
||||
expect(find.byKey(const Key('global-error-notification')), findsNothing);
|
||||
await tester.pumpWidget(const SizedBox());
|
||||
container.dispose();
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user