mirror of
https://github.com/simon-ding/polaris.git
synced 2026-06-08 11:07:42 +08:00
feat: add search to right panel
This commit is contained in:
@@ -17,7 +17,7 @@ class ActivityPage extends ConsumerWidget {
|
||||
return SingleChildScrollView(
|
||||
child: DataTable(
|
||||
columns: const [
|
||||
DataColumn(label: Text("id"), numeric: true),
|
||||
DataColumn(label: Text("#"), numeric: true),
|
||||
DataColumn(label: Text("名称")),
|
||||
DataColumn(label: Text("开始时间")),
|
||||
DataColumn(label: Text("状态")),
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:go_router/go_router.dart';
|
||||
import 'package:ui/activity.dart';
|
||||
import 'package:ui/search.dart';
|
||||
import 'package:ui/system_settings.dart';
|
||||
import 'package:ui/weclome.dart';
|
||||
|
||||
@@ -34,8 +35,10 @@ class _NavDrawerState extends State<NavDrawer> {
|
||||
if (value == 0) {
|
||||
context.go(WelcomePage.route);
|
||||
} else if (value == 1) {
|
||||
context.go(ActivityPage.route);
|
||||
context.go(SearchPage.route);
|
||||
} else if (value == 2) {
|
||||
context.go(ActivityPage.route);
|
||||
} else if (value == 3) {
|
||||
context.go(SystemSettingsPage.route);
|
||||
}
|
||||
},
|
||||
@@ -46,6 +49,10 @@ class _NavDrawerState extends State<NavDrawer> {
|
||||
icon: Icon(Icons.live_tv),
|
||||
label: Text('电视剧'),
|
||||
),
|
||||
NavigationRailDestination(
|
||||
icon: Icon(Icons.search),
|
||||
label: Text('搜索'),
|
||||
),
|
||||
NavigationRailDestination(
|
||||
icon: Icon(Icons.download),
|
||||
label: Text('活动'),
|
||||
|
||||
Reference in New Issue
Block a user