Browse Source

增加推荐渠道弹窗

new_revision_app
wurong 2 years ago
parent
commit
37d72eaaf2
  1. 1
      lib/home/home_page.dart
  2. 45
      lib/view_widget/channel_dialog.dart

1
lib/home/home_page.dart

@ -44,6 +44,7 @@ import 'package:flutter_screenutil/flutter_screenutil.dart';
import '../retrofit/data/user_info.dart';
import '../utils/flutter_utils.dart';
import '../view_widget/channel_dialog.dart';
import 'home_view/happy_help_farmers.dart';
import 'home_view/shortcut_operation.dart';

45
lib/view_widget/channel_dialog.dart

@ -0,0 +1,45 @@
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:flutter_smart_dialog/flutter_smart_dialog.dart';
import 'package:huixiang/generated/l10n.dart';
import 'package:huixiang/retrofit/data/login_info.dart';
import 'package:huixiang/utils/flutter_utils.dart';
import 'package:huixiang/utils/font_weight.dart';
import 'package:huixiang/view_widget/round_button.dart';
class ChannelDialog extends StatefulWidget {
@override
State<StatefulWidget> createState() {
return _ChannelDialog();
}
}
class _ChannelDialog extends State<ChannelDialog> {
@override
Widget build(BuildContext context) {
return SimpleDialog(
titlePadding: EdgeInsets.all(10),
backgroundColor: Colors.transparent,
elevation: 0,
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(6),
),
children: [
Column(children: [
GestureDetector(onTap: (){
setState(() {
Navigator.of(context).pop();
});
},child:Image.asset(
"assets/image/yq_qx.webp",
width: 34,
height: 34,
),)
],),
],
);
}
}
Loading…
Cancel
Save