diff --git a/lib/pages/new_group/new_group_view.dart b/lib/pages/new_group/new_group_view.dart index b060eb4ec..c6f9810e0 100644 --- a/lib/pages/new_group/new_group_view.dart +++ b/lib/pages/new_group/new_group_view.dart @@ -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: [ // #Pangea + // Simplying options here // Padding( // padding: const EdgeInsets.all(16.0), // child: SegmentedButton(