diff --git a/example/pubspec.lock b/example/pubspec.lock index 0738b4a..4e7c3c3 100644 --- a/example/pubspec.lock +++ b/example/pubspec.lock @@ -15,69 +15,55 @@ packages: url: "https://pub.dartlang.org" source: hosted version: "1.6.0" - asn1lib: - dependency: transitive - description: - name: asn1lib - url: "https://pub.dartlang.org" - source: hosted - version: "0.6.5" async: dependency: transitive description: name: async url: "https://pub.dartlang.org" source: hosted - version: "2.5.0-nullsafety.1" + version: "2.5.0" basic_utils: dependency: transitive description: name: basic_utils url: "https://pub.dartlang.org" source: hosted - version: "2.6.3" + version: "2.7.0" boolean_selector: dependency: transitive description: name: boolean_selector url: "https://pub.dartlang.org" source: hosted - version: "2.1.0-nullsafety.1" + version: "2.1.0" characters: dependency: transitive description: name: characters url: "https://pub.dartlang.org" source: hosted - version: "1.1.0-nullsafety.3" + version: "1.1.0" charcode: dependency: transitive description: name: charcode url: "https://pub.dartlang.org" source: hosted - version: "1.2.0-nullsafety.1" + version: "1.2.0" clock: dependency: transitive description: name: clock url: "https://pub.dartlang.org" source: hosted - version: "1.1.0-nullsafety.1" + version: "1.1.0" collection: dependency: transitive description: name: collection url: "https://pub.dartlang.org" source: hosted - version: "1.15.0-nullsafety.3" - community_material_icon: - dependency: transitive - description: - name: community_material_icon - url: "https://pub.dartlang.org" - source: hosted - version: "5.4.55" + version: "1.15.0" convert: dependency: transitive description: @@ -85,13 +71,6 @@ packages: url: "https://pub.dartlang.org" source: hosted version: "2.1.1" - country_pickers: - dependency: transitive - description: - name: country_pickers - url: "https://pub.dartlang.org" - source: hosted - version: "1.3.0" crypto: dependency: transitive description: @@ -119,21 +98,14 @@ packages: name: dropdown_search url: "https://pub.dartlang.org" source: hosted - version: "0.4.6" + version: "0.4.8" fake_async: dependency: transitive description: name: fake_async url: "https://pub.dartlang.org" source: hosted - version: "1.2.0-nullsafety.1" - file_picker: - dependency: transitive - description: - name: file_picker - url: "https://pub.dartlang.org" - source: hosted - version: "2.0.13" + version: "1.2.0" flutter: dependency: "direct main" description: flutter @@ -145,35 +117,49 @@ packages: name: flutter_chips_input url: "https://pub.dartlang.org" source: hosted - version: "1.9.4" + version: "1.9.5" flutter_colorpicker: dependency: transitive description: name: flutter_colorpicker url: "https://pub.dartlang.org" source: hosted - version: "0.3.4" + version: "0.3.5" flutter_datetime_picker: dependency: transitive description: name: flutter_datetime_picker url: "https://pub.dartlang.org" source: hosted - version: "1.4.0" + version: "1.5.0" flutter_form_builder: dependency: "direct main" description: name: flutter_form_builder url: "https://pub.dartlang.org" source: hosted - version: "4.0.0-pre.7" + version: "4.2.0" flutter_keyboard_visibility: dependency: transitive description: name: flutter_keyboard_visibility url: "https://pub.dartlang.org" source: hosted - version: "3.3.0" + version: "4.0.3" + flutter_keyboard_visibility_platform_interface: + dependency: transitive + description: + name: flutter_keyboard_visibility_platform_interface + url: "https://pub.dartlang.org" + source: hosted + version: "1.0.1" + flutter_keyboard_visibility_web: + dependency: transitive + description: + name: flutter_keyboard_visibility_web + url: "https://pub.dartlang.org" + source: hosted + version: "1.0.1" flutter_localizations: dependency: transitive description: flutter @@ -185,7 +171,7 @@ packages: name: flutter_plugin_android_lifecycle url: "https://pub.dartlang.org" source: hosted - version: "1.0.6" + version: "1.0.11" flutter_test: dependency: "direct dev" description: flutter @@ -204,7 +190,7 @@ packages: name: flutter_typeahead url: "https://pub.dartlang.org" source: hosted - version: "1.8.8" + version: "1.9.3" flutter_web_plugins: dependency: transitive description: flutter @@ -223,14 +209,14 @@ packages: name: google_maps_flutter url: "https://pub.dartlang.org" source: hosted - version: "1.0.6" + version: "1.2.0" google_maps_flutter_platform_interface: dependency: transitive description: name: google_maps_flutter_platform_interface url: "https://pub.dartlang.org" source: hosted - version: "1.0.5" + version: "1.2.0" http: dependency: transitive description: @@ -252,48 +238,27 @@ packages: url: "https://pub.dartlang.org" source: hosted version: "2.1.19" - image_picker: - dependency: transitive - description: - name: image_picker - url: "https://pub.dartlang.org" - source: hosted - version: "0.6.7+14" - image_picker_for_web: - dependency: transitive - description: - name: image_picker_for_web - url: "https://pub.dartlang.org" - source: hosted - version: "0.1.0+2" - image_picker_platform_interface: - dependency: transitive - description: - name: image_picker_platform_interface - url: "https://pub.dartlang.org" - source: hosted - version: "1.1.1" intl: - dependency: transitive + dependency: "direct overridden" description: name: intl url: "https://pub.dartlang.org" source: hosted - version: "0.16.1" + version: "0.17.0" js: dependency: transitive description: name: js url: "https://pub.dartlang.org" source: hosted - version: "0.6.2" + version: "0.6.3" json_annotation: dependency: transitive description: name: json_annotation url: "https://pub.dartlang.org" source: hosted - version: "3.0.1" + version: "3.1.1" logging: dependency: transitive description: @@ -307,42 +272,28 @@ packages: name: matcher url: "https://pub.dartlang.org" source: hosted - version: "0.12.10-nullsafety.1" + version: "0.12.10" meta: dependency: transitive description: name: meta url: "https://pub.dartlang.org" source: hosted - version: "1.3.0-nullsafety.3" + version: "1.3.0" path: dependency: transitive description: name: path url: "https://pub.dartlang.org" source: hosted - version: "1.8.0-nullsafety.1" + version: "1.8.0" pedantic: dependency: transitive description: name: pedantic url: "https://pub.dartlang.org" source: hosted - version: "1.9.2" - permission_handler: - dependency: transitive - description: - name: permission_handler - url: "https://pub.dartlang.org" - source: hosted - version: "5.0.1+1" - permission_handler_platform_interface: - dependency: transitive - description: - name: permission_handler_platform_interface - url: "https://pub.dartlang.org" - source: hosted - version: "2.0.1" + version: "1.10.0" petitparser: dependency: transitive description: @@ -350,13 +301,6 @@ packages: url: "https://pub.dartlang.org" source: hosted version: "3.1.0" - phone_number: - dependency: transitive - description: - name: phone_number - url: "https://pub.dartlang.org" - source: hosted - version: "0.8.1" plugin_platform_interface: dependency: transitive description: @@ -370,7 +314,7 @@ packages: name: pointycastle url: "https://pub.dartlang.org" source: hosted - version: "1.0.2" + version: "2.0.1" random_string: dependency: transitive description: @@ -403,21 +347,21 @@ packages: name: source_span url: "https://pub.dartlang.org" source: hosted - version: "1.8.0-nullsafety.2" + version: "1.8.0" stack_trace: dependency: transitive description: name: stack_trace url: "https://pub.dartlang.org" source: hosted - version: "1.10.0-nullsafety.1" + version: "1.10.0" stream_channel: dependency: transitive description: name: stream_channel url: "https://pub.dartlang.org" source: hosted - version: "2.1.0-nullsafety.1" + version: "2.1.0" stream_transform: dependency: transitive description: @@ -431,28 +375,28 @@ packages: name: string_scanner url: "https://pub.dartlang.org" source: hosted - version: "1.1.0-nullsafety.1" + version: "1.1.0" term_glyph: dependency: transitive description: name: term_glyph url: "https://pub.dartlang.org" source: hosted - version: "1.2.0-nullsafety.1" + version: "1.2.0" test_api: dependency: transitive description: name: test_api url: "https://pub.dartlang.org" source: hosted - version: "0.2.19-nullsafety.2" + version: "0.2.19" typed_data: dependency: transitive description: name: typed_data url: "https://pub.dartlang.org" source: hosted - version: "1.3.0-nullsafety.3" + version: "1.3.0" validators: dependency: transitive description: @@ -466,14 +410,14 @@ packages: name: vector_math url: "https://pub.dartlang.org" source: hosted - version: "2.1.0-nullsafety.3" + version: "2.1.0" vin_decoder: dependency: transitive description: name: vin_decoder url: "https://pub.dartlang.org" source: hosted - version: "0.1.2" + version: "0.1.3" xml: dependency: transitive description: @@ -482,5 +426,5 @@ packages: source: hosted version: "4.5.1" sdks: - dart: ">=2.10.0-110 <2.11.0" - flutter: ">=1.22.0 <2.0.0" + dart: ">=2.12.0-0.0 <3.0.0" + flutter: ">=1.22.0" diff --git a/example/pubspec.yaml b/example/pubspec.yaml index ccecedb..d328209 100644 --- a/example/pubspec.yaml +++ b/example/pubspec.yaml @@ -2,15 +2,16 @@ name: example description: Example app for form_builder_map_field package homepage: https://github.com/danvick/form_builder_map_field/tree/master/example version: 1.0.0+1 +publish_to: 'none' environment: - sdk: ">=2.1.0 <3.0.0" + sdk: ">=2.12.0-0 <3.0.0" dependencies: flutter: sdk: flutter - flutter_form_builder: ^4.0.0-pre.7 + flutter_form_builder: ^4.2.0 form_builder_map_field: path: ../ @@ -18,5 +19,8 @@ dev_dependencies: flutter_test: sdk: flutter +dependency_overrides: + intl: ^0.17.0 + flutter: uses-material-design: true diff --git a/lib/form_builder_map_field.dart b/lib/form_builder_map_field.dart index cfe0b12..5b49c77 100644 --- a/lib/form_builder_map_field.dart +++ b/lib/form_builder_map_field.dart @@ -1,6 +1,7 @@ +// @dart=2.9 + library form_builder_map_field; export 'package:google_maps_flutter/google_maps_flutter.dart'; export './src/form_builder_location_field.dart'; -export 'package:google_maps_flutter/google_maps_flutter.dart'; diff --git a/lib/src/form_builder_location_field.dart b/lib/src/form_builder_location_field.dart index ba6fa74..29fb437 100644 --- a/lib/src/form_builder_location_field.dart +++ b/lib/src/form_builder_location_field.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'package:flutter/foundation.dart'; import 'package:flutter/gestures.dart'; import 'package:flutter/material.dart'; @@ -161,16 +163,14 @@ class FormBuilderLocationField extends FormBuilderField { final Color markerIconColor; final double height; final bool allowClear; - final Widget clearIcon; - - // final TextEditingController textEditingController; + final Widget resetIcon; + final TextEditingController controller; FormBuilderLocationField({ Key key, //From Super @required String name, FormFieldValidator validator, - CameraPosition initialValue, InputDecoration decoration = const InputDecoration(), ValueChanged onChanged, ValueTransformer valueTransformer, @@ -180,7 +180,7 @@ class FormBuilderLocationField extends FormBuilderField { VoidCallback onReset, FocusNode focusNode, this.allowClear = true, - this.clearIcon = const Icon(Icons.close), + this.resetIcon = const Icon(Icons.close), this.markerIcon = Icons.person_pin_circle_sharp, this.markerIconSize = 30, this.markerIconColor = Colors.black, @@ -214,9 +214,10 @@ class FormBuilderLocationField extends FormBuilderField { this.onMapCreated, this.initialCameraPosition, this.onCameraMove, + this.controller, }) : super( key: key, - initialValue: initialValue, + initialValue: initialCameraPosition, name: name, validator: validator, valueTransformer: valueTransformer, @@ -228,67 +229,58 @@ class FormBuilderLocationField extends FormBuilderField { decoration: decoration, builder: (FormFieldState field) { final state = field as _FormBuilderLocationFieldState; - - return Row( - crossAxisAlignment: CrossAxisAlignment.center, - children: [ - Expanded( - child: TextField( - decoration: state.decoration(), - enabled: enabled, - // Setting readOnly to be true hides the keyboard - readOnly: true, - controller: state.effectiveController, - focusNode: state.effectiveFocusNode, - // style: style, - // autofocus: autofocus, - ), - ), - if (allowClear && enabled && state.value != null) - InkWell( - child: clearIcon, - onTap: () { - state.didChange(null); - FocusScope.of(state.context).requestFocus(FocusNode()); - }, - ), - ], + final InputDecoration effectiveDecoration = + (decoration ?? const InputDecoration()).applyDefaults(Theme.of(field.context).inputDecorationTheme); + + return TextField( + decoration: effectiveDecoration.copyWith( + errorText: field.errorText, + suffixIcon: state.shouldShowClearIcon(effectiveDecoration) + ? IconButton( + icon: resetIcon, + onPressed: state.clear, + ) + : null, + ), + enabled: enabled, + // Setting readOnly to be true hides the keyboard + readOnly: true, + controller: state._textFieldController, + focusNode: state.effectiveFocusNode, + // style: style, + // autofocus: autofocus, ); }, ); @override - _FormBuilderLocationFieldState createState() => - _FormBuilderLocationFieldState(); + _FormBuilderLocationFieldState createState() => _FormBuilderLocationFieldState(); } -class _FormBuilderLocationFieldState - extends FormBuilderFieldState { - TextEditingController _controller; - - TextEditingController get effectiveController => - /*widget.textEditingController ??*/ _controller; +class _FormBuilderLocationFieldState extends FormBuilderFieldState { + TextEditingController _textFieldController; String get valueString => value?.target?.toString() ?? ''; @override void initState() { super.initState(); - _controller = TextEditingController(); - effectiveController.text = valueString; - effectiveFocusNode.addListener(_handleFocus); + _textFieldController = widget.controller ?? TextEditingController(); + effectiveFocusNode?.addListener(_handleFocus); } @override void dispose() { - _controller.dispose(); + // Dispose the _textFieldController when initState created it + if (null == widget.controller) { + _textFieldController.dispose(); + } super.dispose(); } Future _handleFocus() async { if (effectiveFocusNode.hasFocus && widget.enabled) { - await Future.microtask( - () => FocusScope.of(context).requestFocus(FocusNode())); + await Future.microtask(() => FocusScope.of(context).requestFocus(FocusNode())); final newValue = await showDialog( context: context, builder: (context) => LocationFieldDialog( @@ -335,6 +327,24 @@ class _FormBuilderLocationFieldState @override void didChange(CameraPosition value) { super.didChange(value); - effectiveController.text = valueString ?? ''; + _textFieldController.text = widget.valueTransformer?.call(value)?.toString() ?? valueString; + widget.onChanged?.call(value); } + + void clear() async { + _hideKeyboard(); + // Fix for ripple effect throwing exception + // and the field staying gray. + // https://github.com/flutter/flutter/issues/36324 + WidgetsBinding.instance.addPostFrameCallback((_) { + setState(() => _textFieldController.clear()); + }); + } + + void _hideKeyboard() { + Future.microtask(() => FocusScope.of(context).requestFocus(FocusNode())); + } + + bool shouldShowClearIcon([InputDecoration decoration]) => + widget.resetIcon != null && (_textFieldController.text.isNotEmpty || effectiveFocusNode.hasFocus) && decoration?.suffixIcon == null; } diff --git a/lib/src/location_field_dialog.dart b/lib/src/location_field_dialog.dart index 647e1e4..95a24e4 100644 --- a/lib/src/location_field_dialog.dart +++ b/lib/src/location_field_dialog.dart @@ -1,3 +1,5 @@ +// @dart=2.9 + import 'dart:async'; import 'package:flutter/foundation.dart'; @@ -159,7 +161,7 @@ class _LocationFieldDialogState extends State { Padding( padding: const EdgeInsets.all(8.0), child: Row( - mainAxisAlignment: MainAxisAlignment.end, + mainAxisAlignment: MainAxisAlignment.start, children: [ FloatingActionButton( backgroundColor: theme.scaffoldBackgroundColor, diff --git a/pubspec.lock b/pubspec.lock index 03f5b1c..393ee18 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -7,77 +7,63 @@ packages: name: archive url: "https://pub.dartlang.org" source: hosted - version: "2.0.11" + version: "2.0.13" args: dependency: transitive description: name: args url: "https://pub.dartlang.org" source: hosted - version: "1.5.2" - asn1lib: - dependency: transitive - description: - name: asn1lib - url: "https://pub.dartlang.org" - source: hosted - version: "0.6.5" + version: "1.6.0" async: dependency: transitive description: name: async url: "https://pub.dartlang.org" source: hosted - version: "2.5.0-nullsafety.1" + version: "2.5.0-nullsafety.3" basic_utils: dependency: transitive description: name: basic_utils url: "https://pub.dartlang.org" source: hosted - version: "2.6.0" + version: "2.7.0" boolean_selector: dependency: transitive description: name: boolean_selector url: "https://pub.dartlang.org" source: hosted - version: "2.1.0-nullsafety.1" + version: "2.1.0-nullsafety.3" characters: dependency: transitive description: name: characters url: "https://pub.dartlang.org" source: hosted - version: "1.1.0-nullsafety.3" + version: "1.1.0-nullsafety.5" charcode: dependency: transitive description: name: charcode url: "https://pub.dartlang.org" source: hosted - version: "1.2.0-nullsafety.1" + version: "1.2.0-nullsafety.3" clock: dependency: transitive description: name: clock url: "https://pub.dartlang.org" source: hosted - version: "1.1.0-nullsafety.1" + version: "1.1.0-nullsafety.3" collection: dependency: transitive description: name: collection url: "https://pub.dartlang.org" source: hosted - version: "1.15.0-nullsafety.3" - community_material_icon: - dependency: transitive - description: - name: community_material_icon - url: "https://pub.dartlang.org" - source: hosted - version: "5.4.55" + version: "1.15.0-nullsafety.5" convert: dependency: transitive description: @@ -85,20 +71,13 @@ packages: url: "https://pub.dartlang.org" source: hosted version: "2.1.1" - country_pickers: - dependency: transitive - description: - name: country_pickers - url: "https://pub.dartlang.org" - source: hosted - version: "1.3.0" crypto: dependency: transitive description: name: crypto url: "https://pub.dartlang.org" source: hosted - version: "2.1.3" + version: "2.1.5" date_range_picker: dependency: transitive description: @@ -119,21 +98,14 @@ packages: name: dropdown_search url: "https://pub.dartlang.org" source: hosted - version: "0.4.6" + version: "0.4.8" fake_async: dependency: transitive description: name: fake_async url: "https://pub.dartlang.org" source: hosted - version: "1.2.0-nullsafety.1" - file_picker: - dependency: transitive - description: - name: file_picker - url: "https://pub.dartlang.org" - source: hosted - version: "2.0.13" + version: "1.2.0-nullsafety.3" flutter: dependency: "direct main" description: flutter @@ -145,35 +117,49 @@ packages: name: flutter_chips_input url: "https://pub.dartlang.org" source: hosted - version: "1.9.4" + version: "1.9.5" flutter_colorpicker: dependency: transitive description: name: flutter_colorpicker url: "https://pub.dartlang.org" source: hosted - version: "0.3.4" + version: "0.3.5" flutter_datetime_picker: dependency: transitive description: name: flutter_datetime_picker url: "https://pub.dartlang.org" source: hosted - version: "1.4.0" + version: "1.5.0" flutter_form_builder: dependency: "direct main" description: name: flutter_form_builder url: "https://pub.dartlang.org" source: hosted - version: "4.0.0-pre.7" + version: "4.2.0" flutter_keyboard_visibility: dependency: transitive description: name: flutter_keyboard_visibility url: "https://pub.dartlang.org" source: hosted - version: "3.3.0" + version: "4.0.3" + flutter_keyboard_visibility_platform_interface: + dependency: transitive + description: + name: flutter_keyboard_visibility_platform_interface + url: "https://pub.dartlang.org" + source: hosted + version: "1.0.1" + flutter_keyboard_visibility_web: + dependency: transitive + description: + name: flutter_keyboard_visibility_web + url: "https://pub.dartlang.org" + source: hosted + version: "1.0.1" flutter_localizations: dependency: transitive description: flutter @@ -185,7 +171,7 @@ packages: name: flutter_plugin_android_lifecycle url: "https://pub.dartlang.org" source: hosted - version: "1.0.6" + version: "1.0.11" flutter_test: dependency: "direct dev" description: flutter @@ -204,7 +190,7 @@ packages: name: flutter_typeahead url: "https://pub.dartlang.org" source: hosted - version: "1.8.8" + version: "1.9.3" flutter_web_plugins: dependency: transitive description: flutter @@ -216,14 +202,14 @@ packages: name: google_maps_flutter url: "https://pub.dartlang.org" source: hosted - version: "1.0.6" + version: "1.2.0" google_maps_flutter_platform_interface: dependency: transitive description: name: google_maps_flutter_platform_interface url: "https://pub.dartlang.org" source: hosted - version: "1.0.5" + version: "1.2.0" http: dependency: transitive description: @@ -245,48 +231,27 @@ packages: url: "https://pub.dartlang.org" source: hosted version: "2.1.19" - image_picker: - dependency: transitive - description: - name: image_picker - url: "https://pub.dartlang.org" - source: hosted - version: "0.6.7+14" - image_picker_for_web: - dependency: transitive - description: - name: image_picker_for_web - url: "https://pub.dartlang.org" - source: hosted - version: "0.1.0+2" - image_picker_platform_interface: - dependency: transitive - description: - name: image_picker_platform_interface - url: "https://pub.dartlang.org" - source: hosted - version: "1.1.1" intl: - dependency: transitive + dependency: "direct overridden" description: name: intl url: "https://pub.dartlang.org" source: hosted - version: "0.16.1" + version: "0.17.0-nullsafety.2" js: dependency: transitive description: name: js url: "https://pub.dartlang.org" source: hosted - version: "0.6.2" + version: "0.6.3-nullsafety.3" json_annotation: dependency: transitive description: name: json_annotation url: "https://pub.dartlang.org" source: hosted - version: "3.0.1" + version: "3.1.1" logging: dependency: transitive description: @@ -300,42 +265,28 @@ packages: name: matcher url: "https://pub.dartlang.org" source: hosted - version: "0.12.10-nullsafety.1" + version: "0.12.10-nullsafety.3" meta: dependency: transitive description: name: meta url: "https://pub.dartlang.org" source: hosted - version: "1.3.0-nullsafety.3" + version: "1.3.0-nullsafety.6" path: dependency: transitive description: name: path url: "https://pub.dartlang.org" source: hosted - version: "1.8.0-nullsafety.1" + version: "1.8.0-nullsafety.3" pedantic: dependency: transitive description: name: pedantic url: "https://pub.dartlang.org" source: hosted - version: "1.8.0+1" - permission_handler: - dependency: transitive - description: - name: permission_handler - url: "https://pub.dartlang.org" - source: hosted - version: "5.0.1+1" - permission_handler_platform_interface: - dependency: transitive - description: - name: permission_handler_platform_interface - url: "https://pub.dartlang.org" - source: hosted - version: "2.0.1" + version: "1.10.0" petitparser: dependency: transitive description: @@ -343,13 +294,6 @@ packages: url: "https://pub.dartlang.org" source: hosted version: "3.1.0" - phone_number: - dependency: transitive - description: - name: phone_number - url: "https://pub.dartlang.org" - source: hosted - version: "0.8.1" plugin_platform_interface: dependency: transitive description: @@ -363,7 +307,7 @@ packages: name: pointycastle url: "https://pub.dartlang.org" source: hosted - version: "1.0.2" + version: "2.0.1" random_string: dependency: transitive description: @@ -396,21 +340,21 @@ packages: name: source_span url: "https://pub.dartlang.org" source: hosted - version: "1.8.0-nullsafety.2" + version: "1.8.0-nullsafety.4" stack_trace: dependency: transitive description: name: stack_trace url: "https://pub.dartlang.org" source: hosted - version: "1.10.0-nullsafety.1" + version: "1.10.0-nullsafety.6" stream_channel: dependency: transitive description: name: stream_channel url: "https://pub.dartlang.org" source: hosted - version: "2.1.0-nullsafety.1" + version: "2.1.0-nullsafety.3" stream_transform: dependency: transitive description: @@ -424,28 +368,28 @@ packages: name: string_scanner url: "https://pub.dartlang.org" source: hosted - version: "1.1.0-nullsafety.1" + version: "1.1.0-nullsafety.3" term_glyph: dependency: transitive description: name: term_glyph url: "https://pub.dartlang.org" source: hosted - version: "1.2.0-nullsafety.1" + version: "1.2.0-nullsafety.3" test_api: dependency: transitive description: name: test_api url: "https://pub.dartlang.org" source: hosted - version: "0.2.19-nullsafety.2" + version: "0.2.19-nullsafety.6" typed_data: dependency: transitive description: name: typed_data url: "https://pub.dartlang.org" source: hosted - version: "1.3.0-nullsafety.3" + version: "1.3.0-nullsafety.5" validators: dependency: transitive description: @@ -459,14 +403,14 @@ packages: name: vector_math url: "https://pub.dartlang.org" source: hosted - version: "2.1.0-nullsafety.3" + version: "2.1.0-nullsafety.5" vin_decoder: dependency: transitive description: name: vin_decoder url: "https://pub.dartlang.org" source: hosted - version: "0.1.2" + version: "0.1.3" xml: dependency: transitive description: @@ -475,5 +419,5 @@ packages: source: hosted version: "4.5.1" sdks: - dart: ">=2.10.0-110 <2.11.0" - flutter: ">=1.22.0 <2.0.0" + dart: ">=2.12.0-0.0 <3.0.0" + flutter: ">=1.22.0" diff --git a/pubspec.yaml b/pubspec.yaml index e5e9f03..471da98 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -4,16 +4,19 @@ version: 1.0.0-alpha.1 homepage: https://github.com/danvick/form_builder_map_field environment: - sdk: ">=2.6.0 <3.0.0" + sdk: ">=2.12.0-0 <3.0.0" dependencies: flutter: sdk: flutter - flutter_form_builder: ^4.0.0-pre.7 - google_maps_flutter: ^1.0.6 + flutter_form_builder: ^4.2.0 + google_maps_flutter: ^1.2.0 dev_dependencies: flutter_test: sdk: flutter +dependency_overrides: + intl: 0.17.0-nullsafety.2 + flutter: