From c50057c0e72a587943b677755f7ef5647300301f Mon Sep 17 00:00:00 2001 From: David Senk Date: Wed, 4 Sep 2024 18:48:19 -0400 Subject: [PATCH] 3 tab buttons! --- lib/HomePage.dart | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/lib/HomePage.dart b/lib/HomePage.dart index 21e7e28..1e75ecd 100644 --- a/lib/HomePage.dart +++ b/lib/HomePage.dart @@ -7,10 +7,17 @@ class HomePage extends StatelessWidget { @override Widget build(BuildContext context) { - return Scaffold( - bottomNavigationBar: BottomAppBar( - color: Theme.of(context).colorScheme.inversePrimary, - ), - ); + return DefaultTabController( + length: 3, + child: Scaffold( + bottomNavigationBar: BottomAppBar( + color: Theme.of(context).colorScheme.inversePrimary, + child: TabBar(tabs: [ + Placeholder(), + Placeholder(), + Placeholder(), + ]), + ), + )); } }