Nullable identifier fixes

This commit is contained in:
franzap
2024-10-26 17:06:59 -03:00
parent 7e4c1b4df0
commit f314f59eb7
5 changed files with 12 additions and 14 deletions
+2 -2
View File
@@ -188,7 +188,7 @@ class App extends BaseApp with DataModelMixin<App> {
);
final i = await packageManager.getPackageInfo(
packageName: identifier, flags: flags);
packageName: identifier!, flags: flags);
if (i == null) {
return null;
}
@@ -284,7 +284,7 @@ mixin AppAdapter on Adapter<App> {
if (m != null) {
for (final app in apps) {
queriedAtMap[app.identifier] = m;
queriedAtMap[app.identifier!] = m;
}
}
} else {
+1 -1
View File
@@ -21,7 +21,7 @@ class AppCurationSet extends BaseAppCurationSet
Map<String, dynamic> toJson() => super.toMap();
String get name => content.isNotEmpty ? content : identifier;
String get name => content.isNotEmpty ? content : identifier!;
}
mixin AppCurationSetAdapter on Adapter<AppCurationSet> {
+1 -1
View File
@@ -28,7 +28,7 @@ class ReleaseCard extends StatelessWidget {
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(release.version,
Text(release.version!,
style: TextStyle(fontSize: 26, fontWeight: FontWeight.bold)),
Gap(10),
release.content.length < 3000
+4 -6
View File
@@ -916,12 +916,10 @@ packages:
purplebase:
dependency: "direct main"
description:
path: "."
ref: "0.2.0"
resolved-ref: "9cd05ac29caaca742a16dc64608cae9751aa0eb1"
url: "https://github.com/purplebase/purplebase"
source: git
version: "0.1.1"
path: "../purplebase"
relative: true
source: path
version: "0.2.0"
quiver:
dependency: transitive
description:
+4 -4
View File
@@ -52,10 +52,10 @@ dependencies:
dependency_overrides:
purplebase:
# path: ../purplebase
git:
url: https://github.com/purplebase/purplebase
ref: 0.2.0
path: ../purplebase
# git:
# url: https://github.com/purplebase/purplebase
# ref: 0.2.0
flutter_data:
git:
url: https://github.com/zapstore/flutter_data