Merge branch 'develop' of code.star-lock.cn:StarlockTeam/app-starlock into develop
This commit is contained in:
commit
146944f334
@ -194,31 +194,27 @@ class _StarLockRegisterPageState extends State<StarLockRegisterXHJPage> {
|
|||||||
]),
|
]),
|
||||||
),
|
),
|
||||||
Obx(() => GestureDetector(
|
Obx(() => GestureDetector(
|
||||||
onTap:
|
onTap: (state.canSendCode.value && state.canResend.value)
|
||||||
(state.canSendCode.value && state.canResend.value)
|
? () async {
|
||||||
? () async {
|
// Navigator.pushNamed(context, Routers.safetyVerificationPage, arguments: {"countryCode":"+86", "account":state.phoneOrEmailStr.value});
|
||||||
// Navigator.pushNamed(context, Routers.safetyVerificationPage, arguments: {"countryCode":"+86", "account":state.phoneOrEmailStr.value});
|
final result = await Get.toNamed(
|
||||||
if (state.pwd.value != state.surePwd.value) {
|
Routers.safetyVerificationPage,
|
||||||
logic.showToast('密码不一致哦'.tr);
|
arguments: <String, Object>{
|
||||||
return;
|
'countryCode': state.countryCode,
|
||||||
}
|
'account': state.phoneOrEmailStr.value
|
||||||
final result = await Get.toNamed(
|
});
|
||||||
Routers.safetyVerificationPage,
|
state.xWidth.value =
|
||||||
arguments: <String, Object>{
|
(result as Map<String, dynamic>)['xWidth'];
|
||||||
'countryCode': state.countryCode,
|
logic.sendValidationCode();
|
||||||
'account': state.phoneOrEmailStr.value
|
}
|
||||||
});
|
: null,
|
||||||
state.xWidth.value =
|
|
||||||
(result as Map<String, dynamic>)['xWidth'];
|
|
||||||
logic.sendValidationCode();
|
|
||||||
}
|
|
||||||
: null,
|
|
||||||
child: Container(
|
child: Container(
|
||||||
padding: EdgeInsets.all(10.h),
|
padding: EdgeInsets.all(10.h),
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
color: (state.canSendCode.value && state.canResend.value)
|
color:
|
||||||
? AppColors.mainColor
|
(state.canSendCode.value && state.canResend.value)
|
||||||
: AppColors.btnDisableColor,
|
? AppColors.mainColor
|
||||||
|
: AppColors.btnDisableColor,
|
||||||
borderRadius: BorderRadius.circular(5)),
|
borderRadius: BorderRadius.circular(5)),
|
||||||
child: Center(
|
child: Center(
|
||||||
child: Text(state.btnText.value,
|
child: Text(state.btnText.value,
|
||||||
|
|||||||
@ -16,7 +16,6 @@ class AdvancedFeaturesWebPage extends StatefulWidget {
|
|||||||
}
|
}
|
||||||
|
|
||||||
class _AdvancedFeaturesWebPageState extends State<AdvancedFeaturesWebPage> {
|
class _AdvancedFeaturesWebPageState extends State<AdvancedFeaturesWebPage> {
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return GetBuilder<AdvancedFeaturesWebLogic>(
|
return GetBuilder<AdvancedFeaturesWebLogic>(
|
||||||
@ -32,7 +31,25 @@ class _AdvancedFeaturesWebPageState extends State<AdvancedFeaturesWebPage> {
|
|||||||
barTitle: logic.state.webBuyTitle.value,
|
barTitle: logic.state.webBuyTitle.value,
|
||||||
haveBack: true,
|
haveBack: true,
|
||||||
backgroundColor: AppColors.mainColor,
|
backgroundColor: AppColors.mainColor,
|
||||||
backAction: () => logic.canGoBack(false),
|
haveOtherLeftWidget: true,
|
||||||
|
leadingWidth: 160.w,
|
||||||
|
leftWidget: Row(
|
||||||
|
mainAxisSize: MainAxisSize.min,
|
||||||
|
children: [
|
||||||
|
IconButton(
|
||||||
|
padding: const EdgeInsets.symmetric(horizontal: 0),
|
||||||
|
icon: const Icon(Icons.arrow_back_ios,
|
||||||
|
color: Colors.white),
|
||||||
|
onPressed: () => logic.canGoBack(false),
|
||||||
|
),
|
||||||
|
IconButton(
|
||||||
|
padding: const EdgeInsets.symmetric(horizontal: 0),
|
||||||
|
icon: const Icon(Icons.close, color: Colors.white),
|
||||||
|
onPressed: Get.back,
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
// backAction: () => logic.canGoBack(false),
|
||||||
),
|
),
|
||||||
body: Obx(() => Column(
|
body: Obx(() => Column(
|
||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
|
|||||||
@ -17,6 +17,7 @@ class TitleAppBar extends AppBar {
|
|||||||
final bool? haveOtherLeftWidget;
|
final bool? haveOtherLeftWidget;
|
||||||
final Widget? leftWidget;
|
final Widget? leftWidget;
|
||||||
List<Widget>? actionsList;
|
List<Widget>? actionsList;
|
||||||
|
final double? leadingWidth;
|
||||||
|
|
||||||
TitleAppBar(
|
TitleAppBar(
|
||||||
{Key? key,
|
{Key? key,
|
||||||
@ -30,6 +31,7 @@ class TitleAppBar extends AppBar {
|
|||||||
this.haveBack,
|
this.haveBack,
|
||||||
this.backAction,
|
this.backAction,
|
||||||
this.haveOtherLeftWidget = false,
|
this.haveOtherLeftWidget = false,
|
||||||
|
this.leadingWidth,
|
||||||
this.leftWidget})
|
this.leftWidget})
|
||||||
: super(key: key);
|
: super(key: key);
|
||||||
|
|
||||||
@ -42,6 +44,7 @@ class _TitleAppBarState extends State<TitleAppBar> {
|
|||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return AppBar(
|
return AppBar(
|
||||||
elevation: 0,
|
elevation: 0,
|
||||||
|
leadingWidth: widget.leadingWidth,
|
||||||
leading: widget.haveOtherLeftWidget!
|
leading: widget.haveOtherLeftWidget!
|
||||||
? widget.leftWidget
|
? widget.leftWidget
|
||||||
: (widget.haveBack ?? false
|
: (widget.haveBack ?? false
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user