Skip to content

Commit

Permalink
Merge pull request #457 from NearHuscarl/gradle-8
Browse files Browse the repository at this point in the history
imp: upgrade to gradle 8
  • Loading branch information
juliansteenbakker authored Dec 19, 2023
2 parents a3b3c6c + 61a0745 commit b7623c5
Show file tree
Hide file tree
Showing 9 changed files with 98 additions and 105 deletions.
4 changes: 2 additions & 2 deletions example/lib/dashboard_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -294,8 +294,8 @@ class _DashboardScreenState extends State<DashboardScreen>
Widget build(BuildContext context) {
final theme = Theme.of(context);

return WillPopScope(
onWillPop: () => _goToLogin(context),
return PopScope(
onPopInvoked: (hasPopped) => hasPopped ? _goToLogin(context) : null,
child: SafeArea(
child: Scaffold(
appBar: _buildAppBar(theme),
Expand Down
116 changes: 57 additions & 59 deletions example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -53,18 +53,18 @@ packages:
dependency: transitive
description:
name: collection
sha256: f092b211a4319e98e5ff58223576de6c2803db36221657b46c82574721240687
sha256: ee67cb0715911d28db6bf4af1026078bd6f0128b07a5f66fb2ed94ec6783c09a
url: "https://pub.dev"
source: hosted
version: "1.17.2"
version: "1.18.0"
cupertino_icons:
dependency: "direct main"
description:
name: cupertino_icons
sha256: e35129dc44c9118cee2a5603506d823bab99c68393879edb440e0090d07586be
sha256: d57953e10f9f8327ce64a508a355f0b1ec902193f66288e8cb5070e7c47eeb2d
url: "https://pub.dev"
source: hosted
version: "1.0.5"
version: "1.0.6"
equatable:
dependency: transitive
description:
Expand Down Expand Up @@ -92,7 +92,7 @@ packages:
path: ".."
relative: true
source: path
version: "4.2.1"
version: "4.2.3"
flutter_test:
dependency: "direct dev"
description: flutter
Expand All @@ -107,10 +107,10 @@ packages:
dependency: "direct main"
description:
name: font_awesome_flutter
sha256: "5fb789145cae1f4c3245c58b3f8fb287d055c26323879eab57a7bf0cfd1e45f3"
sha256: "52671aea66da73b58d42ec6d0912b727a42248dd9a7c76d6c20f275783c48c08"
url: "https://pub.dev"
source: hosted
version: "10.5.0"
version: "10.6.0"
intl:
dependency: "direct main"
description:
Expand All @@ -122,12 +122,11 @@ packages:
intl_phone_number_input:
dependency: transitive
description:
path: "."
ref: improvements_with_updated_libphonenumber
resolved-ref: "8a5649ef7bd64cbb6fc6012338d854fb5e1b15f7"
url: "https://github.com/juliansteenbakker/intl_phone_number_input"
source: git
version: "0.7.3+1"
name: intl_phone_number_input
sha256: "1c4328713a9503ab26a1fdbb6b00b4cada68c18aac922b35bedbc72eff1297c3"
url: "https://pub.dev"
source: hosted
version: "0.7.4"
js:
dependency: transitive
description:
Expand All @@ -140,35 +139,34 @@ packages:
dependency: transitive
description:
name: libphonenumber_platform_interface
sha256: b8c57fc74bf61491672b8cd94039e35359c6e0d79a88018c1cc7facb76771a4b
sha256: f801f6c65523f56504b83f0890e6dad584ab3a7507dca65fec0eed640afea40f
url: "https://pub.dev"
source: hosted
version: "0.4.1"
version: "0.4.2"
libphonenumber_plugin:
dependency: transitive
description:
path: libphonenumber_plugin
ref: improvements
resolved-ref: b7c134c4f4031d67dc57756305b03cd2e1bc9284
url: "https://github.com/juliansteenbakker/plugin_libphonenumber"
source: git
version: "0.4.0"
name: libphonenumber_plugin
sha256: c615021d9816fbda2b2587881019ed595ecdf54d999652d7e4cce0e1f026368c
url: "https://pub.dev"
source: hosted
version: "0.3.3"
libphonenumber_web:
dependency: transitive
description:
name: libphonenumber_web
sha256: "3eb541422e581d198be4d59293cb5902e4057ae6bb0822eaddf9a0f98952d222"
sha256: "8186f420dbe97c3132283e52819daff1e55d60d6db46f7ea5ac42f42a28cc2ef"
url: "https://pub.dev"
source: hosted
version: "0.3.1"
version: "0.3.2"
lint:
dependency: "direct dev"
description:
name: lint
sha256: f4bd4dbaa39f4ae8836f2d1275f2f32bc68b3a8cce0a0735dd1f7a601f06682a
sha256: "77b3777e8e9adca8e942da1e835882ae3248dfa00488a2ebbdbc1f1a4aa3f4a7"
url: "https://pub.dev"
source: hosted
version: "2.1.2"
version: "2.2.0"
matcher:
dependency: transitive
description:
Expand All @@ -189,10 +187,10 @@ packages:
dependency: transitive
description:
name: meta
sha256: "3c74dbf8763d36539f114c799d8a2d87343b5067e9d796ca22b5eb8437090ee3"
sha256: a6e590c838b18133bb482a2745ad77c5bb7715fb0451209e1a7567d416678b8e
url: "https://pub.dev"
source: hosted
version: "1.9.1"
version: "1.10.0"
nested:
dependency: transitive
description:
Expand All @@ -213,26 +211,26 @@ packages:
dependency: transitive
description:
name: phone_numbers_parser
sha256: "3b809c0190e7d1272a831f12a67ae5b329ef889d3a9e6da7a59fe86a471576e5"
sha256: "17a6686350c574a08f7beb839c5f908cc19b9c0eabd6e97029b517527a49da02"
url: "https://pub.dev"
source: hosted
version: "8.0.0"
version: "8.1.0"
plugin_platform_interface:
dependency: transitive
description:
name: plugin_platform_interface
sha256: "43798d895c929056255600343db8f049921cbec94d31ec87f1dc5c16c01935dd"
sha256: f4f88d4a900933e7267e2b353594774fc0d07fb072b47eedcd5b54e1ea3269f8
url: "https://pub.dev"
source: hosted
version: "2.1.5"
version: "2.1.7"
provider:
dependency: transitive
description:
name: provider
sha256: cdbe7530b12ecd9eb455bdaa2fcb8d4dad22e80b8afb4798b41479d5ce26847f
sha256: "9a96a0a19b594dbc5bf0f1f27d2bc67d5f95957359b461cd9feb44ed6ae75096"
url: "https://pub.dev"
source: hosted
version: "6.0.5"
version: "6.1.1"
quiver:
dependency: transitive
description:
Expand Down Expand Up @@ -266,18 +264,18 @@ packages:
dependency: transitive
description:
name: stack_trace
sha256: c3c7d8edb15bee7f0f74debd4b9c5f3c2ea86766fe4178eb2a18eb30a0bdaed5
sha256: "73713990125a6d93122541237550ee3352a2d84baad52d375a4cad2eb9b7ce0b"
url: "https://pub.dev"
source: hosted
version: "1.11.0"
version: "1.11.1"
stream_channel:
dependency: transitive
description:
name: stream_channel
sha256: "83615bee9045c1d322bbbd1ba209b7a749c2cbcdcb3fdd1df8eb488b3279c1c8"
sha256: ba2aa5d8cc609d96bbb2899c28934f9e1af5cddbd60a827822ea467161eb54e7
url: "https://pub.dev"
source: hosted
version: "2.1.1"
version: "2.1.2"
string_scanner:
dependency: transitive
description:
Expand All @@ -298,74 +296,74 @@ packages:
dependency: transitive
description:
name: test_api
sha256: "75760ffd7786fffdfb9597c35c5b27eaeec82be8edfb6d71d32651128ed7aab8"
sha256: "5c2f730018264d276c20e4f1503fd1308dfbbae39ec8ee63c5236311ac06954b"
url: "https://pub.dev"
source: hosted
version: "0.6.0"
version: "0.6.1"
url_launcher:
dependency: transitive
description:
name: url_launcher
sha256: "781bd58a1eb16069412365c98597726cd8810ae27435f04b3b4d3a470bacd61e"
sha256: e9aa5ea75c84cf46b3db4eea212523591211c3cf2e13099ee4ec147f54201c86
url: "https://pub.dev"
source: hosted
version: "6.1.12"
version: "6.2.2"
url_launcher_android:
dependency: transitive
description:
name: url_launcher_android
sha256: "3dd2388cc0c42912eee04434531a26a82512b9cb1827e0214430c9bcbddfe025"
sha256: "31222ffb0063171b526d3e569079cf1f8b294075ba323443fdc690842bfd4def"
url: "https://pub.dev"
source: hosted
version: "6.0.38"
version: "6.2.0"
url_launcher_ios:
dependency: transitive
description:
name: url_launcher_ios
sha256: "9af7ea73259886b92199f9e42c116072f05ff9bea2dcb339ab935dfc957392c2"
sha256: bba3373219b7abb6b5e0d071b0fe66dfbe005d07517a68e38d4fc3638f35c6d3
url: "https://pub.dev"
source: hosted
version: "6.1.4"
version: "6.2.1"
url_launcher_linux:
dependency: transitive
description:
name: url_launcher_linux
sha256: "207f4ddda99b95b4d4868320a352d374b0b7e05eefad95a4a26f57da413443f5"
sha256: ab360eb661f8879369acac07b6bb3ff09d9471155357da8443fd5d3cf7363811
url: "https://pub.dev"
source: hosted
version: "3.0.5"
version: "3.1.1"
url_launcher_macos:
dependency: transitive
description:
name: url_launcher_macos
sha256: "1c4fdc0bfea61a70792ce97157e5cc17260f61abbe4f39354513f39ec6fd73b1"
sha256: b7244901ea3cf489c5335bdacda07264a6e960b1c1b1a9f91e4bc371d9e68234
url: "https://pub.dev"
source: hosted
version: "3.0.6"
version: "3.1.0"
url_launcher_platform_interface:
dependency: transitive
description:
name: url_launcher_platform_interface
sha256: bfdfa402f1f3298637d71ca8ecfe840b4696698213d5346e9d12d4ab647ee2ea
sha256: "980e8d9af422f477be6948bdfb68df8433be71f5743a188968b0c1b887807e50"
url: "https://pub.dev"
source: hosted
version: "2.1.3"
version: "2.2.0"
url_launcher_web:
dependency: transitive
description:
name: url_launcher_web
sha256: cc26720eefe98c1b71d85f9dc7ef0cada5132617046369d9dc296b3ecaa5cbb4
sha256: "7286aec002c8feecc338cc33269e96b73955ab227456e9fb2a91f7fab8a358e9"
url: "https://pub.dev"
source: hosted
version: "2.0.18"
version: "2.2.2"
url_launcher_windows:
dependency: transitive
description:
name: url_launcher_windows
sha256: "7967065dd2b5fccc18c653b97958fdf839c5478c28e767c61ee879f4e7882422"
sha256: ecf9725510600aa2bb6d7ddabe16357691b6d2805f66216a97d1b881e21beff7
url: "https://pub.dev"
source: hosted
version: "3.0.7"
version: "3.1.1"
vector_math:
dependency: transitive
description:
Expand All @@ -378,10 +376,10 @@ packages:
dependency: transitive
description:
name: web
sha256: dc8ccd225a2005c1be616fe02951e2e342092edf968cf0844220383757ef8f10
sha256: afe077240a270dcfd2aafe77602b4113645af95d0ad31128cc02bce5ac5d5152
url: "https://pub.dev"
source: hosted
version: "0.1.4-beta"
version: "0.3.0"
sdks:
dart: ">=3.1.0-185.0.dev <4.0.0"
flutter: ">=3.10.0"
dart: ">=3.2.0 <4.0.0"
flutter: ">=3.16.0"
10 changes: 5 additions & 5 deletions lib/src/widgets/cards/additional_signup_card.dart
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,10 @@ class _AdditionalSignUpCardState extends State<_AdditionalSignUpCard>
super.initState();

_nameControllers = {
for (var formField in widget.formFields)
for (final formField in widget.formFields)
formField.keyName: TextEditingController(
text: formField.defaultValue,
)
),
};

if (_nameControllers.length != widget.formFields.length) {
Expand Down Expand Up @@ -162,7 +162,7 @@ class _AdditionalSignUpCardState extends State<_AdditionalSignUpCard>
);
setState(() => _isSubmitting = false);
// await _loadingController.reverse();
widget.onSubmitCompleted.call();
widget.onSubmitCompleted();
return true;
}
}
Expand All @@ -186,7 +186,7 @@ class _AdditionalSignUpCardState extends State<_AdditionalSignUpCard>
const Icon(FontAwesomeIcons.solidCircleUser),
keyboardType: TextFieldUtils.getKeyboardType(formField.userType),
autofillHints: [
TextFieldUtils.getAutofillHints(formField.userType)
TextFieldUtils.getAutofillHints(formField.userType),
],
textInputAction:
formField.keyName == widget.formFields.last.keyName
Expand All @@ -199,7 +199,7 @@ class _AdditionalSignUpCardState extends State<_AdditionalSignUpCard>
),
const SizedBox(
height: 5,
)
),
],
);
}).toList(),
Expand Down
6 changes: 3 additions & 3 deletions lib/src/widgets/cards/auth_card_builder.dart
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ class AuthCardState extends State<AuthCard> with TickerProviderStateMixin {
_changeCard(_additionalSignUpIndex),
onSubmitCompleted: () {
_forwardChangeRouteAnimation(_loginCardKey).then((_) {
widget.onSubmitCompleted!();
widget.onSubmitCompleted?.call();
});
},
requireSignUpConfirmation: requireSignUpConfirmation,
Expand Down Expand Up @@ -418,7 +418,7 @@ class AuthCardState extends State<AuthCard> with TickerProviderStateMixin {
} else if (widget.loginAfterSignUp) {
_forwardChangeRouteAnimation(_additionalSignUpCardKey)
.then((_) {
widget.onSubmitCompleted!();
widget.onSubmitCompleted?.call();
});
} else {
_changeCard(_loginPageIndex);
Expand Down Expand Up @@ -449,7 +449,7 @@ class AuthCardState extends State<AuthCard> with TickerProviderStateMixin {
onSubmitCompleted: () {
if (widget.loginAfterSignUp) {
_forwardChangeRouteAnimation(_confirmSignUpCardKey).then((_) {
widget.onSubmitCompleted!();
widget.onSubmitCompleted?.call();
});
} else {
_changeCard(_loginPageIndex);
Expand Down
Loading

0 comments on commit b7623c5

Please sign in to comment.