remove phoenix for being fucked up and evil

This commit is contained in:
zoe 2022-08-14 13:51:25 +02:00
parent a2b2b51517
commit 6bf7777b04
5 changed files with 28 additions and 16 deletions

View File

@ -21,6 +21,7 @@
"post-options": "post options",
"reblogged-by": "reblogged by:",
"post-batch-size": "post batch size",
"post-batch-size-description": "how many posts to load at a time\nfor slower internet or if you're not sure what to do use a low value (the default in most places is 20)"
"post-batch-size-description": "how many posts to load at a time\nfor slower internet or if you're not sure what to do use a low value (the default in most places is 20)",
"app-settings": "app settings"
}

View File

@ -1,5 +1,4 @@
import 'package:flutter/material.dart';
import 'package:flutter_phoenix/flutter_phoenix.dart';
import 'package:intl/intl.dart';
import 'package:localization/localization.dart';
import 'package:loris/partials/main_scaffold.dart';

View File

@ -12,7 +12,9 @@ class AccountSettings extends StatelessWidget {
children.add(
LogoutButton(identity: global.settings!.identities.keys.toList()[i]));
}
return Row(
children.add(const NewAccountButton());
return Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: children,
);
}
@ -31,16 +33,34 @@ class LogoutButton extends StatelessWidget {
children: [
SelectableText(identity),
TextButton.icon(
onPressed: () {
logout(context, identity);
},
icon: const Icon(Icons.logout),
label: Text("logout".i18n()))
onPressed: () {
logout(context, identity);
},
icon: const Icon(Icons.logout),
label: Text(
"logout".i18n(),
),
),
],
);
}
}
class NewAccountButton extends StatelessWidget {
const NewAccountButton({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return TextButton.icon(
onPressed: (() => addNewIdentity(context)),
icon: const Icon(Icons.person_add),
label: Text(
"add-account".i18n(),
),
);
}
}
void addNewIdentity(context) {
Navigator.of(context).pushReplacementNamed("/login");
}

View File

@ -102,13 +102,6 @@ packages:
description: flutter
source: sdk
version: "0.0.0"
flutter_phoenix:
dependency: "direct main"
description:
name: flutter_phoenix
url: "https://pub.dartlang.org"
source: hosted
version: "1.0.0"
flutter_test:
dependency: "direct dev"
description: flutter

View File

@ -44,7 +44,6 @@ dependencies:
shelf: ^1.3.1
html: ^0.15.0
web_socket_channel: ^2.2.0
flutter_phoenix: ^1.0.0
dev_dependencies:
flutter_test: