From 1f349f2887d59240c6732550557b3e83d230a805 Mon Sep 17 00:00:00 2001 From: jasonchenwork Date: Tue, 3 Jun 2025 10:08:13 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AA=BF=E6=95=B4=E7=89=88=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/edit_profile.dart | 16 ---------------- lib/message_page.dart | 5 ++++- test/widget_test.dart | 30 ------------------------------ 3 files changed, 4 insertions(+), 47 deletions(-) delete mode 100644 test/widget_test.dart diff --git a/lib/edit_profile.dart b/lib/edit_profile.dart index a9653c7..6021628 100644 --- a/lib/edit_profile.dart +++ b/lib/edit_profile.dart @@ -108,22 +108,6 @@ class _EditProfilePageState extends State { ], ), ), - bottomNavigationBar: BottomNavigationBar( - type: BottomNavigationBarType.fixed, - items: const [ - BottomNavigationBarItem(icon: Icon(Icons.home), label: '首頁'), - BottomNavigationBarItem( - icon: Icon(Icons.door_front_door), - label: '出入', - ), - BottomNavigationBarItem(icon: Icon(Icons.message), label: '訊息'), - BottomNavigationBarItem(icon: Icon(Icons.person), label: '住戶'), - ], - currentIndex: 3, - onTap: (index) { - // Add navigation logic here if needed - }, - ), ); } diff --git a/lib/message_page.dart b/lib/message_page.dart index 075b1c7..511ee97 100644 --- a/lib/message_page.dart +++ b/lib/message_page.dart @@ -153,7 +153,10 @@ class _MessagePageState extends State { borderRadius: BorderRadius.circular(20), ), ), - child: const Text('發送'), + child: const Text( + '發送', + style: TextStyle(fontSize: 16, color: Colors.white), + ), ), ], ), diff --git a/test/widget_test.dart b/test/widget_test.dart deleted file mode 100644 index 3bf0861..0000000 --- a/test/widget_test.dart +++ /dev/null @@ -1,30 +0,0 @@ -// This is a basic Flutter widget test. -// -// To perform an interaction with a widget in your test, use the WidgetTester -// utility in the flutter_test package. For example, you can send tap and scroll -// gestures. You can also use WidgetTester to find child widgets in the widget -// tree, read text, and verify that the values of widget properties are correct. - -import 'package:flutter/material.dart'; -import 'package:flutter_test/flutter_test.dart'; - -import 'package:communityapp/main.dart'; - -void main() { - testWidgets('Counter increments smoke test', (WidgetTester tester) async { - // Build our app and trigger a frame. - await tester.pumpWidget(const MyApp()); - - // Verify that our counter starts at 0. - expect(find.text('0'), findsOneWidget); - expect(find.text('1'), findsNothing); - - // Tap the '+' icon and trigger a frame. - await tester.tap(find.byIcon(Icons.add)); - await tester.pump(); - - // Verify that our counter has incremented. - expect(find.text('0'), findsNothing); - expect(find.text('1'), findsOneWidget); - }); -}