Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
martijn00 committed Oct 8, 2024
1 parent 28bf243 commit 6ea0e33
Show file tree
Hide file tree
Showing 8 changed files with 23 additions and 14 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Flutter geocoding plugin

[![pub package](https://img.shields.io/pub/v/geocoding.svg)](https://pub.dartlang.org/packages/geocoding)
[![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](https://opensource.org/licenses/MIT)
[![style: effective dart](https://img.shields.io/badge/style-effective_dart-40c4ff.svg)](https://github.com/tenhobi/effective_dart)
[![Buid status](https://github.com/Baseflow/flutter-geocoding/workflows/Geocoding/badge.svg)](https://github.com/Baseflow/flutter-geocoding/actions?query=workflow%3AGeocoding)
[![codecov](https://codecov.io/gh/Baseflow/flutter-geocoding/branch/main/graph/badge.svg)](https://codecov.io/gh/Baseflow/flutter-geocoding)

The Flutter geocoding plugin is build following the federated plugin architecture. A detailed explanation of the federated plugin concept can be found in the [Flutter documentation](https://flutter.dev/docs/development/packages-and-plugins/developing-packages#federated-plugins). This means the geocoding plugin is separated into the following packages:

1. [`geocoding`][1]: the app facing package. This is the package users depend on to use the plugin in their project. For details on how to use the [`geocoding`][1] plugin you can refer to its [README.md][2] file. At this moment the Android and iOS platform implementations are also part of this package;
Expand Down
4 changes: 2 additions & 2 deletions geocoding/example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ void main() {
/// Example [Widget] showing the use of the Geocode plugin
class GeocodeWidget extends StatefulWidget {
/// Constructs the [GeocodeWidget] class
const GeocodeWidget({Key? key}) : super(key: key);
const GeocodeWidget({super.key});

@override
State<GeocodeWidget> createState() => _GeocodeWidgetState();
Expand Down Expand Up @@ -179,7 +179,7 @@ class _GeocodeWidgetState extends State<GeocodeWidget> {
}

class _GeocodingExample extends StatelessWidget {
const _GeocodingExample({Key? key}) : super(key: key);
const _GeocodingExample();

@override
Widget build(BuildContext context) {
Expand Down
3 changes: 2 additions & 1 deletion geocoding/example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ description: Demonstrates how to use the geocoding plugin.
publish_to: 'none' # Remove this line if you wish to publish to pub.dev

environment:
sdk: '>=2.12.0 <4.0.0'
sdk: ">=3.3.0 <4.0.0"
flutter: ">=3.0.0"

dependencies:
baseflow_plugin_template: ^2.1.2
Expand Down
4 changes: 2 additions & 2 deletions geocoding/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ repository: https://github.com/baseflow/flutter-geocoding/tree/main/geocoding
issue_tracker: https://github.com/Baseflow/flutter-geocoding/issues

environment:
sdk: ">=2.17.0 <4.0.0"
sdk: ">=3.3.0 <4.0.0"
flutter: ">=3.0.0"

dependencies:
Expand All @@ -20,7 +20,7 @@ dev_dependencies:
flutter_test:
sdk: flutter

flutter_lints: ^3.0.1
flutter_lints: ^5.0.0
mockito: ^5.0.0
plugin_platform_interface: ^2.0.0

Expand Down
4 changes: 2 additions & 2 deletions geocoding_android/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ repository: https://github.com/baseflow/flutter-geocoding/tree/main/geocoding_an
issue_tracker: https://github.com/Baseflow/flutter-geocoding/issues

environment:
sdk: ">=2.17.0 <4.0.0"
sdk: ">=3.3.0 <4.0.0"
flutter: ">=3.0.0"

dependencies:
Expand All @@ -18,7 +18,7 @@ dev_dependencies:
flutter_test:
sdk: flutter

flutter_lints: ^3.0.1
flutter_lints: ^5.0.0
mockito: ^5.0.0
plugin_platform_interface: ^2.0.0

Expand Down
3 changes: 2 additions & 1 deletion geocoding_ios/example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ description: Demonstrates how to use the geocoding plugin.
publish_to: 'none' # Remove this line if you wish to publish to pub.dev

environment:
sdk: '>=2.12.0 <3.0.0'
sdk: ">=3.3.0 <4.0.0"
flutter: ">=3.0.0"

dependencies:
flutter:
Expand Down
4 changes: 2 additions & 2 deletions geocoding_ios/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ repository: https://github.com/baseflow/flutter-geocoding/tree/main/geocoding_io
issue_tracker: https://github.com/Baseflow/flutter-geocoding/issues

environment:
sdk: ">=2.17.0 <4.0.0"
sdk: ">=3.3.0 <4.0.0"
flutter: ">=3.0.0"

dependencies:
Expand All @@ -18,7 +18,7 @@ dev_dependencies:
flutter_test:
sdk: flutter

flutter_lints: ^3.0.1
flutter_lints: ^5.0.0
mockito: ^5.0.0
plugin_platform_interface: ^2.0.0

Expand Down
9 changes: 5 additions & 4 deletions geocoding_platform_interface/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ homepage: https://github.com/baseflow/flutter-geocoding/tree/main/geocoding_plat
# less-clean API. See https://flutter.dev/go/platform-interface-breaking-changes
version: 3.2.1

environment:
sdk: ">=3.3.0 <4.0.0"
flutter: ">=3.0.0"

dependencies:
flutter:
sdk: flutter
Expand All @@ -16,9 +20,6 @@ dev_dependencies:
flutter_test:
sdk: flutter

flutter_lints: ^3.0.1
flutter_lints: ^5.0.0
mockito: ^5.0.0

environment:
sdk: '>=2.12.0 <4.0.0'
flutter: ">=1.10.0"

0 comments on commit 6ea0e33

Please sign in to comment.