diff --git a/example/pubspec.lock b/example/pubspec.lock index e25dfdb..2dfb529 100644 --- a/example/pubspec.lock +++ b/example/pubspec.lock @@ -8,13 +8,6 @@ packages: url: "https://pub.flutter-io.cn" source: hosted version: "2.6.1" - auto_size_text: - dependency: transitive - description: - name: auto_size_text - url: "https://pub.flutter-io.cn" - source: hosted - version: "3.0.0-nullsafety.0" boolean_selector: dependency: transitive description: @@ -63,42 +56,42 @@ packages: name: device_info_plus url: "https://pub.flutter-io.cn" source: hosted - version: "1.0.0" + version: "2.0.1" device_info_plus_linux: dependency: transitive description: name: device_info_plus_linux url: "https://pub.flutter-io.cn" source: hosted - version: "1.0.0" + version: "2.0.0" device_info_plus_macos: dependency: transitive description: name: device_info_plus_macos url: "https://pub.flutter-io.cn" source: hosted - version: "1.0.0" + version: "2.0.0" device_info_plus_platform_interface: dependency: transitive description: name: device_info_plus_platform_interface url: "https://pub.flutter-io.cn" source: hosted - version: "1.0.1" + version: "2.0.0" device_info_plus_web: dependency: transitive description: name: device_info_plus_web url: "https://pub.flutter-io.cn" source: hosted - version: "1.0.0" + version: "2.0.0" device_info_plus_windows: dependency: transitive description: name: device_info_plus_windows url: "https://pub.flutter-io.cn" source: hosted - version: "1.0.0" + version: "2.0.0" dio: dependency: "direct main" description: @@ -211,7 +204,7 @@ packages: name: package_info_plus url: "https://pub.flutter-io.cn" source: hosted - version: "1.0.0" + version: "1.0.3" package_info_plus_linux: dependency: transitive description: @@ -239,7 +232,7 @@ packages: name: package_info_plus_web url: "https://pub.flutter-io.cn" source: hosted - version: "1.0.0" + version: "1.0.2" package_info_plus_windows: dependency: transitive description: diff --git a/lib/src/views/platform_specific/_web_view.dart b/lib/src/views/platform_specific/_web_view.dart index 75a4908..ad8dea1 100644 --- a/lib/src/views/platform_specific/_web_view.dart +++ b/lib/src/views/platform_specific/_web_view.dart @@ -14,15 +14,15 @@ class WebDeviceView extends StatelessWidget { [ InfoTile( title: 'appCodeName', - subTitle: webInfo!.appCodeName, + subTitle: webInfo!.appCodeName ?? '', ), InfoTile( title: 'appName', - subTitle: webInfo!.appName, + subTitle: webInfo!.appName ?? '', ), InfoTile( title: 'appVersion', - subTitle: webInfo!.appVersion, + subTitle: webInfo!.appVersion ?? '', ), InfoTile( title: 'browserName', @@ -38,11 +38,11 @@ class WebDeviceView extends StatelessWidget { ), InfoTile( title: 'language', - subTitle: webInfo!.language, + subTitle: webInfo!.language ?? '', ), InfoTile( title: 'languages', - subTitle: webInfo!.languages.join(','), + subTitle: webInfo!.languages?.join(',') ?? '', ), InfoTile( title: 'maxTouchPoints', @@ -50,27 +50,27 @@ class WebDeviceView extends StatelessWidget { ), InfoTile( title: 'platform', - subTitle: webInfo!.platform, + subTitle: webInfo!.platform ?? '', ), InfoTile( title: 'product', - subTitle: webInfo!.product, + subTitle: webInfo!.product ?? '', ), InfoTile( title: 'productSub', - subTitle: webInfo!.productSub, + subTitle: webInfo!.productSub ?? '', ), InfoTile( title: 'userAgent', - subTitle: webInfo!.userAgent, + subTitle: webInfo!.userAgent ?? '', ), InfoTile( title: 'vendor', - subTitle: webInfo!.vendor, + subTitle: webInfo!.vendor ?? '', ), InfoTile( title: 'vendorSub', - subTitle: webInfo!.vendorSub, + subTitle: webInfo!.vendorSub ?? '', ), ], ), diff --git a/pubspec.lock b/pubspec.lock index ee37dea..796aea9 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -8,13 +8,6 @@ packages: url: "https://pub.flutter-io.cn" source: hosted version: "2.6.1" - auto_size_text: - dependency: "direct main" - description: - name: auto_size_text - url: "https://pub.flutter-io.cn" - source: hosted - version: "3.0.0-nullsafety.0" boolean_selector: dependency: transitive description: @@ -56,42 +49,42 @@ packages: name: device_info_plus url: "https://pub.flutter-io.cn" source: hosted - version: "1.0.0" + version: "2.0.1" device_info_plus_linux: dependency: transitive description: name: device_info_plus_linux url: "https://pub.flutter-io.cn" source: hosted - version: "1.0.0" + version: "2.0.0" device_info_plus_macos: dependency: transitive description: name: device_info_plus_macos url: "https://pub.flutter-io.cn" source: hosted - version: "1.0.0" + version: "2.0.0" device_info_plus_platform_interface: dependency: transitive description: name: device_info_plus_platform_interface url: "https://pub.flutter-io.cn" source: hosted - version: "1.0.1" + version: "2.0.0" device_info_plus_web: dependency: transitive description: name: device_info_plus_web url: "https://pub.flutter-io.cn" source: hosted - version: "1.0.0" + version: "2.0.0" device_info_plus_windows: dependency: transitive description: name: device_info_plus_windows url: "https://pub.flutter-io.cn" source: hosted - version: "1.0.0" + version: "2.0.0" dio: dependency: "direct main" description: @@ -197,7 +190,7 @@ packages: name: package_info_plus url: "https://pub.flutter-io.cn" source: hosted - version: "1.0.0" + version: "1.0.3" package_info_plus_linux: dependency: transitive description: @@ -225,7 +218,7 @@ packages: name: package_info_plus_web url: "https://pub.flutter-io.cn" source: hosted - version: "1.0.0" + version: "1.0.2" package_info_plus_windows: dependency: transitive description: diff --git a/pubspec.yaml b/pubspec.yaml index a0fdc14..c8fe340 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -12,9 +12,8 @@ dependencies: sdk: flutter dio: ^4.0.0 flutter_highlight: ^0.7.0 - device_info_plus: ^1.0.0 - package_info_plus: ^1.0.0 - auto_size_text: ^3.0.0-nullsafety.0 + device_info_plus: ^2.0.1 + package_info_plus: ^1.0.3 logger: ^1.0.0 dev_dependencies: