design: Chat list design adjustments
This commit is contained in:
parent
7faa01f67a
commit
6420f1d385
10 changed files with 50 additions and 37 deletions
|
|
@ -5,6 +5,7 @@ import 'package:flutter_gen/gen_l10n/l10n.dart';
|
|||
import 'package:share_plus/share_plus.dart';
|
||||
|
||||
import 'package:fluffychat/utils/platform_infos.dart';
|
||||
import '../widgets/matrix.dart';
|
||||
|
||||
abstract class FluffyShare {
|
||||
static Future<void> share(
|
||||
|
|
@ -27,4 +28,16 @@ abstract class FluffyShare {
|
|||
);
|
||||
return;
|
||||
}
|
||||
|
||||
static Future<void> shareInviteLink(BuildContext context) async {
|
||||
final client = Matrix.of(context).client;
|
||||
final ownProfile = await client.fetchOwnProfile();
|
||||
await FluffyShare.share(
|
||||
L10n.of(context)!.inviteText(
|
||||
ownProfile.displayName ?? client.userID!,
|
||||
'https://matrix.to/#/${client.userID}?client=im.fluffychat',
|
||||
),
|
||||
context,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -59,11 +59,11 @@ abstract class PlatformInfos {
|
|||
label: const Text(AppConfig.emojiFontName),
|
||||
),
|
||||
Builder(
|
||||
builder: (context) {
|
||||
builder: (innerContext) {
|
||||
return TextButton.icon(
|
||||
onPressed: () {
|
||||
Navigator.of(context).pop();
|
||||
context.go('/logs');
|
||||
Navigator.of(innerContext).pop();
|
||||
},
|
||||
icon: const Icon(Icons.list_outlined),
|
||||
label: const Text('Logs'),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue