1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071 |
- import 'package:flutter/cupertino.dart';
- import 'package:flutter/material.dart';
- import 'package:liftmanager/internal/account/provider/user_provider.dart';
- import 'package:liftmanager/widgets/app_bar.dart';
- import 'package:liftmanager/widgets/load_image.dart';
- class PiaoCheck extends StatefulWidget {
- // PiaoCheck(this.type);
- // final String type;
- @override
- State<StatefulWidget> createState() {
- return PiaoCheckState();
- }
- }
- class PiaoCheckState extends State<PiaoCheck> {
- UserProvider provider = UserProvider();
- @override
- void initState() {
- // TODO: implement initState
- super.initState();
- }
- @override
- void dispose() {
- // provider.dispose();
- super.dispose();
- }
- @override
- Widget build(BuildContext context) {
- double width = MediaQuery.of(context).size.width;
- double height = MediaQuery.of(context).size.height;
- return Scaffold(
- appBar: MyAppBar(
- centerTitle: "电子发票详情",
- ),
- body: Stack(children: <Widget>[
- Container(
- color: Color(0xff000000),
- width: width,
- height: height,
- child: Center(
- child: LoadAssetImage(
- "temporary/timg",
- fit: BoxFit.cover,
- height: width * 0.6,
- width: width,
- )),
- ),
- Positioned(
- bottom: 50,
- left: 0,
- child: GestureDetector(
- onTap: () {
- Navigator.pop(context);
- },
- child: Container(
- width: width,
- child: Icon(
- const IconData(0xe60c, fontFamily: "myfont"),
- size: 26.0,
- color: Colors.white,
- ),
- )))
- ]));
- }
- }
|