Skip to content

Commit

Permalink
Release v2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
lhamycodes committed Jul 6, 2021
1 parent b39c728 commit 8e1455a
Show file tree
Hide file tree
Showing 9 changed files with 152 additions and 217 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,8 @@ Feature:
- Improved Documentation

## [1.0.4] - 26th January, 2020.
- Improved Stability
- Improved Stability

## [2.0.0] - 6th July, 2021.

- Migrate Package to support null-safety
109 changes: 37 additions & 72 deletions example/pubspec.lock
Original file line number Diff line number Diff line change
@@ -1,69 +1,62 @@
# Generated by pub
# See https://dart.dev/tools/pub/glossary#lockfile
packages:
archive:
dependency: transitive
description:
name: archive
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.11"
args:
dependency: transitive
description:
name: args
url: "https://pub.dartlang.org"
source: hosted
version: "1.5.2"
async:
dependency: transitive
description:
name: async
url: "https://pub.dartlang.org"
source: hosted
version: "2.4.0"
version: "2.6.1"
boolean_selector:
dependency: transitive
description:
name: boolean_selector
url: "https://pub.dartlang.org"
source: hosted
version: "1.0.5"
charcode:
version: "2.1.0"
characters:
dependency: transitive
description:
name: charcode
name: characters
url: "https://pub.dartlang.org"
source: hosted
version: "1.1.2"
collection:
version: "1.1.0"
charcode:
dependency: transitive
description:
name: collection
name: charcode
url: "https://pub.dartlang.org"
source: hosted
version: "1.14.11"
convert:
version: "1.2.0"
clock:
dependency: transitive
description:
name: convert
name: clock
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.1"
crypto:
version: "1.1.0"
collection:
dependency: transitive
description:
name: crypto
name: collection
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.3"
version: "1.15.0"
cupertino_icons:
dependency: "direct main"
description:
name: cupertino_icons
url: "https://pub.dartlang.org"
source: hosted
version: "0.1.3"
fake_async:
dependency: transitive
description:
name: fake_async
url: "https://pub.dartlang.org"
source: hosted
version: "1.2.0"
flutter:
dependency: "direct main"
description: flutter
Expand All @@ -75,7 +68,7 @@ packages:
path: ".."
relative: true
source: path
version: "1.0.4"
version: "2.0.0"
flutter_test:
dependency: "direct dev"
description: flutter
Expand All @@ -87,63 +80,42 @@ packages:
name: http
url: "https://pub.dartlang.org"
source: hosted
version: "0.12.0+2"
version: "0.13.3"
http_parser:
dependency: transitive
description:
name: http_parser
url: "https://pub.dartlang.org"
source: hosted
version: "3.1.3"
image:
dependency: transitive
description:
name: image
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.4"
version: "4.0.0"
matcher:
dependency: transitive
description:
name: matcher
url: "https://pub.dartlang.org"
source: hosted
version: "0.12.6"
version: "0.12.10"
meta:
dependency: transitive
description:
name: meta
url: "https://pub.dartlang.org"
source: hosted
version: "1.1.8"
version: "1.3.0"
path:
dependency: transitive
description:
name: path
url: "https://pub.dartlang.org"
source: hosted
version: "1.6.4"
version: "1.8.0"
pedantic:
dependency: transitive
description:
name: pedantic
url: "https://pub.dartlang.org"
source: hosted
version: "1.8.0+1"
petitparser:
dependency: transitive
description:
name: petitparser
url: "https://pub.dartlang.org"
source: hosted
version: "2.4.0"
quiver:
dependency: transitive
description:
name: quiver
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.5"
version: "1.11.1"
sky_engine:
dependency: transitive
description: flutter
Expand All @@ -155,62 +127,55 @@ packages:
name: source_span
url: "https://pub.dartlang.org"
source: hosted
version: "1.5.5"
version: "1.8.1"
stack_trace:
dependency: transitive
description:
name: stack_trace
url: "https://pub.dartlang.org"
source: hosted
version: "1.9.3"
version: "1.10.0"
stream_channel:
dependency: transitive
description:
name: stream_channel
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.0"
version: "2.1.0"
string_scanner:
dependency: transitive
description:
name: string_scanner
url: "https://pub.dartlang.org"
source: hosted
version: "1.0.5"
version: "1.1.0"
term_glyph:
dependency: transitive
description:
name: term_glyph
url: "https://pub.dartlang.org"
source: hosted
version: "1.1.0"
version: "1.2.0"
test_api:
dependency: transitive
description:
name: test_api
url: "https://pub.dartlang.org"
source: hosted
version: "0.2.11"
version: "0.3.0"
typed_data:
dependency: transitive
description:
name: typed_data
url: "https://pub.dartlang.org"
source: hosted
version: "1.1.6"
version: "1.3.0"
vector_math:
dependency: transitive
description:
name: vector_math
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.8"
xml:
dependency: transitive
description:
name: xml
url: "https://pub.dartlang.org"
source: hosted
version: "3.5.0"
version: "2.1.0"
sdks:
dart: ">=2.4.0 <3.0.0"
dart: ">=2.12.0 <3.0.0"
1 change: 1 addition & 0 deletions example/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
name: example
description: A new Flutter project.
publish_to: none

# The following defines the version and build number for your application.
# A version number is three numbers separated by dots, like 1.2.43
Expand Down
40 changes: 20 additions & 20 deletions lib/src/CustomTextField.dart
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
part of flutter_mapbox_autocomplete;

class CustomTextField extends StatelessWidget {
final Widget prefixIcon;
final Widget suffixIcon;
final String initialValue;
final Widget? prefixIcon;
final Widget? suffixIcon;
final String? initialValue;
final TextInputType inputType;
final TextEditingController textController;
final String hintText;
final TextEditingController? textController;
final String? hintText;
final bool obscureText;
final bool enabled;
final bool readOnly;
final int maxLines;
final int? maxLines;
final TextInputAction keyboardAction;
final FocusNode focusNode;
final Function validator;
final Function onSaved;
final Function onTap;
final Function onChanged;
final Function onFieldSubmitted;
final Function onEditComplete;
final FocusNode? focusNode;
final Function? validator;
final Function? onSaved;
final Function? onTap;
final Function? onChanged;
final Function? onFieldSubmitted;
final Function? onEditComplete;

CustomTextField({
@required this.hintText,
required this.hintText,
this.initialValue,
this.textController,
this.inputType = TextInputType.text,
Expand Down Expand Up @@ -73,14 +73,14 @@ class CustomTextField extends StatelessWidget {
readOnly: readOnly,
keyboardType: inputType,
textInputAction: keyboardAction,
validator: validator,
onSaved: onSaved,
validator: validator as String? Function(String?)?,
onSaved: onSaved as void Function(String?)?,
focusNode: focusNode,
onTap: onTap,
onChanged: onChanged,
onFieldSubmitted: onFieldSubmitted,
onTap: onTap as void Function()?,
onChanged: onChanged as void Function(String)?,
onFieldSubmitted: onFieldSubmitted as void Function(String)?,
controller: textController,
onEditingComplete: onEditComplete,
onEditingComplete: onEditComplete as void Function()?,
maxLines: obscureText ? 1 : maxLines,
);
}
Expand Down
4 changes: 2 additions & 2 deletions lib/src/Location.dart
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
part of flutter_mapbox_autocomplete;

class Location {
double lat;
double lng;
double? lat;
double? lng;
// String address;

Location({
Expand Down
Loading

0 comments on commit 8e1455a

Please sign in to comment.