Commit 5ca550b3 authored by 时健's avatar 时健

1.4-增加邀请成功页面

parent 430635fd
...@@ -3,10 +3,10 @@ import 'dart:ui' as ui; ...@@ -3,10 +3,10 @@ import 'dart:ui' as ui;
import 'package:flutter/services.dart'; import 'package:flutter/services.dart';
void main(){ void main(){
return runApp(new InputInviteCode()); return runApp(new InputInviteCodePage());
} }
class InputInviteCode extends StatelessWidget{ class InputInviteCodePage extends StatelessWidget{
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
// TODO: implement build // TODO: implement build
......
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),
],
)),
));
}
}
...@@ -22,7 +22,6 @@ dependencies: ...@@ -22,7 +22,6 @@ dependencies:
cupertino_icons: ^0.1.2 cupertino_icons: ^0.1.2
fluro: ^1.3.4 fluro: ^1.3.4
hybrid_stack_manager: 0.1.1
json_annotation: ^2.0.0 json_annotation: ^2.0.0
dio: ^2.0.0 dio: ^2.0.0
shared_preferences: ^0.4.2 shared_preferences: ^0.4.2
...@@ -85,3 +84,7 @@ flutter: ...@@ -85,3 +84,7 @@ flutter:
module: module:
androidPackage: com.example.myflutter androidPackage: com.example.myflutter
iosBundleIdentifier: 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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment