Fix login without google services #33

This commit is contained in:
Christian Pauly 2020-04-17 07:52:01 +02:00
parent fd806ea74c
commit fef65c4fc6
4 changed files with 11 additions and 2 deletions

View File

@ -1,3 +1,7 @@
# Version 0.12.4 - 2020-04-17
### Fixed
- Login without google services
# Version 0.12.2 - 2020-04-12 # Version 0.12.2 - 2020-04-12
### Changes: ### Changes:
- New set homeserver UX - New set homeserver UX

View File

@ -155,7 +155,11 @@ class MatrixState extends State<Matrix> {
token = null; token = null;
} }
if (token?.isEmpty ?? true) { if (token?.isEmpty ?? true) {
showToast(I18n.of(context).noGoogleServicesWarning); showToast(
I18n.of(context).noGoogleServicesWarning,
duration: Duration(seconds: 15),
);
return;
} }
await client.setPushers( await client.setPushers(
token, token,

View File

@ -30,6 +30,7 @@ class App extends StatelessWidget {
builder: (BuildContext context) => ThemeSwitcherWidget( builder: (BuildContext context) => ThemeSwitcherWidget(
child: Builder( child: Builder(
builder: (BuildContext context) => StyledToast( builder: (BuildContext context) => StyledToast(
duration: Duration(seconds: 5),
child: MaterialApp( child: MaterialApp(
title: 'FluffyChat', title: 'FluffyChat',
theme: ThemeSwitcherWidget.of(context).themeData, theme: ThemeSwitcherWidget.of(context).themeData,

View File

@ -11,7 +11,7 @@ description: Chat with your friends.
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion. # In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
# Read more about iOS versioning at # Read more about iOS versioning at
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
version: 0.12.3+35 version: 0.12.4+36
environment: environment:
sdk: ">=2.6.0 <3.0.0" sdk: ">=2.6.0 <3.0.0"