Android Feature Optimization and Updates
Build Android Release / Build Android (push) Failing after 7s
Build Android Release / Build Android (push) Failing after 7s
This commit is contained in:
@@ -13,6 +13,7 @@ import '../presentation/pages/preview/video_preview_page.dart';
|
||||
import '../presentation/pages/preview/audio_preview_page.dart';
|
||||
import '../presentation/pages/preview/document_preview_page.dart';
|
||||
import '../presentation/pages/preview/markdown_preview_page.dart';
|
||||
import '../presentation/pages/files/category_files_page.dart';
|
||||
import '../data/models/file_model.dart';
|
||||
|
||||
/// 路由名称
|
||||
@@ -33,6 +34,7 @@ class RouteNames {
|
||||
static const String audioPreview = '/audio-preview';
|
||||
static const String documentPreview = '/document-preview';
|
||||
static const String markdownPreview = '/markdown-preview';
|
||||
static const String categoryFiles = '/category-files';
|
||||
}
|
||||
|
||||
/// 应用路由
|
||||
@@ -189,6 +191,33 @@ class AppRouter {
|
||||
builder: (context) => MarkdownPreviewPage(file: file),
|
||||
);
|
||||
|
||||
case RouteNames.categoryFiles:
|
||||
final args = settings.arguments;
|
||||
if (args is CategoryFilesPageArgs) {
|
||||
return MaterialPageRoute(
|
||||
settings: settings,
|
||||
builder: (context) => CategoryFilesPage(args: args),
|
||||
);
|
||||
}
|
||||
if (args is Map<String, dynamic>) {
|
||||
return MaterialPageRoute(
|
||||
settings: settings,
|
||||
builder: (context) =>
|
||||
CategoryFilesPage(args: CategoryFilesPageArgs.fromMap(args)),
|
||||
);
|
||||
}
|
||||
return MaterialPageRoute(
|
||||
settings: settings,
|
||||
builder: (context) => const CategoryFilesPage(
|
||||
args: CategoryFilesPageArgs(
|
||||
category: 'image',
|
||||
title: '图片',
|
||||
icon: Icons.image,
|
||||
color: Color(0xFFF0ABFC),
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
default:
|
||||
return MaterialPageRoute(
|
||||
settings: settings,
|
||||
|
||||
Reference in New Issue
Block a user