Карты Google x Flutter - PullRequest
       12

Карты Google x Flutter

1 голос
/ 08 мая 2020

Когда я запускаю флаттер, я получаю следующее. Я не знаком с работой с Google Maps и новичок в Flutter, поэтому надеюсь, что кто-то может внести какие-то данные по этой проблеме:

Вывод Xcode: ↳ В файле, включенном в / Users / kirk / Developer / flutter /.pub-cache/hosted/pub.dartlang.org/google_maps_flutter-0.4.0/ios/Classes/GoogleMapMarkerController.m:5:

In file included from /Users/kirk/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/google_maps_flutter-0.4.0/ios/Classes/GoogleMapMarkerController.h:7:
/Users/kirk/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/google_maps_flutter-0.4.0/ios/Classes/GoogleMapController.h:11:51: warning: pointer is missing a
nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]
- (void)setCameraTargetBounds:(GMSCoordinateBounds*)bounds;

                                                  ^
/Users/kirk/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/google_maps_flutter-0.4.0/ios/Classes/GoogleMapController.h:11:51: note: insert '_Nullable' if
the pointer may be null
- (void)setCameraTargetBounds:(GMSCoordinateBounds*)bounds;
                                                  ^
                                                   _Nullable
/Users/kirk/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/google_maps_flutter-0.4.0/ios/Classes/GoogleMapController.h:11:51: note: insert '_Nonnull' if
the pointer should never be null
- (void)setCameraTargetBounds:(GMSCoordinateBounds*)bounds;
                                                  ^
                                                   _Nonnull
/Users/kirk/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/google_maps_flutter-0.4.0/ios/Classes/GoogleMapController.h:29:64: warning: pointer is missing a
nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]
                    registrar:(NSObject<FlutterPluginRegistrar>*)registrar;
                                                               ^
/Users/kirk/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/google_maps_flutter-0.4.0/ios/Classes/GoogleMapController.h:29:64: note: insert '_Nullable' if
the pointer may be null
                    registrar:(NSObject<FlutterPluginRegistrar>*)registrar;
                                                               ^
                                                                _Nullable
/Users/kirk/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/google_maps_flutter-0.4.0/ios/Classes/GoogleMapController.h:29:64: note: insert '_Nonnull' if
the pointer should never be null
                    registrar:(NSObject<FlutterPluginRegistrar>*)registrar;
                                                               ^
                                                                _Nonnull
/Users/kirk/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/google_maps_flutter-0.4.0/ios/Classes/GoogleMapController.h:32:49: warning: pointer is missing a
nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]
- (void)animateWithCameraUpdate:(GMSCameraUpdate*)cameraUpdate;
                                                ^
/Users/kirk/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/google_maps_flutter-0.4.0/ios/Classes/GoogleMapController.h:32:49: note: insert '_Nullable' if
the pointer may be null
- (void)animateWithCameraUpdate:(GMSCameraUpdate*)cameraUpdate;
                                                ^
                                                 _Nullable
/Users/kirk/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/google_maps_flutter-0.4.0/ios/Classes/GoogleMapController.h:32:49: note: insert '_Nonnull' if
the pointer should never be null
- (void)animateWithCameraUpdate:(GMSCameraUpdate*)cameraUpdate;
                                                ^
                                                 _Nonnull
/Users/kirk/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/google_maps_flutter-0.4.0/ios/Classes/GoogleMapController.h:33:46: warning: pointer is missing a
nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]
- (void)moveWithCameraUpdate:(GMSCameraUpdate*)cameraUpdate;
                                             ^
/Users/kirk/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/google_maps_flutter-0.4.0/ios/Classes/GoogleMapController.h:33:46: note: insert '_Nullable' if
the pointer may be null
- (void)moveWithCameraUpdate:(GMSCameraUpdate*)cameraUpdate;
                                             ^
                                              _Nullable
/Users/kirk/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/google_maps_flutter-0.4.0/ios/Classes/GoogleMapController.h:33:46: note: insert '_Nonnull' if
the pointer should never be null
- (void)moveWithCameraUpdate:(GMSCameraUpdate*)cameraUpdate;
                                             ^
                                              _Nonnull
/Users/kirk/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/google_maps_flutter-0.4.0/ios/Classes/GoogleMapController.h:34:21: warning: pointer is missing a
nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]
- (GMSCameraPosition*)cameraPosition;
                    ^
/Users/kirk/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/google_maps_flutter-0.4.0/ios/Classes/GoogleMapController.h:34:21: note: insert '_Nullable' if
the pointer may be null
- (GMSCameraPosition*)cameraPosition;
                    ^
                     _Nullable
