Skip to content

Commit

Permalink
Merge pull request #413 from natintosh/develop
Browse files Browse the repository at this point in the history
update minimum os version on iOS
  • Loading branch information
natintosh authored Dec 8, 2023
2 parents a0c32bb + 77a0708 commit bee1d65
Show file tree
Hide file tree
Showing 16 changed files with 554 additions and 269 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -72,3 +72,5 @@ build/
!**/ios/**/default.pbxuser
!**/ios/**/default.perspectivev3
!/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages

.metadata
2 changes: 2 additions & 0 deletions .pubignore
Original file line number Diff line number Diff line change
Expand Up @@ -73,3 +73,5 @@ build/
!**/ios/**/default.pbxuser
!**/ios/**/default.perspectivev3
!/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages

.metadata
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
## [0.7.4]
* Updated minimum os version on iOS
* Updated dependencies

## [0.7.3+1]
* Added pub example

* ## [0.7.3]
## [0.7.3]
* Updated dependency in libphonenumber
* Update AsYouTypeFormatter
* Replaced `headline` with `headlineSmall` in countries_search_list_widget.dart
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ InternationalPhoneNumberInput({
this.autofillHints,
this.countries
});
```|
```

```dart
SelectorConfig({
Expand All @@ -131,6 +131,7 @@ SelectorConfig({
this.backgroundColor,
this.countryComparator,
this.setSelectorButtonAsPrefixIcon = false,
this.useBottomSheetSafeArea = false,
});
```

Expand Down
2 changes: 2 additions & 0 deletions example/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,5 @@ lib/generated_plugin_registrant.dart

# Exceptions to above rules.
!/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages

.metadata
1 change: 1 addition & 0 deletions example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ class _MyHomePageState extends State<MyHomePage> {
},
selectorConfig: SelectorConfig(
selectorType: PhoneInputSelectorType.BOTTOM_SHEET,
useBottomSheetSafeArea: true,
),
ignoreBlank: false,
autoValidateMode: AutovalidateMode.disabled,
Expand Down
7 changes: 4 additions & 3 deletions example/lib/main_bottom_sheet.dart
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,12 @@ class _MyHomePageState extends State<MyHomePage> {
inputBorder: OutlineInputBorder(),
selectorConfig: SelectorConfig(
selectorType: PhoneInputSelectorType.BOTTOM_SHEET,
useBottomSheetSafeArea: true,
),
),
ElevatedButton(
onPressed: () {
formKey.currentState.validate();
formKey.currentState?.validate();
},
child: Text('Validate'),
),
Expand All @@ -78,13 +79,13 @@ class _MyHomePageState extends State<MyHomePage> {
controller.text = parsableNumber;

setState(() {
initialCountry = number.isoCode;
initialCountry = number.isoCode ?? '';
});
}

@override
void dispose() {
controller?.dispose();
controller.dispose();
super.dispose();
}
}
6 changes: 3 additions & 3 deletions example/lib/main_dialog.dart
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class _MyHomePageState extends State<MyHomePage> {
),
ElevatedButton(
onPressed: () {
formKey.currentState.validate();
formKey.currentState?.validate();
},
child: Text('Validate'),
),
Expand All @@ -78,13 +78,13 @@ class _MyHomePageState extends State<MyHomePage> {
controller.text = parsableNumber;

setState(() {
initialCountry = number.isoCode;
initialCountry = number.isoCode ?? '';
});
}

@override
void dispose() {
controller?.dispose();
controller.dispose();
super.dispose();
}
}
4 changes: 2 additions & 2 deletions example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ description: A new Flutter application.
version: 1.0.0+1

environment:
sdk: ">=2.1.0 <3.0.0"
sdk: ">=3.0.2 <4.0.0"

dependencies:
flutter:
sdk: flutter

# The following adds the Cupertino Icons font to your application.
# Use with the CupertinoIcons class for iOS style icons.
cupertino_icons: ^1.0.2
cupertino_icons: ^1.0.6

dev_dependencies:
flutter_test:
Expand Down
8 changes: 3 additions & 5 deletions example/test_driver/app/app_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,15 @@ main() {
final dropdownButtonFinder =
find.byValueKey(TestHelper.DropdownButtonKeyValue);

FlutterDriver driver;
late FlutterDriver driver;

setUpAll(() async {
driver = await FlutterDriver.connect();
});

tearDownAll(() async {
if (driver != null) {
driver.close();
}
});
driver.close();
});

test('Tap On TextField and enter text', () async {
await driver.tap(inputTextFieldFinder);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,15 @@ main() {
final countrySearchInputFinder =
find.byValueKey(TestHelper.CountrySearchInputKeyValue);

FlutterDriver driver;
late FlutterDriver driver;

setUpAll(() async {
driver = await FlutterDriver.connect();
});

tearDownAll(() async {
if (driver != null) {
driver.close();
}
});
driver.close();
});

test('Tap On TextField and enter text', () async {
await driver.tap(inputTextFieldFinder);
Expand Down
2 changes: 1 addition & 1 deletion example/test_driver/app_dialog/app_dialog_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ main() {
final countrySearchInputFinder =
find.byValueKey(TestHelper.CountrySearchInputKeyValue);

FlutterDriver driver;
late FlutterDriver driver;

setUpAll(() async {
driver = await FlutterDriver.connect();
Expand Down
Loading

0 comments on commit bee1d65

Please sign in to comment.