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

updated dependencies #153

Open
wants to merge 2 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
13 changes: 13 additions & 0 deletions example/ios/Flutter/flutter_export_environment.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/sh
# This is a generated file; do not edit or check into version control.
export "FLUTTER_ROOT=/Users/athul/AIN/Softwares/flutter"
export "FLUTTER_APPLICATION_PATH=/Users/athul/AIN/Code/Packages/google_map_location_picker/example"
export "FLUTTER_TARGET=lib/main.dart"
export "FLUTTER_BUILD_DIR=build"
export "SYMROOT=${SOURCE_ROOT}/../build/ios"
export "FLUTTER_BUILD_NAME=1.0.0"
export "FLUTTER_BUILD_NUMBER=1.0.0"
export "DART_OBFUSCATION=false"
export "TRACK_WIDGET_CREATION=false"
export "TREE_SHAKE_ICONS=false"
export "PACKAGE_CONFIG=.packages"
28 changes: 14 additions & 14 deletions example/lib/generated/i18n.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ import 'package:flutter/material.dart';
class S implements WidgetsLocalizations {
const S();

static S current;
static S? current;

static const GeneratedLocalizationsDelegate delegate =
GeneratedLocalizationsDelegate();

static S of(BuildContext context) => Localizations.of<S>(context, S);
static S? of(BuildContext context) => Localizations.of<S>(context, S);

@override
TextDirection get textDirection => TextDirection.ltr;
Expand All @@ -33,7 +33,7 @@ class $en extends S {
const $en();
}

class GeneratedLocalizationsDelegate extends LocalizationsDelegate<S> {
class GeneratedLocalizationsDelegate extends LocalizationsDelegate<S?> {
const GeneratedLocalizationsDelegate();

List<Locale> get supportedLocales {
Expand All @@ -44,8 +44,8 @@ class GeneratedLocalizationsDelegate extends LocalizationsDelegate<S> {
}

LocaleListResolutionCallback listResolution(
{Locale fallback, bool withCountry = true}) {
return (List<Locale> locales, Iterable<Locale> supported) {
{Locale? fallback, bool withCountry = true}) {
return (List<Locale>? locales, Iterable<Locale> supported) {
if (locales == null || locales.isEmpty) {
return fallback ?? supported.first;
} else {
Expand All @@ -55,29 +55,29 @@ class GeneratedLocalizationsDelegate extends LocalizationsDelegate<S> {
}

LocaleResolutionCallback resolution(
{Locale fallback, bool withCountry = true}) {
return (Locale locale, Iterable<Locale> supported) {
{Locale? fallback, bool withCountry = true}) {
return (Locale? locale, Iterable<Locale> supported) {
return _resolve(locale, fallback, supported, withCountry);
};
}

@override
Future<S> load(Locale locale) {
Future<S?> load(Locale locale) {
final String lang = getLang(locale);
if (lang != null) {
switch (lang) {
case "ar":
S.current = const $ar();
return SynchronousFuture<S>(S.current);
return SynchronousFuture<S?>(S.current);
case "en":
S.current = const $en();
return SynchronousFuture<S>(S.current);
return SynchronousFuture<S?>(S.current);
default:
// NO-OP.
}
}
S.current = const S();
return SynchronousFuture<S>(S.current);
return SynchronousFuture<S?>(S.current);
}

@override
Expand All @@ -89,7 +89,7 @@ class GeneratedLocalizationsDelegate extends LocalizationsDelegate<S> {
///
/// Internal method to resolve a locale from a list of locales.
///
Locale _resolve(Locale locale, Locale fallback, Iterable<Locale> supported,
Locale _resolve(Locale? locale, Locale? fallback, Iterable<Locale> supported,
bool withCountry) {
if (locale == null || !_isSupported(locale, withCountry)) {
return fallback ?? supported.first;
Expand Down Expand Up @@ -125,7 +125,7 @@ class GeneratedLocalizationsDelegate extends LocalizationsDelegate<S> {
// If no country requirement is requested, check if this locale has no country.
if (true != withCountry &&
(supportedLocale.countryCode == null ||
supportedLocale.countryCode.isEmpty)) {
supportedLocale.countryCode!.isEmpty)) {
return true;
}
}
Expand All @@ -136,6 +136,6 @@ class GeneratedLocalizationsDelegate extends LocalizationsDelegate<S> {

String getLang(Locale l) => l == null
? null
: l.countryCode != null && l.countryCode.isEmpty
: l.countryCode != null && l.countryCode!.isEmpty
? l.languageCode
: l.toString();
8 changes: 4 additions & 4 deletions example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import 'package:flutter_localizations/flutter_localizations.dart';
import 'package:google_map_location_picker/generated/l10n.dart'
as location_picker;
import 'package:google_map_location_picker/google_map_location_picker.dart';
import 'package:google_map_location_picker_example/keys.dart';
import './keys.dart';
import 'package:google_maps_flutter/google_maps_flutter.dart';

import 'generated/i18n.dart';
Expand All @@ -16,7 +16,7 @@ class MyApp extends StatefulWidget {
}

class _MyAppState extends State<MyApp> {
LocationResult _pickedLocation;
LocationResult? _pickedLocation;

@override
Widget build(BuildContext context) {
Expand Down Expand Up @@ -48,9 +48,9 @@ class _MyAppState extends State<MyApp> {
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
RaisedButton(
ElevatedButton(
onPressed: () async {
LocationResult result = await showLocationPicker(
LocationResult? result = await showLocationPicker(
context,
apiKey,
initialCenter: LatLng(31.1975844, 29.9598339),
Expand Down
22 changes: 11 additions & 11 deletions example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ packages:
name: cupertino_icons
url: "https://pub.dartlang.org"
source: hosted
version: "1.0.0"
version: "1.0.2"
fake_async:
dependency: transitive
description:
Expand All @@ -80,7 +80,7 @@ packages:
name: flutter_plugin_android_lifecycle
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.0"
version: "2.0.1"
flutter_test:
dependency: "direct dev"
description: flutter
Expand All @@ -97,49 +97,49 @@ packages:
name: geolocator
url: "https://pub.dartlang.org"
source: hosted
version: "6.2.1"
version: "7.0.1"
geolocator_platform_interface:
dependency: transitive
description:
name: geolocator_platform_interface
url: "https://pub.dartlang.org"
source: hosted
version: "1.0.9"
version: "2.0.0"
geolocator_web:
dependency: transitive
description:
name: geolocator_web
url: "https://pub.dartlang.org"
source: hosted
version: "1.0.1"
version: "2.0.3"
google_map_location_picker:
dependency: "direct dev"
description:
path: ".."
relative: true
source: path
version: "4.1.6"
version: "4.1.7"
google_maps_flutter:
dependency: transitive
description:
name: google_maps_flutter
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.1"
version: "2.0.2"
google_maps_flutter_platform_interface:
dependency: transitive
description:
name: google_maps_flutter_platform_interface
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.0"
version: "2.0.4"
http:
dependency: transitive
description:
name: http
url: "https://pub.dartlang.org"
source: hosted
version: "0.13.0"
version: "0.13.1"
http_parser:
dependency: transitive
description:
Expand Down Expand Up @@ -216,7 +216,7 @@ packages:
name: plugin_platform_interface
url: "https://pub.dartlang.org"
source: hosted
version: "1.0.3"
version: "2.0.0"
provider:
dependency: transitive
description:
Expand Down Expand Up @@ -293,5 +293,5 @@ packages:
source: hosted
version: "2.1.0"
sdks:
dart: ">=2.12.0-259.9.beta <3.0.0"
dart: ">=2.12.0 <3.0.0"
flutter: ">=2.0.0"
2 changes: 1 addition & 1 deletion example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ publish_to: 'none'
version: 1.0.0

environment:
sdk: ">=2.2.2 <3.0.0"
sdk: '>=2.12.0 <3.0.0'

dependencies:
flutter:
Expand Down
4 changes: 2 additions & 2 deletions lib/generated/intl/messages_all.dart
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ Map<String, LibraryLoader> _deferredLibraries = {
'tr': () => new Future.value(null),
};

MessageLookupByLibrary _findExact(String localeName) {
MessageLookupByLibrary? _findExact(String localeName) {
switch (localeName) {
case 'ar':
return messages_ar.messages;
Expand Down Expand Up @@ -91,7 +91,7 @@ bool _messagesExistFor(String locale) {
}
}

MessageLookupByLibrary _findGeneratedMessagesFor(String locale) {
MessageLookupByLibrary? _findGeneratedMessagesFor(String locale) {
var actualLocale = Intl.verifiedLocale(locale, _messagesExistFor,
onFailure: (_) => null);
if (actualLocale == null) return null;
Expand Down
2 changes: 1 addition & 1 deletion lib/generated/intl/messages_ar.dart
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ typedef String MessageIfAbsent(String messageStr, List<dynamic> args);
class MessageLookup extends MessageLookupByLibrary {
String get localeName => 'ar';

final messages = _notInlinedMessages(_notInlinedMessages);
final Map<String, dynamic> messages = _notInlinedMessages(_notInlinedMessages);
static _notInlinedMessages(_) => <String, Function> {
"access_to_location_denied" : MessageLookupByLibrary.simpleMessage("تم رفض إذن الوصل الي الموقع الجغرافي"),
"access_to_location_permanently_denied" : MessageLookupByLibrary.simpleMessage("تم رفض إذن الوصل الي الموقع الجغرافي بشكل نهائي"),
Expand Down
2 changes: 1 addition & 1 deletion lib/generated/intl/messages_de.dart
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ typedef String MessageIfAbsent(String messageStr, List<dynamic> args);
class MessageLookup extends MessageLookupByLibrary {
String get localeName => 'de';

final messages = _notInlinedMessages(_notInlinedMessages);
final Map<String, dynamic> messages = _notInlinedMessages(_notInlinedMessages);
static _notInlinedMessages(_) => <String, Function> {
"access_to_location_denied" : MessageLookupByLibrary.simpleMessage("Zugriff auf Standort verweigert"),
"access_to_location_permanently_denied" : MessageLookupByLibrary.simpleMessage("Zugriff auf Standort permanent verweigert"),
Expand Down
2 changes: 1 addition & 1 deletion lib/generated/intl/messages_en.dart
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ typedef String MessageIfAbsent(String messageStr, List<dynamic> args);
class MessageLookup extends MessageLookupByLibrary {
String get localeName => 'en';

final messages = _notInlinedMessages(_notInlinedMessages);
final Map<String, dynamic> messages = _notInlinedMessages(_notInlinedMessages);
static _notInlinedMessages(_) => <String, Function> {
"access_to_location_denied" : MessageLookupByLibrary.simpleMessage("Access to location denied"),
"access_to_location_permanently_denied" : MessageLookupByLibrary.simpleMessage("Access to location permanently denied"),
Expand Down
2 changes: 1 addition & 1 deletion lib/generated/intl/messages_es.dart
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ typedef String MessageIfAbsent(String messageStr, List<dynamic> args);
class MessageLookup extends MessageLookupByLibrary {
String get localeName => 'es';

final messages = _notInlinedMessages(_notInlinedMessages);
final Map<String, dynamic> messages = _notInlinedMessages(_notInlinedMessages);
static _notInlinedMessages(_) => <String, Function> {
"access_to_location_denied" : MessageLookupByLibrary.simpleMessage("Acceso a la ubicación denegado"),
"access_to_location_permanently_denied" : MessageLookupByLibrary.simpleMessage("Acceso a la ubicación denegado permanentemente"),
Expand Down
2 changes: 1 addition & 1 deletion lib/generated/intl/messages_fr.dart
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ typedef String MessageIfAbsent(String messageStr, List<dynamic> args);
class MessageLookup extends MessageLookupByLibrary {
String get localeName => 'fr';

final messages = _notInlinedMessages(_notInlinedMessages);
final Map<String, dynamic> messages = _notInlinedMessages(_notInlinedMessages);
static _notInlinedMessages(_) => <String, Function> {
"access_to_location_denied" : MessageLookupByLibrary.simpleMessage("Accès à l\'emplacement refusé"),
"access_to_location_permanently_denied" : MessageLookupByLibrary.simpleMessage("Accès à l\'emplacement refusé définitivement"),
Expand Down
2 changes: 1 addition & 1 deletion lib/generated/intl/messages_it.dart
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ typedef String MessageIfAbsent(String messageStr, List<dynamic> args);
class MessageLookup extends MessageLookupByLibrary {
String get localeName => 'it';

final messages = _notInlinedMessages(_notInlinedMessages);
final Map<String, dynamic> messages = _notInlinedMessages(_notInlinedMessages);
static _notInlinedMessages(_) => <String, Function> {
"access_to_location_denied" : MessageLookupByLibrary.simpleMessage("Accesso alla posizione rifiutato"),
"access_to_location_permanently_denied" : MessageLookupByLibrary.simpleMessage("Accesso alla posizione rifiutato permanentemente"),
Expand Down
2 changes: 1 addition & 1 deletion lib/generated/intl/messages_pt.dart
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ typedef String MessageIfAbsent(String messageStr, List<dynamic> args);
class MessageLookup extends MessageLookupByLibrary {
String get localeName => 'pt';

final messages = _notInlinedMessages(_notInlinedMessages);
final Map<String, dynamic> messages = _notInlinedMessages(_notInlinedMessages);
static _notInlinedMessages(_) => <String, Function> {
"access_to_location_denied" : MessageLookupByLibrary.simpleMessage("Acesso ao local negado"),
"access_to_location_permanently_denied" : MessageLookupByLibrary.simpleMessage("Acesso ao local negado permanentemente"),
Expand Down
2 changes: 1 addition & 1 deletion lib/generated/intl/messages_ru.dart
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ typedef String MessageIfAbsent(String messageStr, List<dynamic> args);
class MessageLookup extends MessageLookupByLibrary {
String get localeName => 'ru';

final messages = _notInlinedMessages(_notInlinedMessages);
final Map<String, dynamic> messages = _notInlinedMessages(_notInlinedMessages);
static _notInlinedMessages(_) => <String, Function> {
"access_to_location_denied" : MessageLookupByLibrary.simpleMessage("Доступ к местоположению запрещен"),
"access_to_location_permanently_denied" : MessageLookupByLibrary.simpleMessage("Доступ к местоположению запрещен навсегда"),
Expand Down
2 changes: 1 addition & 1 deletion lib/generated/intl/messages_sr.dart
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ typedef String MessageIfAbsent(String messageStr, List<dynamic> args);
class MessageLookup extends MessageLookupByLibrary {
String get localeName => 'sr';

final messages = _notInlinedMessages(_notInlinedMessages);
final Map<String, dynamic> messages = _notInlinedMessages(_notInlinedMessages);
static _notInlinedMessages(_) => <String, Function> {
"access_to_location_denied" : MessageLookupByLibrary.simpleMessage("Onemogućen pristup lokaciji"),
"allow_access_to_the_location_services" : MessageLookupByLibrary.simpleMessage("Omogućite pristup Vašoj lokaciji"),
Expand Down
2 changes: 1 addition & 1 deletion lib/generated/intl/messages_tr.dart
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ typedef String MessageIfAbsent(String messageStr, List<dynamic> args);
class MessageLookup extends MessageLookupByLibrary {
String get localeName => 'tr';

final messages = _notInlinedMessages(_notInlinedMessages);
final Map<String, dynamic> messages = _notInlinedMessages(_notInlinedMessages);
static _notInlinedMessages(_) => <String, Function> {
"access_to_location_denied" : MessageLookupByLibrary.simpleMessage("Konum erişimi reddedildi"),
"access_to_location_permanently_denied" : MessageLookupByLibrary.simpleMessage("Konuma erişim kalıcı olarak reddedildi"),
Expand Down
4 changes: 2 additions & 2 deletions lib/generated/l10n.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading