| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- import 'package:flutter/material.dart';
- import 'dart:async';
- class SuccessfulReception extends StatefulWidget {
- SuccessfulReception({Key key, this.money}) : super(key: key);
- final int money;
- @override
- SuccessfulReceptionState createState() => SuccessfulReceptionState();
- }
- class SuccessfulReceptionState extends State<SuccessfulReception> {
- @override
- void initState() {
- super.initState();
- // Timer(Duration(seconds: 2), (){
- // Navigator.of(context).pop();
- // });
- }
- @override
- Widget build(BuildContext context) {
- return GestureDetector(
- onTap: () {
- Navigator.of(context).pop();
- },
- child: Scaffold(
- backgroundColor: Color(0xCC000000),
- body: Container(
- child: Center(
- child: Container(
- padding: EdgeInsets.only(top: 29, bottom: 49),
- width: 212,
- height: 220,
- decoration: BoxDecoration(
- image: DecorationImage(
- image: AssetImage('images/img_kaishiyouxi.png'),
- fit: BoxFit.fill)),
- child: Column(
- mainAxisAlignment: MainAxisAlignment.spaceBetween,
- crossAxisAlignment: CrossAxisAlignment.center,
- children: <Widget>[
- Text('领取成功',
- style: TextStyle(
- color: Color(0xFFC2524D),
- fontSize: 20,
- fontWeight: FontWeight.w600)),
- Row(
- mainAxisAlignment: MainAxisAlignment.center,
- children: <Widget>[
- Image.asset('images/icon_jinbi_xiao_hong.png',
- width: 39),
- Text(' X ' + widget.money.toString(),
- style: TextStyle(
- color: Color(0xFFC2524D),
- fontSize: 32,
- fontWeight: FontWeight.w900))
- ],
- )
- ],
- ))),
- ),
- ),
- );
- }
- }
|