From 0cce4ffee00b7bd72cf7ad023a8fbc3289b103d5 Mon Sep 17 00:00:00 2001 From: Simon Ding Date: Mon, 12 Aug 2024 14:53:23 +0800 Subject: [PATCH] add button to appbar --- ui/lib/main.dart | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/ui/lib/main.dart b/ui/lib/main.dart index 34bd22f..34addce 100644 --- a/ui/lib/main.dart +++ b/ui/lib/main.dart @@ -186,8 +186,14 @@ class _MainSkeletonState extends State { backgroundColor: Theme.of(context).colorScheme.inversePrimary, // Here we take the value from the MyHomePage object that was created by // the App.build method, and use it to set our appbar title. - title: Text("Polaris"), - + title: TextButton( + onPressed: () => context.go(WelcomePage.routeTv), + child: Text( + "Polaris", + style: TextStyle(fontSize: 28), + ), + ), + actions: [ SearchAnchor( builder: (BuildContext context, SearchController controller) {