fix: Minor sentry crashes

This commit is contained in:
Christian Pauly 2021-04-12 20:48:33 +02:00
parent c2cbad7ffa
commit 9aa7d52792
3 changed files with 4 additions and 4 deletions

View File

@ -189,10 +189,10 @@ class SettingsNotifications extends StatelessWidget {
),
);
}
if (!snapshot.hasData) {
if (snapshot.connectionState != ConnectionState.done) {
Center(child: CircularProgressIndicator());
}
final pushers = snapshot.data;
final pushers = snapshot.data ?? [];
return ListView.builder(
physics: NeverScrollableScrollPhysics(),
shrinkWrap: true,

View File

@ -21,7 +21,7 @@ packages:
name: adaptive_page_layout
url: "https://pub.dartlang.org"
source: hosted
version: "0.2.2"
version: "0.2.3"
adaptive_theme:
dependency: "direct main"
description:

View File

@ -33,7 +33,7 @@ dependencies:
url_launcher: ^5.7.10
cached_network_image: ^2.5.0
flutter_local_notifications: ^3.0.3
adaptive_page_layout: ^0.2.1
adaptive_page_layout: ^0.2.3
provider: ^4.3.3
adaptive_theme: ^1.1.0
# desktop_notifications: ^0.0.0-dev.4 // Currently blocked by: https://github.com/canonical/desktop_notifications.dart/issues/5