mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-12-25 06:52:35 +01:00
chore: Update SDK
This commit is contained in:
parent
b7993e7b65
commit
49a159268b
@ -217,7 +217,7 @@ class BackgroundPush {
|
|||||||
|
|
||||||
Future<void> setupPush() async {
|
Future<void> setupPush() async {
|
||||||
await setupLocalNotificationsPlugin();
|
await setupLocalNotificationsPlugin();
|
||||||
if (_loginState != LoginState.logged ||
|
if (_loginState != LoginState.loggedIn ||
|
||||||
!PlatformInfos.isMobile ||
|
!PlatformInfos.isMobile ||
|
||||||
context == null) {
|
context == null) {
|
||||||
return;
|
return;
|
||||||
|
@ -10,7 +10,7 @@ class LoadingView extends StatelessWidget {
|
|||||||
if (Matrix.of(context).loginState != null) {
|
if (Matrix.of(context).loginState != null) {
|
||||||
WidgetsBinding.instance.addPostFrameCallback(
|
WidgetsBinding.instance.addPostFrameCallback(
|
||||||
(_) => VRouter.of(context).to(
|
(_) => VRouter.of(context).to(
|
||||||
Matrix.of(context).loginState == LoginState.logged
|
Matrix.of(context).loginState == LoginState.loggedIn
|
||||||
? '/rooms'
|
? '/rooms'
|
||||||
: '/home',
|
: '/home',
|
||||||
queryParameters: VRouter.of(context).queryParameters,
|
queryParameters: VRouter.of(context).queryParameters,
|
||||||
|
@ -330,9 +330,9 @@ class MatrixState extends State<Matrix> with WidgetsBindingObserver {
|
|||||||
final isInLoginRoutes = {'/home', '/login', '/signup'}
|
final isInLoginRoutes = {'/home', '/login', '/signup'}
|
||||||
.contains(widget.router.currentState.url);
|
.contains(widget.router.currentState.url);
|
||||||
if (widget.router.currentState.url == '/' ||
|
if (widget.router.currentState.url == '/' ||
|
||||||
(state == LoginState.logged) == isInLoginRoutes) {
|
(state == LoginState.loggedIn) == isInLoginRoutes) {
|
||||||
widget.router.currentState.to(
|
widget.router.currentState.to(
|
||||||
loginState == LoginState.logged ? '/rooms' : '/home',
|
loginState == LoginState.loggedIn ? '/rooms' : '/home',
|
||||||
queryParameters: widget.router.currentState.queryParameters,
|
queryParameters: widget.router.currentState.queryParameters,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
18
pubspec.lock
18
pubspec.lock
@ -722,14 +722,14 @@ packages:
|
|||||||
name: matrix
|
name: matrix
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "0.2.1"
|
version: "0.3.0"
|
||||||
matrix_api_lite:
|
matrix_api_lite:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
name: matrix_api_lite
|
name: matrix_api_lite
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "0.4.0"
|
version: "0.4.1"
|
||||||
matrix_link_text:
|
matrix_link_text:
|
||||||
dependency: "direct main"
|
dependency: "direct main"
|
||||||
description:
|
description:
|
||||||
@ -758,13 +758,6 @@ packages:
|
|||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "1.0.0"
|
version: "1.0.0"
|
||||||
moor:
|
|
||||||
dependency: transitive
|
|
||||||
description:
|
|
||||||
name: moor
|
|
||||||
url: "https://pub.dartlang.org"
|
|
||||||
source: hosted
|
|
||||||
version: "4.2.1"
|
|
||||||
move_to_background:
|
move_to_background:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
@ -1248,13 +1241,6 @@ packages:
|
|||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "2.0.0+2"
|
version: "2.0.0+2"
|
||||||
sqlite3:
|
|
||||||
dependency: transitive
|
|
||||||
description:
|
|
||||||
name: sqlite3
|
|
||||||
url: "https://pub.dartlang.org"
|
|
||||||
source: hosted
|
|
||||||
version: "1.0.0"
|
|
||||||
stack_trace:
|
stack_trace:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
|
@ -45,7 +45,7 @@ dependencies:
|
|||||||
intl: any
|
intl: any
|
||||||
localstorage: ^4.0.0+1
|
localstorage: ^4.0.0+1
|
||||||
lottie: ^1.1.0
|
lottie: ^1.1.0
|
||||||
matrix: ^0.2.1
|
matrix: ^0.3.0
|
||||||
matrix_link_text: ^0.4.2
|
matrix_link_text: ^0.4.2
|
||||||
native_imaging:
|
native_imaging:
|
||||||
git: https://gitlab.com/famedly/libraries/native_imaging.git
|
git: https://gitlab.com/famedly/libraries/native_imaging.git
|
||||||
|
Loading…
Reference in New Issue
Block a user