diff --git a/README.md b/README.md index 908b3ef..96dc486 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,6 @@ [![GitHub release (latest by date)](https://img.shields.io/github/v/release/zbejas/portarius?label=Release)](https://github.com/zbejas/portarius/releases/latest) [![Release date](https://img.shields.io/github/release-date/zbejas/portarius?labely)](https://github.com/zbejas/portarius/releases/) ![GitHub release (latest by date including pre-releases)](https://img.shields.io/github/v/release/zbejas/portarius?color=yellow&include_prereleases&label=dev-release) -[![GitHub](https://img.shields.io/github/license/zbejas/portarius)](https://github.com/zbejas/portarius/blob/master/LICENSE) ## Features @@ -20,6 +19,17 @@ - Biometric authentication - Data is stored with AES256 encryption +## Documentation + +- [FAQ](https://github.com/zbejas/portarius/wiki/FAQ) +- [Privacy policy](https://github.com/zbejas/portarius/wiki/Privacy-Policy) + +## Install + +| Google Play | IzzyOnDroid | GitHub | +| :--: | :--: | :--: | +| [Get it on Google Play](https://play.google.com/store/apps/details?id=si.zbe.portarius) | [Get it on IzzyOnDroid](https://apt.izzysoft.de/fdroid/index/apk/si.zbe.portarius) | [Get it on Github](https://github.com/zbejas/portarius/releases) | + ## Screenshots | Drawer | Home | Auth | Settings | @@ -35,12 +45,6 @@ -## Install - -| Google Play | IzzyOnDroid | GitHub | -| :--: | :--: | :--: | -| [Get it on Google Play](https://play.google.com/store/apps/details?id=si.zbe.portarius) | [Get it on IzzyOnDroid](https://apt.izzysoft.de/fdroid/index/apk/si.zbe.portarius) | [Get it on Github](https://github.com/zbejas/portarius/releases) | - ## Contribute - [Report](https://github.com/zbejas/portarius/issues/new?assignees=&labels=&template=bug_report.md&title=) a bug @@ -48,11 +52,6 @@ - [Help](https://github.com/zbejas/portarius/issues) with the issues - [Send](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/about-pull-requests) a pull request -## Documentation - -- [FAQ](https://github.com/zbejas/portarius/wiki/FAQ) -- [Privacy policy](https://github.com/zbejas/portarius/wiki/Privacy-Policy) - ## Donations | Paypal | LiberaPay | Buy Me a Coffee | diff --git a/lib/components/drawer/drawer.dart b/lib/components/drawer/drawer.dart index 287595e..b8466ec 100644 --- a/lib/components/drawer/drawer.dart +++ b/lib/components/drawer/drawer.dart @@ -134,12 +134,16 @@ class _PortariusDrawerState extends State { future: RemoteService().getEndpoints(user), builder: (context, snapshot) { if (snapshot.hasData) { - Endpoint? pickedEndpoint = - snapshot.data!.firstWhere( - (endpoint) => - endpoint.id == settings.selectedEndpointId, - ); - + Endpoint? pickedEndpoint; + try { + pickedEndpoint = snapshot.data!.firstWhere( + (endpoint) => + endpoint.id == + settings.selectedEndpointId, + ); + } catch (e) { + pickedEndpoint = snapshot.data!.first; + } if (snapshot.data!.isEmpty) { return const Text('No endpoints'); } else if (snapshot.data!.length == 1) { diff --git a/lib/models/portainer/endpoint.dart b/lib/models/portainer/endpoint.dart index 2350b40..dd5b7a0 100644 --- a/lib/models/portainer/endpoint.dart +++ b/lib/models/portainer/endpoint.dart @@ -462,8 +462,8 @@ class EndpointSnapshot { factory EndpointSnapshot.fromJson(Map json) => EndpointSnapshot( - dockerSnapshotRaw: - DockerSnapshotRaw.fromJson(json["DockerSnapshotRaw"]), + /*dockerSnapshotRaw: + DockerSnapshotRaw.fromJson(json["DockerSnapshotRaw"]),*/ dockerVersion: json["DockerVersion"], healthyContainerCount: json["HealthyContainerCount"], imageCount: json["ImageCount"], diff --git a/pubspec.lock b/pubspec.lock index baf8ba4..56c5090 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -98,7 +98,7 @@ packages: name: characters url: "https://pub.dartlang.org" source: hosted - version: "1.2.0" + version: "1.2.1" charcode: dependency: transitive description: @@ -416,14 +416,14 @@ packages: name: material_color_utilities url: "https://pub.dartlang.org" source: hosted - version: "0.1.4" + version: "0.1.5" meta: dependency: transitive description: name: meta url: "https://pub.dartlang.org" source: hosted - version: "1.7.0" + version: "1.8.0" mime: dependency: transitive description: diff --git a/pubspec.yaml b/pubspec.yaml index 0cb0d98..f642f29 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -16,8 +16,7 @@ publish_to: "none" # Remove this line if you wish to publish to pub.dev # Read more about iOS versioning at # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html -version: 1.1.0+8 - +version: 1.1.1+9 environment: sdk: ">=2.17.1 <3.0.0"