mirror of
https://github.com/qinglong-app/qinglong_app.git
synced 2025-10-09 16:48:19 +08:00
task log
This commit is contained in:
@@ -29,7 +29,7 @@ class QlAppBar extends StatelessWidget with PreferredSizeWidget {
|
||||
child: const Center(
|
||||
child: Icon(
|
||||
CupertinoIcons.left_chevron,
|
||||
size: 20,
|
||||
color: Colors.white,
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
@@ -6,6 +6,8 @@ import 'package:qinglong_app/module/env/env_bean.dart';
|
||||
import 'package:qinglong_app/module/home/home_page.dart';
|
||||
import 'package:qinglong_app/module/login/login_page.dart';
|
||||
import 'package:qinglong_app/module/others/login_log/login_log_page.dart';
|
||||
import 'package:qinglong_app/module/others/task_log/task_log_detail_page.dart';
|
||||
import 'package:qinglong_app/module/others/task_log/task_log_page.dart';
|
||||
import 'package:qinglong_app/module/task/add_task_page.dart';
|
||||
import 'package:qinglong_app/module/task/task_bean.dart';
|
||||
|
||||
@@ -16,6 +18,8 @@ class Routes {
|
||||
static const String routeAddEnv = "/env/add";
|
||||
static const String routeConfigEdit = "/config/edit";
|
||||
static const String routeLoginLog = "/log/login";
|
||||
static const String routeTaskLog = "/log/task";
|
||||
static const String routeTaskLogDetail = "/log/taskDetail";
|
||||
|
||||
static Route<dynamic>? generateRoute(RouteSettings settings) {
|
||||
switch (settings.name) {
|
||||
@@ -52,6 +56,15 @@ class Routes {
|
||||
return CupertinoPageRoute(
|
||||
builder: (context) => const LoginLogPage(),
|
||||
);
|
||||
case routeTaskLog:
|
||||
return CupertinoPageRoute(
|
||||
builder: (context) => const TaskLogPage(),
|
||||
);
|
||||
case routeTaskLogDetail:
|
||||
return CupertinoPageRoute(
|
||||
builder: (context) => TaskLogDetailPage(
|
||||
title: settings.arguments as String,
|
||||
));
|
||||
}
|
||||
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user