Skip to content

Commit c082900

Browse files
authored
Remove my feed screen (#209)
1 parent b733e86 commit c082900

17 files changed

+3
-209
lines changed

lib/config.encrypted.dart

-36 Bytes
Binary file not shown.

lib/l10n/intl_en.arb

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -299,13 +299,6 @@
299299
"placeholders_order": [],
300300
"placeholders": {}
301301
},
302-
"myFeed": "My Feed",
303-
"@myFeed": {
304-
"description": "My feed appbar title",
305-
"type": "text",
306-
"placeholders_order": [],
307-
"placeholders": {}
308-
},
309302
"navLowercaseNext": "next",
310303
"@navLowercaseNext": {
311304
"type": "text",

lib/l10n/intl_messages.arb

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"@@last_modified": "2023-08-13T21:27:18.604523",
2+
"@@last_modified": "2023-08-13T22:12:24.149517",
33
"@@locale": "messages",
44
"appTitle": "tinhte.vn Demo",
55
"@appTitle": {
@@ -299,13 +299,6 @@
299299
"placeholders_order": [],
300300
"placeholders": {}
301301
},
302-
"myFeed": "My Feed",
303-
"@myFeed": {
304-
"description": "My feed appbar title",
305-
"type": "text",
306-
"placeholders_order": [],
307-
"placeholders": {}
308-
},
309302
"navLowercaseNext": "next",
310303
"@navLowercaseNext": {
311304
"type": "text",

lib/l10n/intl_vi.arb

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -244,12 +244,6 @@
244244
"type": "text",
245245
"placeholders": {}
246246
},
247-
"myFeed": "Cá nhân",
248-
"@myFeed": {
249-
"description": "My feed appbar title",
250-
"type": "text",
251-
"placeholders": {}
252-
},
253247
"navLowercaseNext": "tiếp",
254248
"@navLowercaseNext": {
255249
"type": "text",

lib/l10n/messages_en.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@ class MessageLookup extends MessageLookupByLibrary {
9595
"menuDeveloperCrashTest" : MessageLookupByLibrary.simpleMessage("Crash Test"),
9696
"menuDeveloperShowPerformanceOverlay" : MessageLookupByLibrary.simpleMessage("Show Performance Overlay"),
9797
"menuLogout" : MessageLookupByLibrary.simpleMessage("Logout"),
98-
"myFeed" : MessageLookupByLibrary.simpleMessage("My Feed"),
9998
"navLowercaseNext" : MessageLookupByLibrary.simpleMessage("next"),
10099
"navLowercasePrevious" : MessageLookupByLibrary.simpleMessage("previous"),
101100
"navPageX" : m7,

lib/l10n/messages_messages.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@ class MessageLookup extends MessageLookupByLibrary {
9595
"menuDeveloperCrashTest" : MessageLookupByLibrary.simpleMessage("Crash Test"),
9696
"menuDeveloperShowPerformanceOverlay" : MessageLookupByLibrary.simpleMessage("Show Performance Overlay"),
9797
"menuLogout" : MessageLookupByLibrary.simpleMessage("Logout"),
98-
"myFeed" : MessageLookupByLibrary.simpleMessage("My Feed"),
9998
"navLowercaseNext" : MessageLookupByLibrary.simpleMessage("next"),
10099
"navLowercasePrevious" : MessageLookupByLibrary.simpleMessage("previous"),
101100
"navPageX" : m7,

lib/l10n/messages_vi.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@ class MessageLookup extends MessageLookupByLibrary {
9595
"menuDeveloperCrashTest" : MessageLookupByLibrary.simpleMessage("Thử crash app"),
9696
"menuDeveloperShowPerformanceOverlay" : MessageLookupByLibrary.simpleMessage("Hiển thị đồ thị hiệu năng"),
9797
"menuLogout" : MessageLookupByLibrary.simpleMessage("Thoát"),
98-
"myFeed" : MessageLookupByLibrary.simpleMessage("Cá nhân"),
9998
"navLowercaseNext" : MessageLookupByLibrary.simpleMessage("tiếp"),
10099
"navLowercasePrevious" : MessageLookupByLibrary.simpleMessage("trước"),
101100
"navPageX" : m7,

lib/src/config.dart

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@ abstract class ConfigBase {
3030
bool get loginWithApple => false;
3131
bool get loginWithGoogle => false;
3232

33-
bool get myFeed => false;
34-
3533
bool get threadWidgetShowCoverImageOnly => true;
3634
}
3735

lib/src/intl.dart

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -195,9 +195,6 @@ class L10n {
195195
String get menuLogout =>
196196
Intl.message('Logout', locale: localeName, name: 'menuLogout');
197197

198-
String get myFeed => Intl.message('My Feed',
199-
desc: 'My feed appbar title', locale: localeName, name: 'myFeed');
200-
201198
String get navLowercaseNext =>
202199
Intl.message('next', locale: localeName, name: 'navLowercaseNext');
203200

lib/src/screens/menu.dart

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import 'package:provider/provider.dart';
33
import 'package:the_api/user.dart';
44
import 'package:the_app/src/intl.dart';
55
import 'package:the_app/src/screens/bookmark_list.dart';
6-
import 'package:the_app/src/screens/my_feed.dart';
76
import 'package:the_app/src/screens/notification_list.dart';
87
import 'package:the_app/src/widgets/menu/dark_theme.dart';
98
import 'package:the_app/src/widgets/app_bar.dart';
@@ -26,7 +25,6 @@ class MenuScreen extends StatelessWidget {
2625
const AppBarDrawerHeader(),
2726
const MenuDarkTheme(),
2827
_buildBookmarkList(context, user),
29-
_buildMyFeed(context, user),
3028
_buildNotifications(context, user),
3129
const AppBarDrawerFooter(),
3230
_buildPrivacyPolicy(context),
@@ -46,15 +44,6 @@ class MenuScreen extends StatelessWidget {
4644
)
4745
: const SizedBox.shrink();
4846

49-
Widget _buildMyFeed(BuildContext context, User user) =>
50-
config.myFeed == true && user.userId > 0
51-
? ListTile(
52-
title: Text(l(context).myFeed),
53-
onTap: () => Navigator.of(context).push(
54-
MaterialPageRoute(builder: (_) => const MyFeedScreen())),
55-
)
56-
: const SizedBox.shrink();
57-
5847
Widget _buildNotifications(BuildContext context, User user) => user.userId > 0
5948
? ListTile(
6049
title: Text(l(context).notifications),

0 commit comments

Comments
 (0)