/Users/kirk/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/google_maps_flutter-0.4.0/ios/Classes/GoogleMapController.h:34:21: note: insert '_Nonnull' if
the pointer should never be null
- (GMSCameraPosition*)cameraPosition;
                    ^
                     _Nonnull
/Users/kirk/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/google_maps_flutter-0.4.0/ios/Classes/GoogleMapController.h:39:4: warning: pointer is missing a
nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]
- (instancetype)initWithRegistrar:(NSObject<FlutterPluginRegistrar>*)registrar;
   ^
/Users/kirk/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/google_maps_flutter-0.4.0/ios/Classes/GoogleMapController.h:39:4: note: insert '_Nullable' if
the pointer may be null
- (instancetype)initWithRegistrar:(NSObject<FlutterPluginRegistrar>*)registrar;
   ^
                _Nullable 
/Users/kirk/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/google_maps_flutter-0.4.0/ios/Classes/GoogleMapController.h:39:4: note: insert '_Nonnull' if the
pointer should never be null
- (instancetype)initWithRegistrar:(NSObject<FlutterPluginRegistrar>*)registrar;
   ^
                _Nonnull 
/Users/kirk/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/google_maps_flutter-0.4.0/ios/Classes/GoogleMapController.h:39:68: warning: pointer is missing a
nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]
- (instancetype)initWithRegistrar:(NSObject<FlutterPluginRegistrar>*)registrar;
                                                                   ^
/Users/kirk/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/google_maps_flutter-0.4.0/ios/Classes/GoogleMapController.h:39:68: note: insert '_Nullable' if
the pointer may be null
- (instancetype)initWithRegistrar:(NSObject<FlutterPluginRegistrar>*)registrar;
                                                                   ^
                                                                    _Nullable
/Users/kirk/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/google_maps_flutter-0.4.0/ios/Classes/GoogleMapController.h:39:68: note: insert '_Nonnull' if
the pointer should never be null
- (instancetype)initWithRegistrar:(NSObject<FlutterPluginRegistrar>*)registrar;
                                                                   ^
                                                                    _Nonnull
7 warnings generated.
7 warnings generated.
In file included from /Users/kirk/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/google_maps_flutter-0.4.0/ios/Classes/GoogleMapsPlugin.m:5:
In file included from /Users/kirk/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/google_maps_flutter-0.4.0/ios/Classes/GoogleMapsPlugin.h:7:
/Users/kirk/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/google_maps_flutter-0.4.0/ios/Classes/GoogleMapController.h:11:51: warning: pointer is missing a
nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]
- (void)setCameraTargetBounds:(GMSCoordinateBounds*)bounds;
                                                  ^
/Users/kirk/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/google_maps_flutter-0.4.0/ios/Classes/GoogleMapController.h:11:51: note: insert '_Nullable' if
the pointer may be null
- (void)setCameraTargetBounds:(GMSCoordinateBounds*)bounds;
                                                  ^
                                                   _Nullable
/Users/kirk/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/google_maps_flutter-0.4.0/ios/Classes/GoogleMapController.h:11:51: note: insert '_Nonnull' if
the pointer should never be null
- (void)setCameraTargetBounds:(GMSCoordinateBounds*)bounds;
                                                  ^
                                                   _Nonnull
/Users/kirk/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/google_maps_flutter-0.4.0/ios/Classes/GoogleMapController.h:29:64: warning: pointer is missing a
nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]
                    registrar:(NSObject<FlutterPluginRegistrar>*)registrar;
                                                               ^
/Users/kirk/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/google_maps_flutter-0.4.0/ios/Classes/GoogleMapController.h:29:64: note: insert '_Nullable' if
the pointer may be null
                    registrar:(NSObject<FlutterPluginRegistrar>*)registrar;
                                                               ^
                                                                _Nullable
/Users/kirk/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/google_maps_flutter-0.4.0/ios/Classes/GoogleMapController.h:29:64: note: insert '_Nonnull' if
the pointer should never be null
                    registrar:(NSObject<FlutterPluginRegistrar>*)registrar;
                                                               ^
                                                                _Nonnull
/Users/kirk/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/google_maps_flutter-0.4.0/ios/Classes/GoogleMapController.h:32:49: warning: pointer is missing a
nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]
- (void)animateWithCameraUpdate:(GMSCameraUpdate*)cameraUpdate;
                                                ^
/Users/kirk/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/google_maps_flutter-0.4.0/ios/Classes/GoogleMapController.h:32:49: note: insert '_Nullable' if
the pointer may be null
- (void)animateWithCameraUpdate:(GMSCameraUpdate*)cameraUpdate;
                                                ^
                                                 _Nullable
