chore: Follow up login page

This commit is contained in:
Krille 2024-11-04 13:58:10 +01:00
parent 3a8bb47e2c
commit 4b7345d0fe
No known key found for this signature in database
GPG key ID: E067ECD60F1A0652

View file

@ -15,7 +15,10 @@ import 'homeserver_picker.dart';
class HomeserverPickerView extends StatelessWidget {
final HomeserverPickerController controller;
const HomeserverPickerView(this.controller, {super.key});
const HomeserverPickerView(
this.controller, {
super.key,
});
@override
Widget build(BuildContext context) {
@ -25,7 +28,11 @@ class HomeserverPickerView extends StatelessWidget {
enforceMobileMode: Matrix.of(context).client.isLogged(),
appBar: AppBar(
centerTitle: true,
title: Text(L10n.of(context).addAccount),
title: Text(
controller.widget.addMultiAccount
? L10n.of(context).addAccount
: L10n.of(context).login,
),
actions: [
PopupMenuButton<MoreLoginActions>(
onSelected: controller.onMoreAction,