Skip to content

Commit

Permalink
Merge pull request #275 from pangeachat/backbutton-to-room-details
Browse files Browse the repository at this point in the history
Invitation page returns to details
  • Loading branch information
ggurdin authored Jun 3, 2024
2 parents a835c3a + 918fc95 commit 92b3a48
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion lib/pages/invitation_selection/invitation_selection_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import 'package:fluffychat/widgets/layouts/max_width_body.dart';
import 'package:fluffychat/widgets/matrix.dart';
import 'package:flutter/material.dart';
import 'package:flutter_gen/gen_l10n/l10n.dart';
import 'package:go_router/go_router.dart';
import 'package:matrix/matrix.dart';

class InvitationSelectionView extends StatelessWidget {
Expand Down Expand Up @@ -31,7 +32,14 @@ class InvitationSelectionView extends StatelessWidget {
// Pangea#
return Scaffold(
appBar: AppBar(
leading: const Center(child: BackButton()),
// #Pangea
// leading: const Center(child: BackButton()),
leading: Center(
child: BackButton(
onPressed: () => context.go("/rooms/${controller.roomId}/details"),
),
),
// Pangea#
titleSpacing: 0,
title: Text(L10n.of(context)!.inviteContact),
),
Expand Down

0 comments on commit 92b3a48

Please sign in to comment.