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