mirror of
https://github.com/zapstore/zapstore.git
synced 2026-10-05 20:48:24 +00:00
Follows who follow naming
This commit is contained in:
@@ -6,8 +6,8 @@ import 'package:zapstore/models/user.dart';
|
||||
import 'package:zapstore/screens/settings_screen.dart';
|
||||
import 'package:zapstore/widgets/users_rich_text.dart';
|
||||
|
||||
class WebOfTrustContainer extends HookConsumerWidget {
|
||||
const WebOfTrustContainer({
|
||||
class FollowsWhoFollowContainer extends HookConsumerWidget {
|
||||
const FollowsWhoFollowContainer({
|
||||
super.key,
|
||||
required this.fromNpub,
|
||||
required this.toNpub,
|
||||
@@ -26,8 +26,7 @@ class WebOfTrustContainer extends HookConsumerWidget {
|
||||
AsyncData<List<User>>(value: final trustedUsers) => Builder(
|
||||
builder: (context) {
|
||||
if (trustedUsers.isEmpty) {
|
||||
return Text(
|
||||
'No trusted users between you and the signer. (This may be a service error)');
|
||||
return Text('You don\'t follow any users who follow the signer.');
|
||||
}
|
||||
|
||||
return UsersRichText(
|
||||
@@ -39,14 +38,14 @@ class WebOfTrustContainer extends HookConsumerWidget {
|
||||
},
|
||||
),
|
||||
AsyncError(:final error) =>
|
||||
Center(child: Text('Error checking web of trust: $error')),
|
||||
Center(child: Text('Error connecting with web of trust DVM: $error')),
|
||||
// Loading state
|
||||
_ => Center(
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.all(24),
|
||||
child: Column(
|
||||
children: [
|
||||
Text('Loading web of trust...'),
|
||||
Text('Loading profiles in your web of trust...'),
|
||||
Gap(10),
|
||||
SmallCircularProgressIndicator(),
|
||||
],
|
||||
@@ -7,7 +7,7 @@ import 'package:zapstore/models/app.dart';
|
||||
import 'package:zapstore/models/user.dart';
|
||||
import 'package:zapstore/widgets/sign_in_container.dart';
|
||||
import 'package:zapstore/widgets/author_container.dart';
|
||||
import 'package:zapstore/widgets/wot_container.dart';
|
||||
import 'package:zapstore/widgets/follows_who_follow_container.dart';
|
||||
|
||||
class InstallAlertDialog extends HookConsumerWidget {
|
||||
const InstallAlertDialog({
|
||||
@@ -43,13 +43,13 @@ class InstallAlertDialog extends HookConsumerWidget {
|
||||
oneLine: true),
|
||||
Gap(20),
|
||||
if (app.signer.value != null)
|
||||
WebOfTrustContainer(
|
||||
FollowsWhoFollowContainer(
|
||||
fromNpub: signedInUser?.npub ?? kFranzapPubkey.npub,
|
||||
toNpub: app.signer.value!.npub,
|
||||
),
|
||||
if (signedInUser == null)
|
||||
SignInButton(
|
||||
label: 'Sign in to view your web of trust',
|
||||
label: 'Sign in to view profiles in your web of trust',
|
||||
minimal: true,
|
||||
),
|
||||
Gap(16),
|
||||
|
||||
Reference in New Issue
Block a user