1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2025-06-19 08:15:16 +00:00

Can request to join a Forez group

This commit is contained in:
2021-04-23 19:32:34 +02:00
parent 0cd6ed284b
commit d178e8b1c3
8 changed files with 122 additions and 23 deletions

View File

@ -87,7 +87,7 @@ class _GroupMembershipWidgetState extends SafeState<GroupMembershipWidget> {
message: tr("Do you really want to reject this invitation?")))
return;
if (!await GroupsHelper().respondInvitation(_id, accept)) {
if (!await GroupsHelper.respondInvitation(_id, accept)) {
showSimpleSnack(context, tr("Could not respond to your invitation!"));
if (this.widget.onError != null) this.widget.onError();
} else {
@ -147,7 +147,7 @@ class _GroupMembershipWidgetState extends SafeState<GroupMembershipWidget> {
/// Create new membership request
void _requestMembership() async {
if (!await GroupsHelper().sendRequest(_id)) {
if (!await GroupsHelper.sendRequest(_id)) {
showSimpleSnack(context, tr("Could not send your membership request!"));
if (this.widget.onError != null) this.widget.onError();
} else {

View File

@ -46,6 +46,9 @@ class LoginRoutesTheme extends StatelessWidget {
accentColor: Colors.white,
hintColor: Colors.white,
textTheme: TextTheme(subtitle1: TextStyle(color: Colors.white)),
radioTheme: RadioThemeData(
fillColor: MaterialStateProperty.all(Colors.white),
),
colorScheme: ColorScheme(
primary: Colors.white,
primaryVariant: Colors.white,