Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
ChatGPT
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
关振斌
ChatGPT
Commits
70d05346
Commit
70d05346
authored
Apr 19, 2023
by
skeyboy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
验证码倒计时
parent
685e9641
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
131 additions
and
133 deletions
+131
-133
lib/pages/frame/sign_in/view.dart
lib/pages/frame/sign_in/view.dart
+131
-133
No files found.
lib/pages/frame/sign_in/view.dart
View file @
70d05346
...
...
@@ -595,163 +595,161 @@ class SignInPage extends GetView<SignInController> {
},
child:
GestureDetector
(
behavior:
HitTestBehavior
.
translucent
,
onTap:
()
=>
Focus
.
of
(
buildContext
).
unfocus
(),
child:
SingleChildScrollView
(
child:
Container
(
height:
Get
.
height
,
decoration:
BoxDecoration
(
image:
DecorationImage
(
image:
Image
.
asset
(
"assets/images/background.png"
).
image
,
fit:
BoxFit
.
cover
),
),
child:
Stack
(
children:
[
Positioned
(
child:
GestureDetector
(
onTap:
()
=>
Get
.
back
(),
child:
Icon
(
Icons
.
arrow_back
)),
top:
45
,
left:
35
,
),
Column
(
mainAxisAlignment:
MainAxisAlignment
.
start
,
children:
<
Widget
>[
SizedBox
(
height:
defaultPadding
*
8
),
Column
(
children:
[
Row
(
children:
[
const
Spacer
(),
SizedBox
(
height:
75
,
width:
75
,
child:
Image
.
asset
(
"assets/images/ic_launcher.png"
,
fit:
BoxFit
.
fill
,
),
child:
Container
(
height:
Get
.
height
,
decoration:
BoxDecoration
(
image:
DecorationImage
(
image:
Image
.
asset
(
"assets/images/background.png"
).
image
,
fit:
BoxFit
.
cover
),
),
child:
Stack
(
children:
[
Positioned
(
child:
GestureDetector
(
onTap:
()
=>
Get
.
back
(),
child:
Icon
(
Icons
.
arrow_back
)),
top:
45
,
left:
35
,
),
Column
(
mainAxisAlignment:
MainAxisAlignment
.
start
,
children:
<
Widget
>[
SizedBox
(
height:
defaultPadding
*
8
),
Column
(
children:
[
Row
(
children:
[
const
Spacer
(),
SizedBox
(
height:
75
,
width:
75
,
child:
Image
.
asset
(
"assets/images/ic_launcher.png"
,
fit:
BoxFit
.
fill
,
),
const
Spacer
(),
],
),
SizedBox
(
height:
defaultPadding
*
6
),
],
),
Row
(
children:
[
Spacer
(),
Expanded
(
flex:
8
,
child:
Form
(
child:
Column
(
children:
[
TextFormField
(
controller:
controller
.
mobileMemberController
,
keyboardType:
TextInputType
.
phone
,
textInputAction:
TextInputAction
.
next
,
),
const
Spacer
(),
],
),
SizedBox
(
height:
defaultPadding
*
6
),
],
),
Row
(
children:
[
Spacer
(),
Expanded
(
flex:
8
,
child:
Form
(
child:
Column
(
children:
[
TextFormField
(
controller:
controller
.
mobileMemberController
,
keyboardType:
TextInputType
.
phone
,
textInputAction:
TextInputAction
.
next
,
cursorColor:
kPrimaryColor
,
onSaved:
(
email
)
{},
style:
const
TextStyle
(
color:
Color
(
0xFF6F35A5
)),
decoration:
const
InputDecoration
(
labelStyle:
TextStyle
(
color:
Colors
.
black
),
fillColor:
kPrimaryLightColor
,
iconColor:
Color
(
0xFF6F35A5
),
prefixIconColor:
Color
(
0xFF6F35A5
),
filled:
true
,
contentPadding:
EdgeInsets
.
fromLTRB
(
10
,
10
,
10
,
10
),
border:
OutlineInputBorder
(
borderRadius:
BorderRadius
.
all
(
Radius
.
circular
(
30
)),
borderSide:
BorderSide
.
none
,
),
hintText:
"输入手机号"
,
hintStyle:
TextStyle
(
color:
Color
(
0xFF6F35A5
)),
prefixIcon:
Padding
(
padding:
EdgeInsets
.
only
(
left:
defaultPadding
,
right:
defaultPadding
),
child:
Icon
(
Icons
.
phone_android
),
),
),
),
Padding
(
padding:
const
EdgeInsets
.
symmetric
(
vertical:
defaultPadding
*
1.5
),
child:
TextFormField
(
controller:
controller
.
codeController
,
keyboardType:
TextInputType
.
number
,
textInputAction:
TextInputAction
.
done
,
obscureText:
true
,
cursorColor:
kPrimaryColor
,
onSaved:
(
email
)
{},
style:
const
TextStyle
(
color:
Color
(
0xFF6F35A5
)),
style:
TextStyle
(
color:
Color
(
0xFF6F35A5
)),
decoration:
const
InputDecoration
(
labelStyle:
TextStyle
(
color:
Colors
.
black
),
fillColor:
kPrimaryLightColor
,
contentPadding:
EdgeInsets
.
fromLTRB
(
10
,
10
,
10
,
10
),
iconColor:
Color
(
0xFF6F35A5
),
prefixIconColor:
Color
(
0xFF6F35A5
),
filled:
true
,
contentPadding:
EdgeInsets
.
fromLTRB
(
10
,
10
,
10
,
10
),
border:
OutlineInputBorder
(
borderRadius:
BorderRadius
.
all
(
Radius
.
circular
(
30
)),
borderSide:
BorderSide
.
none
,
),
hintText:
"输入
手机号
"
,
hintText:
"输入
验证码
"
,
hintStyle:
TextStyle
(
color:
Color
(
0xFF6F35A5
)),
prefixIcon:
Padding
(
padding:
EdgeInsets
.
only
(
left:
defaultPadding
,
right:
defaultPadding
),
child:
Icon
(
Icons
.
phone_android
),
padding:
EdgeInsets
.
all
(
defaultPadding
),
child:
Icon
(
Icons
.
lock
),
),
),
),
Padding
(
padding:
const
EdgeInsets
.
symmetric
(
vertical:
defaultPadding
*
1.5
),
child:
TextFormField
(
controller:
controller
.
codeController
,
keyboardType:
TextInputType
.
number
,
textInputAction:
TextInputAction
.
done
,
obscureText:
true
,
cursorColor:
kPrimaryColor
,
style:
TextStyle
(
color:
Color
(
0xFF6F35A5
)),
decoration:
const
InputDecoration
(
labelStyle:
TextStyle
(
color:
Colors
.
black
),
fillColor:
kPrimaryLightColor
,
contentPadding:
EdgeInsets
.
fromLTRB
(
10
,
10
,
10
,
10
),
iconColor:
Color
(
0xFF6F35A5
),
prefixIconColor:
Color
(
0xFF6F35A5
),
filled:
true
,
border:
OutlineInputBorder
(
borderRadius:
BorderRadius
.
all
(
Radius
.
circular
(
30
)),
borderSide:
BorderSide
.
none
,
),
hintText:
"输入验证码"
,
hintStyle:
TextStyle
(
color:
Color
(
0xFF6F35A5
)),
prefixIcon:
Padding
(
padding:
EdgeInsets
.
all
(
defaultPadding
),
child:
Icon
(
Icons
.
lock
),
),
),
),
),
const
SizedBox
(
height:
defaultPadding
),
Row
(
children:
[
Flexible
(
child:
Container
()),
GestureDetector
(
onTap:
()
=>
controller
.
chageCodeStatus
(),
child:
Obx
(()=>
Text
(
controller
.
codeTileStr
.
value
,
style:
const
TextStyle
(
color:
Colors
.
white54
,
fontSize:
12
),
)),
)
],
),
const
SizedBox
(
height:
defaultPadding
*
6
),
Hero
(
tag:
"login_btn"
,
child:
GestureDetector
(
onTap:
()
=>
controller
.
handleSignIn
(),
child:
Container
(
width:
Get
.
width
-
40
,
height:
50
,
alignment:
Alignment
.
center
,
decoration:
BoxDecoration
(
borderRadius:
BorderRadius
.
all
(
Radius
.
circular
(
45
/
2.0
)),
color:
Color
(
0xFF6F35A5
)),
child:
Text
(
"登录"
.
toUpperCase
(),
),
),
const
SizedBox
(
height:
defaultPadding
),
Row
(
children:
[
Flexible
(
child:
Container
()),
GestureDetector
(
onTap:
()
=>
controller
.
chageCodeStatus
(),
child:
Obx
(()=>
Text
(
controller
.
codeTileStr
.
value
,
style:
const
TextStyle
(
color:
Colors
.
white54
,
fontSize:
12
),
)),
)
],
),
const
SizedBox
(
height:
defaultPadding
*
6
),
Hero
(
tag:
"login_btn"
,
child:
GestureDetector
(
onTap:
()
=>
controller
.
handleSignIn
(),
child:
Container
(
width:
Get
.
width
-
40
,
height:
50
,
alignment:
Alignment
.
center
,
decoration:
BoxDecoration
(
borderRadius:
BorderRadius
.
all
(
Radius
.
circular
(
45
/
2.0
)),
color:
Color
(
0xFF6F35A5
)),
child:
Text
(
"登录"
.
toUpperCase
(),
),
),
),
const
SizedBox
(
height:
defaultPadding
),
]
,
)
,
),
const
SizedBox
(
height:
defaultPadding
)
,
]
,
),
),
Spacer
(
),
]
,
)
,
]
,
)
],
)
,
),
Spacer
()
,
]
,
)
,
],
)
]
,
),
),
),);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment