Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add MasterDetailPage.bottomBar #441

Merged
merged 1 commit into from Dec 2, 2022
Merged

Add MasterDetailPage.bottomBar #441

merged 1 commit into from Dec 2, 2022

Conversation

jpnurmi
Copy link
Member

@jpnurmi jpnurmi commented Dec 2, 2022

Allows inserting an arbitrary sticky item at the bottom of the master list, similar to the app bar at the top.

Close: #440

@jpnurmi
Copy link
Member Author

jpnurmi commented Dec 2, 2022

For the screenshot attached to #440 I used:

diff --git a/example/lib/example.dart b/example/lib/example.dart
index 074aca1..abaca1a 100644
--- a/example/lib/example.dart
+++ b/example/lib/example.dart
@@ -81,6 +81,22 @@ class _ExampleState extends State<Example> {
             appBar: AppBar(
               title: const Text('Example'),
             ),
+            bottomBar: BottomAppBar(
+              elevation: 0,
+              child: Column(
+                mainAxisSize: MainAxisSize.min,
+                children: const [
+                  Divider(height: 1),
+                  Padding(
+                    padding: EdgeInsets.symmetric(vertical: 8.0),
+                    child: YaruMasterTile(
+                      leading: Icon(YaruIcons.settings),
+                      title: Text('Settings'),
+                    ),
+                  ),
+                ],
+              ),
+            ),
           );
   }
 }

@Feichtmeier
Copy link
Member

That's a cool feature - thank you!

@Feichtmeier Feichtmeier merged commit 50c2195 into ubuntu:main Dec 2, 2022
@jpnurmi jpnurmi deleted the master-detail-bottom-bar branch December 2, 2022 20:54
@jpnurmi jpnurmi mentioned this pull request Jan 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Master-detail bottom bar
2 participants