diff --git a/lib/generated/intl/messages_en.dart b/lib/generated/intl/messages_en.dart index 60f02c7f..cdba49d8 100644 --- a/lib/generated/intl/messages_en.dart +++ b/lib/generated/intl/messages_en.dart @@ -289,7 +289,6 @@ class MessageLookup extends MessageLookupByLibrary { "takeSelect": MessageLookupByLibrary.simpleMessage("Take select"), "time": MessageLookupByLibrary.simpleMessage("Time"), "titleCourse": MessageLookupByLibrary.simpleMessage("Course"), - "titleNotification": MessageLookupByLibrary.simpleMessage("Notification"), "titleOther": MessageLookupByLibrary.simpleMessage("Other"), "titleScore": MessageLookupByLibrary.simpleMessage("Score"), "totalAverage": MessageLookupByLibrary.simpleMessage("Total average"), diff --git a/lib/generated/intl/messages_zh_TW.dart b/lib/generated/intl/messages_zh_TW.dart index 839f6481..76306249 100644 --- a/lib/generated/intl/messages_zh_TW.dart +++ b/lib/generated/intl/messages_zh_TW.dart @@ -274,7 +274,6 @@ class MessageLookup extends MessageLookupByLibrary { "takeSelect": MessageLookupByLibrary.simpleMessage("實得選修"), "time": MessageLookupByLibrary.simpleMessage("時間"), "titleCourse": MessageLookupByLibrary.simpleMessage("課表"), - "titleNotification": MessageLookupByLibrary.simpleMessage("訊息"), "titleOther": MessageLookupByLibrary.simpleMessage("其它"), "titleScore": MessageLookupByLibrary.simpleMessage("成績"), "totalAverage": MessageLookupByLibrary.simpleMessage("總平均"), diff --git a/lib/generated/l10n.dart b/lib/generated/l10n.dart index b7bcad38..871f887a 100644 --- a/lib/generated/l10n.dart +++ b/lib/generated/l10n.dart @@ -1208,16 +1208,6 @@ class S { ); } - /// `Notification` - String get titleNotification { - return Intl.message( - 'Notification', - name: 'titleNotification', - desc: '', - args: [], - ); - } - /// `Delete` String get delete { return Intl.message( diff --git a/lib/l10n/intl_en.arb b/lib/l10n/intl_en.arb index 0de91936..3375e59e 100644 --- a/lib/l10n/intl_en.arb +++ b/lib/l10n/intl_en.arb @@ -116,7 +116,6 @@ "fileNameAlreadyExists": "A File with that name already exists!", "renameItem": "Rename item", "rename": "Rename", - "titleNotification": "Notification", "delete": "Delete", "download": "download", "downloadWillStart": "Download ready to start", @@ -268,4 +267,4 @@ "nationalTaipeiUniversity": "NTPU", "taipeiMedicineUniversity": "TMU", "aduit": "Aduit" -} \ No newline at end of file +} diff --git a/lib/l10n/intl_zh_TW.arb b/lib/l10n/intl_zh_TW.arb index 2661478a..7638fd2c 100644 --- a/lib/l10n/intl_zh_TW.arb +++ b/lib/l10n/intl_zh_TW.arb @@ -116,7 +116,6 @@ "fileNameAlreadyExists": "檔案名稱已經存在!", "renameItem": "重新命名", "rename": "重新命名", - "titleNotification": "訊息", "delete": "刪除", "download": "下載", "downloadWillStart": "下載準備開始", @@ -268,4 +267,4 @@ "nationalTaipeiUniversity": "國立臺北大學", "taipeiMedicineUniversity": "臺北醫學大學", "aduit": "隨班附讀" -} \ No newline at end of file +} diff --git a/lib/ui/pages/notification/notification_page.dart b/lib/ui/pages/notification/notification_page.dart deleted file mode 100644 index 81cf5430..00000000 --- a/lib/ui/pages/notification/notification_page.dart +++ /dev/null @@ -1,38 +0,0 @@ -// TODO: remove sdk version selector after migrating to null-safety. -// @dart=2.10 -import 'package:flutter/material.dart'; -import 'package:flutter_app/src/r.dart'; - -class NotificationPage extends StatefulWidget { - const NotificationPage({Key key}) : super(key: key); - - @override - State createState() => _NotificationPageState(); -} - -class _NotificationPageState extends State with AutomaticKeepAliveClientMixin { - @override - Widget build(BuildContext context) { - super.build(context); - return Scaffold( - appBar: AppBar( - title: Text(R.current.titleNotification), - ), - body: Center( - child: Column( - mainAxisAlignment: MainAxisAlignment.center, - children: const [ - Icon(Icons.mark_chat_unread), - SizedBox(height: 20), - Text("訊息功能,即將登場!"), - SizedBox(height: 20), - Text("Coming soon!"), - ], - ), - ), - ); - } - - @override - bool get wantKeepAlive => true; -} diff --git a/lib/ui/screen/main_screen.dart b/lib/ui/screen/main_screen.dart index a65fbf9e..caac7922 100644 --- a/lib/ui/screen/main_screen.dart +++ b/lib/ui/screen/main_screen.dart @@ -15,7 +15,6 @@ import 'package:flutter_app/src/version/app_version.dart'; import 'package:flutter_app/ui/other/my_toast.dart'; import 'package:flutter_app/ui/pages/calendar/calendar_page.dart'; import 'package:flutter_app/ui/pages/coursetable/course_table_page.dart'; -import 'package:flutter_app/ui/pages/notification/notification_page.dart'; import 'package:flutter_app/ui/pages/other/other_page.dart'; import 'package:flutter_app/ui/pages/score/score_page.dart'; import 'package:provider/provider.dart'; @@ -77,7 +76,6 @@ class _MainScreenState extends State with RouteAware { setState(() { _pageList = []; _pageList.add(const CourseTablePage()); - _pageList.add(const NotificationPage()); _pageList.add(const CalendarPage()); _pageList.add(const ScoreViewerPage()); _pageList.add(OtherPage(_pageController)); @@ -149,12 +147,6 @@ class _MainScreenState extends State with RouteAware { ), label: R.current.titleCourse, ), - BottomNavigationBarItem( - icon: const Icon( - EvaIcons.emailOutline, - ), - label: R.current.titleNotification, - ), BottomNavigationBarItem( icon: const Icon( EvaIcons.calendarOutline,