Compare commits

...

3 Commits

Author SHA1 Message Date
e8c4e2b653 bumped version. 2022-05-23 11:56:57 -07:00
f6a92be68a fixed collapsed comments. 2022-05-23 11:56:30 -07:00
21c486b7cf fixed comment tile. 2022-05-23 11:52:51 -07:00
5 changed files with 25 additions and 21 deletions

View File

@ -0,0 +1,4 @@
- You can now participate in polls.
- Pick up where you left off.
- Swipe left on comment tile to view its parents without scrolling all the way up.
- Huge performance boost.

View File

@ -568,7 +568,7 @@
CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements;
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 2;
CURRENT_PROJECT_VERSION = 3;
DEVELOPMENT_TEAM = QMWX3X2NF7;
ENABLE_BITCODE = NO;
INFOPLIST_FILE = Runner/Info.plist;
@ -705,7 +705,7 @@
CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements;
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 2;
CURRENT_PROJECT_VERSION = 3;
DEVELOPMENT_TEAM = QMWX3X2NF7;
ENABLE_BITCODE = NO;
INFOPLIST_FILE = Runner/Info.plist;
@ -736,7 +736,7 @@
CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements;
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 2;
CURRENT_PROJECT_VERSION = 3;
DEVELOPMENT_TEAM = QMWX3X2NF7;
ENABLE_BITCODE = NO;
INFOPLIST_FILE = Runner/Info.plist;

View File

@ -89,6 +89,8 @@ class CommentsCubit extends Cubit<CommentsState> {
Future<void> refresh() async {
final bool offlineReading = await _cacheRepository.hasCachedStories;
_cacheService.resetCollapsedComments();
if (offlineReading) {
emit(
state.copyWith(

View File

@ -109,8 +109,6 @@ class CommentTile extends StatelessWidget {
: null,
child: InkWell(
onTap: () {
if (comment.deleted || comment.dead) return;
if (actionable) {
HapticFeedback.lightImpact();
context.read<CollapseCubit>().collapse();
@ -152,7 +150,21 @@ class CommentTile extends StatelessWidget {
],
),
),
if (comment.deleted)
if (actionable && state.collapsed)
Center(
child: Padding(
padding:
const EdgeInsets.only(bottom: 12),
child: Text(
'collapsed '
'(${state.collapsedCount + 1})',
style: const TextStyle(
color: Colors.orangeAccent,
),
),
),
)
else if (comment.deleted)
const Center(
child: Padding(
padding: EdgeInsets.only(bottom: 12),
@ -189,20 +201,6 @@ class CommentTile extends StatelessWidget {
),
),
)
else if (actionable && state.collapsed)
Center(
child: Padding(
padding:
const EdgeInsets.only(bottom: 12),
child: Text(
'collapsed '
'(${state.collapsedCount + 1})',
style: const TextStyle(
color: Colors.orangeAccent,
),
),
),
)
else
Padding(
padding: const EdgeInsets.only(

View File

@ -1,6 +1,6 @@
name: hacki
description: A Hacker News reader.
version: 0.2.8+44
version: 0.2.8+45
publish_to: none
environment: