diff --git a/lib/home/home_page.dart b/lib/home/home_page.dart index a984a42e..62daf29d 100644 --- a/lib/home/home_page.dart +++ b/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'; diff --git a/lib/view_widget/channel_dialog.dart b/lib/view_widget/channel_dialog.dart new file mode 100644 index 00000000..68513e5f --- /dev/null +++ b/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 createState() { + return _ChannelDialog(); + } + +} + +class _ChannelDialog extends State { + @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, + ),) + + ],), + ], + ); + } +}