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>
This commit is contained in:
parent
a36a3417ba
commit
ca1b03b9d6
1 changed files with 14 additions and 0 deletions
|
|
@ -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…
Add table
Reference in a new issue