chore(new_group_view): simplify by removing chat/space toggle (#2899)

Co-authored-by: ggurdin <ggurdin@gmail.com>
This commit is contained in:
wcjord 2025-06-02 14:53:25 -04:00 committed by GitHub
parent 249538c20b
commit 6b643810d4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -40,17 +40,18 @@ class NewGroupView extends StatelessWidget {
// Pangea#
),
actions: [
TextButton(
onPressed: controller.loading
? null
: () => SpaceCodeUtil.joinWithSpaceCodeDialog(context),
child: Text(
L10n.of(context).joinByCode,
style: TextStyle(
color: Theme.of(context).colorScheme.primary,
if (controller.createGroupType == CreateGroupType.space)
TextButton(
onPressed: controller.loading
? null
: () => SpaceCodeUtil.joinWithSpaceCodeDialog(context),
child: Text(
L10n.of(context).joinByCode,
style: TextStyle(
color: Theme.of(context).colorScheme.primary,
),
),
),
),
],
),
body: MaxWidthBody(
@ -66,6 +67,7 @@ class NewGroupView extends StatelessWidget {
mainAxisSize: MainAxisSize.min,
children: <Widget>[
// #Pangea
// Simplying options here
// Padding(
// padding: const EdgeInsets.all(16.0),
// child: SegmentedButton<CreateGroupType>(