mirror of
https://github.com/simon-ding/polaris.git
synced 2026-06-09 03:27:39 +08:00
add button to appbar
This commit is contained in:
@@ -186,8 +186,14 @@ class _MainSkeletonState extends State<MainSkeleton> {
|
|||||||
backgroundColor: Theme.of(context).colorScheme.inversePrimary,
|
backgroundColor: Theme.of(context).colorScheme.inversePrimary,
|
||||||
// Here we take the value from the MyHomePage object that was created by
|
// 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.
|
// 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: [
|
actions: [
|
||||||
SearchAnchor(
|
SearchAnchor(
|
||||||
builder: (BuildContext context, SearchController controller) {
|
builder: (BuildContext context, SearchController controller) {
|
||||||
|
|||||||
Reference in New Issue
Block a user