Skip to content

Commit

Permalink
Release beta 0.10.1
Browse files Browse the repository at this point in the history
  • Loading branch information
robertodoering committed Dec 27, 2022
1 parent 1381884 commit 358d4b2
Show file tree
Hide file tree
Showing 8 changed files with 29 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Version 0.10.1
2022-12-27

- Fix unable to view an authenticated users own protected profile
- Small webview style improvements
5 changes: 5 additions & 0 deletions android/fastlane/metadata/android/pro/en-US/changelogs/94.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Version 0.10.1
2022-12-27

- Fix unable to view an authenticated users own protected profile
- Small webview style improvements
8 changes: 4 additions & 4 deletions android/version.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
freeVersionName=0.10.0
freeVersionCode=93
proVersionName=0.10.0
proVersionCode=93
freeVersionName=0.10.1
freeVersionCode=94
proVersionName=0.10.1
proVersionCode=94
5 changes: 5 additions & 0 deletions assets/changelogs/94.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Version 0.10.1
2022-12-27

- Fix unable to view an authenticated users own protected profile
- Small webview style improvements
6 changes: 5 additions & 1 deletion lib/components/pages/user/widgets/user_page_connections.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,18 @@ class UserPageConnections extends StatelessWidget {
const UserPageConnections({
required this.user,
required this.relationship,
required this.isAuthenticatedUser,
});

final UserData user;
final RelationshipData? relationship;
final bool isAuthenticatedUser;

@override
Widget build(BuildContext context) {
final enableTap = !user.isProtected || (relationship?.following ?? true);
final enableTap = isAuthenticatedUser ||
!user.isProtected ||
(relationship?.following ?? true);

return Row(
children: [
Expand Down
1 change: 1 addition & 0 deletions lib/components/pages/user/widgets/user_page_header.dart
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ class UserPageHeader extends StatelessWidget {
UserPageConnections(
user: data.user,
relationship: data.relationship,
isAuthenticatedUser: isAuthenticatedUser,
),
],
),
Expand Down
5 changes: 3 additions & 2 deletions lib/components/pages/user/widgets/user_page_tab_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,9 @@ class UserPageTabView extends ConsumerWidget {
final theme = Theme.of(context);
final mediaQuery = MediaQuery.of(context);

final canViewProfile =
!data.user.isProtected || (data.relationship?.following ?? true);
final canViewProfile = isAuthenticatedUser ||
!data.user.isProtected ||
(data.relationship?.following ?? true);

final children = [
if (!canViewProfile)
Expand Down
2 changes: 1 addition & 1 deletion lib/components/webview/webview_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ class _WebView extends StatelessWidget {
duration: theme.animation.short,
child: state.loading
? LinearProgressIndicator(
value: state.progress / 100,
value: state.loading ? state.progress / 100 : 1,
backgroundColor: Colors.transparent,
)
: null,
Expand Down

0 comments on commit 358d4b2

Please sign in to comment.