Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
gmalpha_flutter
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
mobile
gmalpha_flutter
Commits
5ca550b3
Commit
5ca550b3
authored
Feb 25, 2019
by
时健
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.4-增加邀请成功页面
parent
430635fd
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
88 additions
and
3 deletions
+88
-3
icon_invite_code_verify_success.png
assets/image/1.0x/icon_invite_code_verify_success.png
+0
-0
icon_invite_code_verify_success.png
assets/image/3.0x/icon_invite_code_verify_success.png
+0
-0
input_invite_code_page.dart
lib/input_invite_code_page.dart
+2
-2
invite_success_page.dart
lib/invite_success_page.dart
+82
-0
pubspec.yaml
pubspec.yaml
+4
-1
No files found.
assets/image/1.0x/icon_invite_code_verify_success.png
0 → 100755
View file @
5ca550b3
961 Bytes
assets/image/3.0x/icon_invite_code_verify_success.png
0 → 100755
View file @
5ca550b3
3.01 KB
lib/input_invite_code.dart
→
lib/input_invite_code
_page
.dart
View file @
5ca550b3
...
...
@@ -3,10 +3,10 @@ import 'dart:ui' as ui;
import
'package:flutter/services.dart'
;
void
main
(
){
return
runApp
(
new
InputInviteCode
());
return
runApp
(
new
InputInviteCode
Page
());
}
class
InputInviteCode
extends
StatelessWidget
{
class
InputInviteCode
Page
extends
StatelessWidget
{
@override
Widget
build
(
BuildContext
context
)
{
// TODO: implement build
...
...
lib/invite_success_page.dart
0 → 100644
View file @
5ca550b3
import
'package:flutter/material.dart'
;
import
'dart:ui'
as
ui
;
import
'package:flutter/services.dart'
;
void
main
(
){
return
runApp
(
new
InviteSuccessPage
());
}
class
InviteSuccessPage
extends
StatelessWidget
{
@override
Widget
build
(
BuildContext
context
)
{
// TODO: implement build
return
MaterialApp
(
debugShowCheckedModeBanner:
false
,
home:
InviteSuccessContent
(),
theme:
ThemeData
(
primaryColor:
Colors
.
white
,
highlightColor:
Colors
.
white
,
splashColor:
Colors
.
white70
)
);
}
}
class
InviteSuccessContent
extends
StatelessWidget
{
BuildContext
context
;
void
onLeadingClick
()
{
Navigator
.
pop
(
context
);
}
@override
Widget
build
(
BuildContext
context
)
{
this
.
context
=
context
;
// TODO: implement build
return
Scaffold
(
backgroundColor:
Colors
.
white
,
appBar:
AppBar
(
elevation:
0.0
,
leading:
IconButton
(
icon:
Icon
(
Icons
.
arrow_back_ios
),
onPressed:
onLeadingClick
),
),
body:
Container
(
child:
Center
(
child:
Column
(
mainAxisAlignment:
MainAxisAlignment
.
center
,
crossAxisAlignment:
CrossAxisAlignment
.
center
,
children:
<
Widget
>[
SizedBox
(
width:
10.0
,
height:
70.0
),
Image
(
image:
AssetImage
(
'assets/image/1.0x/icon_invite_code_verify_success.png'
)),
SizedBox
(
width:
10.0
,
height:
40.0
),
Text
(
"帮助好友解锁成功"
,
style:
TextStyle
(
fontSize:
20
,
fontWeight:
FontWeight
.
bold
)),
SizedBox
(
width:
10.0
,
height:
10.0
),
Text
(
"同时你已获赠3个可对比明星"
,
style:
TextStyle
(
fontSize:
14
,
fontWeight:
FontWeight
.
bold
)),
SizedBox
(
width:
10.0
,
height:
50.0
),
RaisedButton
(
color:
Colors
.
white
,
child:
Padding
(
padding:
EdgeInsets
.
fromLTRB
(
0
,
15
,
0
,
15
),
child:
Text
(
"去试试"
,
style:
TextStyle
(
fontWeight:
FontWeight
.
bold
),
)),
elevation:
0.0
,
padding:
EdgeInsets
.
fromLTRB
(
50
,
0
,
50
,
0
),
onPressed:
()
{
},
shape:
Border
(
top:
BorderSide
(
color:
Colors
.
black
,
width:
2.0
),
right:
BorderSide
(
color:
Colors
.
black
,
width:
2.0
),
bottom:
BorderSide
(
color:
Colors
.
black
,
width:
2.0
),
left:
BorderSide
(
color:
Colors
.
black
,
width:
2.0
)),
),
SizedBox
(
width:
10.0
,
height:
130.0
),
],
)),
));
}
}
pubspec.yaml
View file @
5ca550b3
...
...
@@ -22,7 +22,6 @@ dependencies:
cupertino_icons
:
^0.1.2
fluro
:
^1.3.4
hybrid_stack_manager
:
0.1.1
json_annotation
:
^2.0.0
dio
:
^2.0.0
shared_preferences
:
^0.4.2
...
...
@@ -85,3 +84,7 @@ flutter:
module
:
androidPackage
:
com.example.myflutter
iosBundleIdentifier
:
com.example.myFlutter
assets
:
-
assets/image/3.0x/icon_invite_code_verify_success.png
-
assets/image/1.0x/icon_invite_code_verify_success.png
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