remove phoenix for being fucked up and evil
This commit is contained in:
parent
a2b2b51517
commit
6bf7777b04
|
@ -21,6 +21,7 @@
|
||||||
"post-options": "post options",
|
"post-options": "post options",
|
||||||
"reblogged-by": "reblogged by:",
|
"reblogged-by": "reblogged by:",
|
||||||
"post-batch-size": "post batch size",
|
"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"
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter_phoenix/flutter_phoenix.dart';
|
|
||||||
import 'package:intl/intl.dart';
|
import 'package:intl/intl.dart';
|
||||||
import 'package:localization/localization.dart';
|
import 'package:localization/localization.dart';
|
||||||
import 'package:loris/partials/main_scaffold.dart';
|
import 'package:loris/partials/main_scaffold.dart';
|
||||||
|
|
|
@ -12,7 +12,9 @@ class AccountSettings extends StatelessWidget {
|
||||||
children.add(
|
children.add(
|
||||||
LogoutButton(identity: global.settings!.identities.keys.toList()[i]));
|
LogoutButton(identity: global.settings!.identities.keys.toList()[i]));
|
||||||
}
|
}
|
||||||
return Row(
|
children.add(const NewAccountButton());
|
||||||
|
return Column(
|
||||||
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
children: children,
|
children: children,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -31,16 +33,34 @@ class LogoutButton extends StatelessWidget {
|
||||||
children: [
|
children: [
|
||||||
SelectableText(identity),
|
SelectableText(identity),
|
||||||
TextButton.icon(
|
TextButton.icon(
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
logout(context, identity);
|
logout(context, identity);
|
||||||
},
|
},
|
||||||
icon: const Icon(Icons.logout),
|
icon: const Icon(Icons.logout),
|
||||||
label: Text("logout".i18n()))
|
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) {
|
void addNewIdentity(context) {
|
||||||
Navigator.of(context).pushReplacementNamed("/login");
|
Navigator.of(context).pushReplacementNamed("/login");
|
||||||
}
|
}
|
||||||
|
|
|
@ -102,13 +102,6 @@ packages:
|
||||||
description: flutter
|
description: flutter
|
||||||
source: sdk
|
source: sdk
|
||||||
version: "0.0.0"
|
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:
|
flutter_test:
|
||||||
dependency: "direct dev"
|
dependency: "direct dev"
|
||||||
description: flutter
|
description: flutter
|
||||||
|
|
|
@ -44,7 +44,6 @@ dependencies:
|
||||||
shelf: ^1.3.1
|
shelf: ^1.3.1
|
||||||
html: ^0.15.0
|
html: ^0.15.0
|
||||||
web_socket_channel: ^2.2.0
|
web_socket_channel: ^2.2.0
|
||||||
flutter_phoenix: ^1.0.0
|
|
||||||
|
|
||||||
dev_dependencies:
|
dev_dependencies:
|
||||||
flutter_test:
|
flutter_test:
|
||||||
|
|
Loading…
Reference in New Issue