Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 13 additions & 11 deletions team_b/yappy/lib/home_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -92,19 +92,21 @@ class _HomePageState extends State<HomePage> {
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()),
],
),
),
);
}
Expand Down
14 changes: 9 additions & 5 deletions team_b/yappy/lib/tutorial_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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,
),
],
),
],)
)

),
),
Expand Down
1 change: 1 addition & 0 deletions team_b/yappy/test/home_page_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down
Loading