Added 'JoinByCode' button on new group view (#2417)

* Added 'JoinByCode' button on new group view

* generated

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: ggurdin <46800240+ggurdin@users.noreply.github.com>
pull/1817/head
Sofanyas Genene 7 months ago committed by GitHub
parent a36a3417ba
commit ca1b03b9d6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -5,6 +5,7 @@ import 'package:flutter_gen/gen_l10n/l10n.dart';
import 'package:fluffychat/config/themes.dart';
import 'package:fluffychat/pages/new_group/new_group.dart';
import 'package:fluffychat/pangea/activity_suggestions/activity_suggestion_carousel.dart';
import 'package:fluffychat/pangea/spaces/utils/space_code.dart';
import 'package:fluffychat/widgets/avatar.dart';
import 'package:fluffychat/widgets/layouts/max_width_body.dart';
@ -38,6 +39,19 @@ class NewGroupView extends StatelessWidget {
: L10n.of(context).newChat,
// Pangea#
),
actions: [
TextButton(
onPressed: controller.loading
? null
: () => SpaceCodeUtil.joinWithSpaceCodeDialog(context),
child: Text(
L10n.of(context).joinByCode,
style: TextStyle(
color: Theme.of(context).colorScheme.primary,
),
),
),
],
),
body: MaxWidthBody(
// #Pangea

Loading…
Cancel
Save