mirror of
https://github.com/krille-chan/fluffychat
synced 2024-09-10 13:05:11 +00:00
chore: Follow up new chat design
This commit is contained in:
parent
d8cc1bdf25
commit
0d9cb4915d
2 changed files with 17 additions and 18 deletions
|
@ -1,5 +1,3 @@
|
||||||
import 'package:fluffychat/utils/error_reporter.dart';
|
|
||||||
import 'package:fluffychat/utils/localized_exception_extension.dart';
|
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
|
||||||
import 'package:adaptive_dialog/adaptive_dialog.dart';
|
import 'package:adaptive_dialog/adaptive_dialog.dart';
|
||||||
|
@ -10,7 +8,9 @@ import 'package:matrix/encryption.dart';
|
||||||
import 'package:matrix/matrix.dart';
|
import 'package:matrix/matrix.dart';
|
||||||
|
|
||||||
import 'package:fluffychat/config/themes.dart';
|
import 'package:fluffychat/config/themes.dart';
|
||||||
|
import 'package:fluffychat/utils/error_reporter.dart';
|
||||||
import 'package:fluffychat/utils/fluffy_share.dart';
|
import 'package:fluffychat/utils/fluffy_share.dart';
|
||||||
|
import 'package:fluffychat/utils/localized_exception_extension.dart';
|
||||||
import 'package:fluffychat/utils/platform_infos.dart';
|
import 'package:fluffychat/utils/platform_infos.dart';
|
||||||
import '../../utils/adaptive_bottom_sheet.dart';
|
import '../../utils/adaptive_bottom_sheet.dart';
|
||||||
import '../key_verification/key_verification_dialog.dart';
|
import '../key_verification/key_verification_dialog.dart';
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
import 'dart:math';
|
|
||||||
|
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
|
||||||
import 'package:flutter_gen/gen_l10n/l10n.dart';
|
import 'package:flutter_gen/gen_l10n/l10n.dart';
|
||||||
|
@ -25,8 +23,6 @@ class NewPrivateChatView extends StatelessWidget {
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
final searchResponse = controller.searchResponse;
|
final searchResponse = controller.searchResponse;
|
||||||
final qrCodeSize =
|
|
||||||
min(MediaQuery.of(context).size.width - 16, 256).toDouble();
|
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
scrolledUnderElevation: 0,
|
scrolledUnderElevation: 0,
|
||||||
|
@ -157,19 +153,22 @@ class NewPrivateChatView extends StatelessWidget {
|
||||||
title: Text(L10n.of(context)!.createGroup),
|
title: Text(L10n.of(context)!.createGroup),
|
||||||
onTap: () => context.go('/rooms/newgroup'),
|
onTap: () => context.go('/rooms/newgroup'),
|
||||||
),
|
),
|
||||||
const SizedBox(height: 24),
|
|
||||||
Center(
|
Center(
|
||||||
child: Material(
|
child: Padding(
|
||||||
borderRadius: BorderRadius.circular(12),
|
padding: const EdgeInsets.all(64.0),
|
||||||
elevation: 10,
|
child: Material(
|
||||||
color: Colors.white,
|
borderRadius: BorderRadius.circular(12),
|
||||||
shadowColor: Theme.of(context).appBarTheme.shadowColor,
|
elevation: 10,
|
||||||
clipBehavior: Clip.hardEdge,
|
color: Colors.white,
|
||||||
child: QrImageView(
|
shadowColor:
|
||||||
data:
|
Theme.of(context).appBarTheme.shadowColor,
|
||||||
'https://matrix.to/#/${Matrix.of(context).client.userID}',
|
clipBehavior: Clip.hardEdge,
|
||||||
version: QrVersions.auto,
|
child: QrImageView(
|
||||||
size: qrCodeSize,
|
data:
|
||||||
|
'https://matrix.to/#/${Matrix.of(context).client.userID}',
|
||||||
|
version: QrVersions.auto,
|
||||||
|
// size: qrCodeSize,
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
Loading…
Reference in a new issue