Skip to content

Commit

Permalink
fix(masamune_module): Changed EmailLoginAndRegister to make it easier…
Browse files Browse the repository at this point in the history
… to use.
  • Loading branch information
mathrunet committed Sep 8, 2022
1 parent 315f24c commit d125c3e
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -507,8 +507,7 @@ class EmailLoginAndRegisterModuleLoginPage
),
suffixIconConstraints:
const BoxConstraints(minHeight: 0, minWidth: 0),
onSubmitted: (value) =>
_onSubmitted(context, ref, module, form),
onSubmitted: (value) => onSubmitted(context, ref, module, form),
),
Divid(color: color.withOpacity(0.75)),
const Space.height(16),
Expand Down Expand Up @@ -544,7 +543,7 @@ class EmailLoginAndRegisterModuleLoginPage
backgroundColor: buttonBackgroundColor,
borderColor: buttonColor,
icon: Icons.check,
onPressed: () => _onSubmitted(context, ref, module, form),
onPressed: () => onSubmitted(context, ref, module, form),
)
],
),
Expand All @@ -566,7 +565,8 @@ class EmailLoginAndRegisterModuleLoginPage
return null;
}

Future<void> _onSubmitted(
@protected
Future<void> onSubmitted(
BuildContext context,
WidgetRef ref,
EmailLoginAndRegisterModule module,
Expand Down Expand Up @@ -787,7 +787,7 @@ class EmailLoginAndRegisterModuleRegisterPage
suffixIconConstraints:
const BoxConstraints(minHeight: 0, minWidth: 0),
onSubmitted: (value) {
_onSubmitted(context, ref, module, form, role);
onSubmitted(context, ref, module, form, role);
},
),
...context.app?.userVariables.buildForm(
Expand Down Expand Up @@ -845,7 +845,7 @@ class EmailLoginAndRegisterModuleRegisterPage
borderColor: buttonColor,
icon: Icons.check,
onPressed: () =>
_onSubmitted(context, ref, module, form, role),
onSubmitted(context, ref, module, form, role),
)
],
),
Expand All @@ -867,7 +867,8 @@ class EmailLoginAndRegisterModuleRegisterPage
return null;
}

Future<void> _onSubmitted(
@protected
Future<void> onSubmitted(
BuildContext context,
WidgetRef ref,
EmailLoginAndRegisterModule module,
Expand Down Expand Up @@ -1054,8 +1055,7 @@ class EmailLoginAndRegisterModulePasswordResetPage
onSaved: (value) {
context["email"] = value;
},
onSubmitted: (value) =>
_onSubmitted(context, ref, module, form),
onSubmitted: (value) => onSubmitted(context, ref, module, form),
),
Divid(color: color.withOpacity(0.75)),
const Space.height(24),
Expand All @@ -1073,7 +1073,7 @@ class EmailLoginAndRegisterModulePasswordResetPage
backgroundColor: buttonBackgroundColor,
borderColor: buttonColor,
icon: Icons.send,
onPressed: () => _onSubmitted(context, ref, module, form),
onPressed: () => onSubmitted(context, ref, module, form),
),
],
),
Expand All @@ -1095,7 +1095,8 @@ class EmailLoginAndRegisterModulePasswordResetPage
return null;
}

Future<void> _onSubmitted(
@protected
Future<void> onSubmitted(
BuildContext context,
WidgetRef ref,
EmailLoginAndRegisterModule module,
Expand Down
14 changes: 7 additions & 7 deletions packages/masamune_module/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,7 @@ packages:
name: image_picker_android
url: "https://pub.dartlang.org"
source: hosted
version: "0.8.5+2"
version: "0.8.5+3"
image_picker_for_web:
dependency: transitive
description:
Expand Down Expand Up @@ -580,14 +580,14 @@ packages:
name: katana_module
url: "https://pub.dartlang.org"
source: hosted
version: "0.13.0+11"
version: "0.13.0+13"
katana_routing:
dependency: transitive
description:
name: katana_routing
url: "https://pub.dartlang.org"
source: hosted
version: "0.13.0+11"
version: "0.13.0+13"
loading_animations:
dependency: transitive
description:
Expand Down Expand Up @@ -615,14 +615,14 @@ packages:
name: masamune
url: "https://pub.dartlang.org"
source: hosted
version: "0.13.0+14"
version: "0.13.0+18"
masamune_ui:
dependency: "direct main"
description:
name: masamune_ui
url: "https://pub.dartlang.org"
source: hosted
version: "0.13.0+16"
version: "0.13.0+20"
matcher:
dependency: transitive
description:
Expand Down Expand Up @@ -972,7 +972,7 @@ packages:
name: shared_preferences_android
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.12"
version: "2.0.13"
shared_preferences_ios:
dependency: transitive
description:
Expand Down Expand Up @@ -1138,7 +1138,7 @@ packages:
name: url_launcher_android
url: "https://pub.dartlang.org"
source: hosted
version: "6.0.17"
version: "6.0.18"
url_launcher_ios:
dependency: transitive
description:
Expand Down

0 comments on commit d125c3e

Please sign in to comment.