YSShare.dart 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. import 'package:flutter/material.dart';
  2. import 'package:flutter_wallet/base/YSBase.dart';
  3. import 'package:flutter_wallet/generated/l10n.dart';
  4. import 'package:flutter_wallet/tools/YSColors.dart';
  5. import 'package:flutter_wallet/tools/YSTools.dart';
  6. class YSShare extends StatefulWidget {
  7. const YSShare({Key? key}) : super(key: key);
  8. @override
  9. YSShareState createState() => YSShareState();
  10. }
  11. class YSShareState extends State<YSShare> {
  12. @override
  13. Widget build(BuildContext context) {
  14. return YSBase(
  15. ysTitle: '邀请好友',
  16. ysChild: Container(
  17. height: ysHeight(context)-ysTOP(context)-60,
  18. width: ysWidth(context),
  19. decoration: BoxDecoration(
  20. image: DecorationImage(image: AssetImage(YSColors.imageStyle(context, S.current.FENXIANGTUPIAN)),fit: BoxFit.fill)
  21. ),
  22. child: Align(
  23. child: Padding(
  24. padding: EdgeInsets.only(top: hsp(300)),
  25. child: Image.asset(YSColors.imageStyle(context, 'WechatIMG313'),height: hsp(150),width: hsp(150),)
  26. ),
  27. )
  28. ),
  29. );
  30. }
  31. }