1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
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),
],
)),
));
}
}