chore: Follow up login page
This commit is contained in:
parent
3a8bb47e2c
commit
4b7345d0fe
1 changed files with 9 additions and 2 deletions
|
|
@ -15,7 +15,10 @@ import 'homeserver_picker.dart';
|
||||||
class HomeserverPickerView extends StatelessWidget {
|
class HomeserverPickerView extends StatelessWidget {
|
||||||
final HomeserverPickerController controller;
|
final HomeserverPickerController controller;
|
||||||
|
|
||||||
const HomeserverPickerView(this.controller, {super.key});
|
const HomeserverPickerView(
|
||||||
|
this.controller, {
|
||||||
|
super.key,
|
||||||
|
});
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
|
|
@ -25,7 +28,11 @@ class HomeserverPickerView extends StatelessWidget {
|
||||||
enforceMobileMode: Matrix.of(context).client.isLogged(),
|
enforceMobileMode: Matrix.of(context).client.isLogged(),
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
centerTitle: true,
|
centerTitle: true,
|
||||||
title: Text(L10n.of(context).addAccount),
|
title: Text(
|
||||||
|
controller.widget.addMultiAccount
|
||||||
|
? L10n.of(context).addAccount
|
||||||
|
: L10n.of(context).login,
|
||||||
|
),
|
||||||
actions: [
|
actions: [
|
||||||
PopupMenuButton<MoreLoginActions>(
|
PopupMenuButton<MoreLoginActions>(
|
||||||
onSelected: controller.onMoreAction,
|
onSelected: controller.onMoreAction,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue