Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updates google_api_headers dependency #228

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,8 @@ class _CustomSearchScaffoldState extends PlacesAutocompleteState {
onTap: (p) {
displayPrediction(p, context);
},
logo: Row(
children: const [FlutterLogo()],
logo: const Row(
children: [FlutterLogo()],
mainAxisAlignment: MainAxisAlignment.center,
),
);
Expand Down
30 changes: 15 additions & 15 deletions lib/src/flutter_google_places.dart
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class PlacesAutocompleteWidget extends StatefulWidget {
this.region,
this.logo,
this.onError,
Key? key,
super.key,
this.proxyBaseUrl,
this.httpClient,
this.startText,
Expand All @@ -73,7 +73,7 @@ class PlacesAutocompleteWidget extends StatefulWidget {
this.textStyle,
this.themeData,
this.resultTextStyle,
}) : super(key: key);
});

@override
State<PlacesAutocompleteWidget> createState() =>
Expand Down Expand Up @@ -142,7 +142,7 @@ class _PlacesAutocompleteOverlayState extends PlacesAutocompleteState {
],
),
),
const Divider()
const Divider(),
],
);

Expand Down Expand Up @@ -259,11 +259,11 @@ class PlacesAutocompleteResult extends StatefulWidget {
final TextStyle? resultTextStyle;

const PlacesAutocompleteResult({
Key? key,
super.key,
this.onTap,
this.logo,
this.resultTextStyle,
}) : super(key: key);
});

@override
PlacesAutocompleteResultState createState() =>
Expand Down Expand Up @@ -298,10 +298,10 @@ class AppBarPlacesAutoCompleteTextField extends StatefulWidget {
final TextStyle? textStyle;

const AppBarPlacesAutoCompleteTextField({
Key? key,
super.key,
this.textDecoration,
this.textStyle,
}) : super(key: key);
});

@override
AppBarPlacesAutoCompleteTextFieldState createState() =>
Expand Down Expand Up @@ -347,8 +347,8 @@ class AppBarPlacesAutoCompleteTextFieldState
TextStyle _defaultStyle() {
return TextStyle(
color: Theme.of(context).brightness == Brightness.light
? Colors.black.withOpacity(0.9)
: Colors.white.withOpacity(0.9),
? Colors.black.withValues(alpha:0.9)
: Colors.white.withValues(alpha:0.9),
fontSize: 16.0,
);
}
Expand All @@ -360,7 +360,7 @@ class PoweredByGoogleImage extends StatelessWidget {
static const _poweredByGoogleBlack =
"packages/flutter_google_places/assets/google_black.png";

const PoweredByGoogleImage({Key? key}) : super(key: key);
const PoweredByGoogleImage({super.key});

@override
Widget build(BuildContext context) {
Expand All @@ -375,7 +375,7 @@ class PoweredByGoogleImage extends StatelessWidget {
: _poweredByGoogleBlack,
scale: 2.5,
),
)
),
],
);
}
Expand All @@ -387,11 +387,11 @@ class PredictionsListView extends StatelessWidget {
final TextStyle? resultTextStyle;

const PredictionsListView({
Key? key,
super.key,
required this.predictions,
this.onTap,
this.resultTextStyle,
}) : super(key: key);
});

@override
Widget build(BuildContext context) {
Expand All @@ -415,11 +415,11 @@ class PredictionTile extends StatelessWidget {
final TextStyle? resultTextStyle;

const PredictionTile({
Key? key,
super.key,
required this.prediction,
this.onTap,
this.resultTextStyle,
}) : super(key: key);
});

@override
Widget build(BuildContext context) {
Expand Down
6 changes: 3 additions & 3 deletions lib/src/places_autocomplete_field.dart
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class PlacesAutocompleteField extends StatefulWidget {
/// by the decoration to save space for the labels), set the [decoration] to
/// null.
const PlacesAutocompleteField({
Key? key,
super.key,
required this.apiKey,
this.controller,
this.leading,
Expand All @@ -59,7 +59,7 @@ class PlacesAutocompleteField extends StatefulWidget {
this.overlayBorderRadius,
this.textStyle,
this.textStyleFormField,
}) : super(key: key);
});

/// Controls the text being edited.
///
Expand Down Expand Up @@ -239,7 +239,7 @@ class LocationAutocompleteFieldState extends State<PlacesAutocompleteField> {
),
)
else
const SizedBox()
const SizedBox(),
],
);

Expand Down
2 changes: 1 addition & 1 deletion lib/src/places_autocomplete_form_field.dart
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class PlacesAutocompleteFormField extends FormField<String> {
/// to [initalValue] or the empty string.
///
/// For documentation about the various parameters, see the [PlacesAutocompleteField] class
/// and [new PlacesAutocompleteField], the constructor.
/// and [PlacesAutocompleteField], the constructor.
PlacesAutocompleteFormField({
Key? key,
required String apiKey,
Expand Down
12 changes: 6 additions & 6 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
name: flutter_google_places
description: Google places autocomplete widgets for flutter. No wrapper, use https://pub.dev/packages/google_maps_webservice
version: 0.4.0
version: 0.6.0
repository: https://github.com/fluttercommunity/flutter_google_places

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

dependencies:
flutter:
sdk: flutter
google_api_headers: ^1.3.0
google_api_headers: ^4.3.0
google_maps_webservice: ^0.0.20-nullsafety.5
http: ^0.13.4
rxdart: ^0.27.5
http: ">=0.13.4 <2.0.0"
rxdart: ^0.28.0

dev_dependencies:
flutter_test:
sdk: flutter
lint: ^1.10.0
lint: ^2.3.0

flutter:
assets:
Expand Down
Loading