意见反馈逻辑修改

hmxc
小赖 4 years ago
parent 80ca5b741e
commit 69bcbfb6c8

@ -1,5 +1,6 @@
import 'dart:math'; import 'dart:math';
import 'package:flustars/flustars.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter/cupertino.dart'; import 'package:flutter/cupertino.dart';
import 'package:akuCommunity/utils/screenutil.dart'; import 'package:akuCommunity/utils/screenutil.dart';
@ -75,10 +76,22 @@ class _FeedBackPageState extends State<FeedBackPage> {
Widget _inkWellSubmit() { Widget _inkWellSubmit() {
return InkWell( return InkWell(
onTap: () { onTap: () {
if (TextUtil.isEmpty(_ideaContent.text))
showToast('意见不能为空');
else {
showDialog(
context: context,
child: Center(
child: CupertinoActivityIndicator(),
),
);
Future.delayed(Duration(milliseconds: 1000 + Random().nextInt(1000)),
() {
showToast('意见提交成功');
Navigator.pop(context);
Navigator.pop(context); Navigator.pop(context);
Future.delayed(Duration(milliseconds:1000+ Random().nextInt(1000)), () {
showToast('提交成功!');
}); });
}
}, },
child: Container( child: Container(
alignment: Alignment.center, alignment: Alignment.center,

Loading…
Cancel
Save