/Users/kirk/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/google_maps_flutter-0.4.0/ios/Classes/GoogleMapController.h:32:49: note: insert '_Nonnull' if
the pointer should never be null
- (void)animateWithCameraUpdate:(GMSCameraUpdate*)cameraUpdate;
                                                ^
                                                 _Nonnull
/Users/kirk/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/google_maps_flutter-0.4.0/ios/Classes/GoogleMapController.h:33:46: warning: pointer is missing a
nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]
- (void)moveWithCameraUpdate:(GMSCameraUpdate*)cameraUpdate;
                                             ^
/Users/kirk/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/google_maps_flutter-0.4.0/ios/Classes/GoogleMapController.h:33:46: note: insert '_Nullable' if
the pointer may be null
- (void)moveWithCameraUpdate:(GMSCameraUpdate*)cameraUpdate;
                                             ^
                                              _Nullable
/Users/kirk/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/google_maps_flutter-0.4.0/ios/Classes/GoogleMapController.h:33:46: note: insert '_Nonnull' if
the pointer should never be null
- (void)moveWithCameraUpdate:(GMSCameraUpdate*)cameraUpdate;
                                             ^
                                              _Nonnull
/Users/kirk/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/google_maps_flutter-0.4.0/ios/Classes/GoogleMapController.h:34:21: warning: pointer is missing a
nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]
- (GMSCameraPosition*)cameraPosition;
                    ^
/Users/kirk/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/google_maps_flutter-0.4.0/ios/Classes/GoogleMapController.h:34:21: note: insert '_Nullable' if
the pointer may be null
- (GMSCameraPosition*)cameraPosition;
                    ^
                     _Nullable
/Users/kirk/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/google_maps_flutter-0.4.0/ios/Classes/GoogleMapController.h:34:21: note: insert '_Nonnull' if
the pointer should never be null
- (GMSCameraPosition*)cameraPosition;
                    ^
                     _Nonnull
/Users/kirk/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/google_maps_flutter-0.4.0/ios/Classes/GoogleMapController.h:39:4: warning: pointer is missing a
nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]
- (instancetype)initWithRegistrar:(NSObject<FlutterPluginRegistrar>*)registrar;
   ^
/Users/kirk/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/google_maps_flutter-0.4.0/ios/Classes/GoogleMapController.h:39:4: note: insert '_Nullable' if
the pointer may be null
- (instancetype)initWithRegistrar:(NSObject<FlutterPluginRegistrar>*)registrar;
   ^
                _Nullable 
/Users/kirk/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/google_maps_flutter-0.4.0/ios/Classes/GoogleMapController.h:39:4: note: insert '_Nonnull' if the
pointer should never be null
- (instancetype)initWithRegistrar:(NSObject<FlutterPluginRegistrar>*)registrar;
   ^
                _Nonnull 
/Users/kirk/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/google_maps_flutter-0.4.0/ios/Classes/GoogleMapController.h:39:68: warning: pointer is missing a
nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]
- (instancetype)initWithRegistrar:(NSObject<FlutterPluginRegistrar>*)registrar;
                                                                   ^
/Users/kirk/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/google_maps_flutter-0.4.0/ios/Classes/GoogleMapController.h:39:68: note: insert '_Nullable' if
the pointer may be null
- (instancetype)initWithRegistrar:(NSObject<FlutterPluginRegistrar>*)registrar;
                                                                   ^
                                                                    _Nullable
/Users/kirk/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/google_maps_flutter-0.4.0/ios/Classes/GoogleMapController.h:39:68: note: insert '_Nonnull' if
the pointer should never be null
- (instancetype)initWithRegistrar:(NSObject<FlutterPluginRegistrar>*)registrar;
                                                                   ^
                                                                    _Nonnull
7 warnings generated.

Compiler message:
lib/home_widget/home_widget.dart:96:29: Error: No named parameter with the name 'style'.
                            style: FontStyle.italic,
                            ^^^^^
../../../../../Developer/flutter/packages/flutter/lib/src/painting/text_style.dart:400:9: Context: Found this candidate, but the arguments don't match.
  const TextStyle({
        ^^^^^^^^^
Target kernel_snapshot failed: Exception: Errors during snapshot creation: null
build failed.
Command PhaseScriptExecution failed with a nonzero exit code
note: Using new build system
note: Building targets in parallel
note: Planning build
note: Constructing build description

Не удалось собрать предварительно скомпилированное приложение для устройства.

Ошибка запуска приложения

...