From 472bb0ae89d2935d948bf46707db973a64a4e834 Mon Sep 17 00:00:00 2001 From: Stauntop-code Date: Tue, 25 Mar 2025 19:19:26 -0700 Subject: [PATCH 1/3] fixed home page --- team_b/yappy/lib/home_page.dart | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/team_b/yappy/lib/home_page.dart b/team_b/yappy/lib/home_page.dart index 578dc7d6..9c1e1be0 100644 --- a/team_b/yappy/lib/home_page.dart +++ b/team_b/yappy/lib/home_page.dart @@ -92,19 +92,21 @@ class _HomePageState extends State { return Scaffold( backgroundColor: const Color.fromARGB(255, 0, 0, 0), appBar: PreferredSize( - preferredSize: Size.fromHeight(140), + preferredSize: Size.fromHeight(MediaQuery.of(context).size.height * 0.2), child: ToolBar(showHamburger: false), // Using the ToolBar widget ), - body: Column( - children: [ - _buildButton('Restaurant', context, RestaurantPage()), - _buildButton('Vehicle Maintenance', context, MechanicalAidPage()), - _buildButton('Medical Doctor', context, MedicalDoctorPage()), - _buildButton('Medical Patient', context, MedicalPatientPage()), - _buildButton('Help', context, HelpPage()), - _buildButton('Contact', context, ContactPage()), - _buildButton('Settings', context, SettingsPage()), - ], + body: SingleChildScrollView( + child: Column( + children: [ + _buildButton('Restaurant', context, RestaurantPage()), + _buildButton('Vehicle Maintenance', context, MechanicalAidPage()), + _buildButton('Medical Doctor', context, MedicalDoctorPage()), + _buildButton('Medical Patient', context, MedicalPatientPage()), + _buildButton('Help', context, HelpPage()), + _buildButton('Contact', context, ContactPage()), + _buildButton('Settings', context, SettingsPage()), + ], + ), ), ); } From 7a748288b054c108a45389b7d397707b31ee00a2 Mon Sep 17 00:00:00 2001 From: Stauntop-code Date: Tue, 25 Mar 2025 21:00:40 -0700 Subject: [PATCH 2/3] fix --- team_b/yappy/lib/tutorial_page.dart | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/team_b/yappy/lib/tutorial_page.dart b/team_b/yappy/lib/tutorial_page.dart index 573204a1..d1327581 100644 --- a/team_b/yappy/lib/tutorial_page.dart +++ b/team_b/yappy/lib/tutorial_page.dart @@ -52,12 +52,16 @@ class TutorialPage extends StatelessWidget { Expanded( child: Padding( padding: const EdgeInsets.all(16.0), - child: Column(children: [ - AudiowaveWidget(speechState: speechState), - TranscriptionBox( - controller: speechState.controller, + child: SingleChildScrollView( + child: Column( + children: [ + AudiowaveWidget(speechState: speechState), + TranscriptionBox( + controller: speechState.controller, + ), + ], ), - ],) + ) ), ), From 96b39668d0df4ec68ae43ae05d85ebc486bad70e Mon Sep 17 00:00:00 2001 From: Stauntop-code Date: Wed, 26 Mar 2025 18:53:28 -0700 Subject: [PATCH 3/3] fixed home page --- team_b/yappy/test/home_page_test.dart | 1 + 1 file changed, 1 insertion(+) diff --git a/team_b/yappy/test/home_page_test.dart b/team_b/yappy/test/home_page_test.dart index 2d7fe19a..62b9fbe6 100644 --- a/team_b/yappy/test/home_page_test.dart +++ b/team_b/yappy/test/home_page_test.dart @@ -29,6 +29,7 @@ void main() { await tester.pumpWidget(MaterialApp(home: HomePage())); // Act + await tester.pump(); await tester.tap(find.text('Yes')); await tester.pumpAndSettle();