mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2025-02-09 03:34:10 +01:00
feat: New chat design
This commit is contained in:
parent
fbb92cbfe1
commit
f03cc9b786
@ -14,9 +14,7 @@ class NewGroupView extends StatelessWidget {
|
|||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
leading: const BackButton(),
|
|
||||||
title: Text(L10n.of(context).createNewGroup),
|
title: Text(L10n.of(context).createNewGroup),
|
||||||
elevation: 0,
|
|
||||||
),
|
),
|
||||||
body: MaxWidthBody(
|
body: MaxWidthBody(
|
||||||
child: Column(
|
child: Column(
|
||||||
|
@ -26,7 +26,6 @@ class NewPrivateChatView extends StatelessWidget {
|
|||||||
leading: const BackButton(),
|
leading: const BackButton(),
|
||||||
title: Text(L10n.of(context).newChat),
|
title: Text(L10n.of(context).newChat),
|
||||||
backgroundColor: Theme.of(context).scaffoldBackgroundColor,
|
backgroundColor: Theme.of(context).scaffoldBackgroundColor,
|
||||||
elevation: 0,
|
|
||||||
actions: [
|
actions: [
|
||||||
TextButton(
|
TextButton(
|
||||||
onPressed: () => VRouter.of(context).to('/newgroup'),
|
onPressed: () => VRouter.of(context).to('/newgroup'),
|
||||||
@ -38,7 +37,8 @@ class NewPrivateChatView extends StatelessWidget {
|
|||||||
],
|
],
|
||||||
),
|
),
|
||||||
body: MaxWidthBody(
|
body: MaxWidthBody(
|
||||||
child: ListView(
|
withScrolling: true,
|
||||||
|
child: Column(
|
||||||
children: [
|
children: [
|
||||||
Container(
|
Container(
|
||||||
margin: const EdgeInsets.all(_qrCodePadding),
|
margin: const EdgeInsets.all(_qrCodePadding),
|
||||||
@ -64,15 +64,9 @@ class NewPrivateChatView extends StatelessWidget {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
const Divider(),
|
|
||||||
ListTile(
|
ListTile(
|
||||||
subtitle: Text(L10n.of(context).createNewChatExplaination),
|
subtitle: Text(L10n.of(context).createNewChatExplaination),
|
||||||
trailing: const Padding(
|
|
||||||
padding: EdgeInsets.all(8.0),
|
|
||||||
child: Icon(Icons.info_outline_rounded),
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
const Divider(),
|
|
||||||
Padding(
|
Padding(
|
||||||
padding: const EdgeInsets.all(12),
|
padding: const EdgeInsets.all(12),
|
||||||
child: Form(
|
child: Form(
|
||||||
|
@ -14,9 +14,7 @@ class NewSpaceView extends StatelessWidget {
|
|||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
leading: const BackButton(),
|
|
||||||
title: Text(L10n.of(context).createNewSpace),
|
title: Text(L10n.of(context).createNewSpace),
|
||||||
elevation: 0,
|
|
||||||
),
|
),
|
||||||
body: MaxWidthBody(
|
body: MaxWidthBody(
|
||||||
child: Column(
|
child: Column(
|
||||||
|
Loading…
Reference in New Issue
Block a user