logout_page.dart 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. import 'package:bbyyy/my_tools/my_colors.dart';
  2. import 'package:bbyyy/my_tools/my_views.dart';
  3. import 'package:flutter/cupertino.dart';
  4. import 'package:flutter/material.dart';
  5. class LogoutPage extends StatefulWidget {
  6. @override
  7. _LogoutPageState createState() => _LogoutPageState();
  8. }
  9. class _LogoutPageState extends State<LogoutPage> {
  10. @override
  11. Widget build(BuildContext context) {
  12. return Scaffold(
  13. body: Column(
  14. children: [
  15. MyViews().myAppBar('注销账号', context, []),
  16. Expanded(
  17. child: Container(
  18. child: Text(
  19. '注销账户须知:\n1. 确保当前账户没有剩余积分。\n2. 确保当前账户没有未收取与未支付订单。\n3. 确保当前账户以退出所有加入的货帮并解散自己创建的所有货帮。'),
  20. margin: EdgeInsets.all(20),
  21. ),
  22. ),
  23. GestureDetector(
  24. onTap: (){
  25. showSimpleDialog('确认注销当前账户?', context, (){
  26. Navigator.pop(context);
  27. });
  28. },
  29. child: Container(
  30. height: 40,
  31. decoration: BoxDecoration(
  32. color: MyColors.cFF4233,
  33. borderRadius: BorderRadius.circular(20),
  34. ),
  35. child: Text('注销账号',style: TextStyle(color: Colors.white,fontSize: 16),),
  36. alignment: Alignment.center,
  37. margin: EdgeInsets.all(20),
  38. ),
  39. ),
  40. ],
  41. ),
  42. );
  43. }
  44. }