From e8821b08ef2645f4f1c191418cf42dad94a16ba1 Mon Sep 17 00:00:00 2001 From: laiiihz Date: Tue, 13 Apr 2021 15:33:19 +0800 Subject: [PATCH] remove old codes and remove used import. --- lib/model/aku_shop_class_model.dart | 73 ----- lib/model/aku_shop_model.dart | 264 ------------------ lib/pages/home/home_page.dart | 2 - lib/pages/life_pay/life_pay_page.dart | 3 - .../life_pay/widget/life_pay_detail_page.dart | 2 - lib/pages/life_pay/widget/my_house_page.dart | 1 - .../shop_message_page/shop_message_page.dart | 200 ------------- lib/pages/one_alarm/widget/alarm_page.dart | 6 +- lib/pages/personal/user_profile_page.dart | 1 - lib/pages/sign/sign_in_page.dart | 43 +-- .../community_views/widgets/chat_card.dart | 5 +- lib/ui/manager/advice/advice_detail_page.dart | 2 +- lib/ui/manager/advice/advice_page.dart | 2 +- lib/widget/buttons/bee_check_button.dart | 2 +- 14 files changed, 30 insertions(+), 576 deletions(-) delete mode 100644 lib/model/aku_shop_class_model.dart delete mode 100644 lib/model/aku_shop_model.dart delete mode 100644 lib/pages/message_center_page/shop_message_page/shop_message_page.dart diff --git a/lib/model/aku_shop_class_model.dart b/lib/model/aku_shop_class_model.dart deleted file mode 100644 index cc1404b2..00000000 --- a/lib/model/aku_shop_class_model.dart +++ /dev/null @@ -1,73 +0,0 @@ -class AkuShopClassModel { - int cid; - String mainName; - List data; - - AkuShopClassModel({this.cid, this.mainName, this.data}); - - AkuShopClassModel.fromJson(Map json) { - cid = json['cid']; - mainName = json['main_name']; - if (json['data'] != null) { - data = []; - json['data'].forEach((v) { - data.add(new Data.fromJson(v)); - }); - } - } - - Map toJson() { - final Map data = new Map(); - data['cid'] = this.cid; - data['main_name'] = this.mainName; - if (this.data != null) { - data['data'] = this.data.map((v) => v.toJson()).toList(); - } - return data; - } -} - -class Data { - String nextName; - List info; - - Data({this.nextName, this.info}); - - Data.fromJson(Map json) { - nextName = json['next_name']; - if (json['info'] != null) { - info = []; - json['info'].forEach((v) { - info.add(new Info.fromJson(v)); - }); - } - } - - Map toJson() { - final Map data = new Map(); - data['next_name'] = this.nextName; - if (this.info != null) { - data['info'] = this.info.map((v) => v.toJson()).toList(); - } - return data; - } -} - -class Info { - String sonName; - String imgurl; - - Info({this.sonName, this.imgurl}); - - Info.fromJson(Map json) { - sonName = json['son_name']; - imgurl = json['imgurl']; - } - - Map toJson() { - final Map data = new Map(); - data['son_name'] = this.sonName; - data['imgurl'] = this.imgurl; - return data; - } -} diff --git a/lib/model/aku_shop_model.dart b/lib/model/aku_shop_model.dart deleted file mode 100644 index 513c4258..00000000 --- a/lib/model/aku_shop_model.dart +++ /dev/null @@ -1,264 +0,0 @@ -class AkuShopModel { - String activityType; - String activityid; - String couponCondition; - String couponexplain; - String couponurl; - String deposit; - String depositDeduct; - String discount; - String generalIndex; - String guideArticle; - String isBrand; - String isExplosion; - String isLive; - String isShipping; - String isquality; - String itemdesc; - String itemendprice; - String itemid; - String itempic; - String itempicCopy; - String itemprice; - String itemsale; - String itemsale2; - String itemshorttitle; - String itemtitle; - String me; - String onlineUsers; - String originalArticle; - String originalImg; - String planlink; - String reportStatus; - String sellerId; - String sellerName; - String sellernick; - String shopid; - String shopname; - String shoptype; - String sonCategory; - String startTime; - String starttime; - String taobaoImage; - String tkmoney; - String tkrates; - String tktype; - String todaycouponreceive; - String todaysale; - String userid; - String videoid; - String xid; - String couponreceive; - String fqcat; - String endTime; - String downType; - String cuntao; - String couponsurplus; - String couponstarttime; - String couponreceive2; - String couponnum; - String couponmoney; - String couponendtime; - String productId; - int count; - bool isCheck; - - AkuShopModel( - {this.activityType, - this.activityid, - this.couponCondition, - this.couponexplain, - this.couponurl, - this.deposit, - this.depositDeduct, - this.discount, - this.generalIndex, - this.guideArticle, - this.isBrand, - this.isExplosion, - this.isLive, - this.isShipping, - this.isquality, - this.itemdesc, - this.itemendprice, - this.itemid, - this.itempic, - this.itempicCopy, - this.itemprice, - this.itemsale, - this.itemsale2, - this.itemshorttitle, - this.itemtitle, - this.me, - this.onlineUsers, - this.originalArticle, - this.originalImg, - this.planlink, - this.reportStatus, - this.sellerId, - this.sellerName, - this.sellernick, - this.shopid, - this.shopname, - this.shoptype, - this.sonCategory, - this.startTime, - this.starttime, - this.taobaoImage, - this.tkmoney, - this.tkrates, - this.tktype, - this.todaycouponreceive, - this.todaysale, - this.userid, - this.videoid, - this.xid, - this.couponreceive, - this.fqcat, - this.endTime, - this.downType, - this.cuntao, - this.couponsurplus, - this.couponstarttime, - this.couponreceive2, - this.couponnum, - this.couponmoney, - this.couponendtime, - this.productId, - this.count, - this.isCheck}); - - AkuShopModel.fromJson(Map json) { - activityType = json['activity_type']; - activityid = json['activityid']; - couponCondition = json['coupon_condition']; - couponexplain = json['couponexplain']; - couponurl = json['couponurl']; - deposit = json['deposit']; - depositDeduct = json['deposit_deduct']; - discount = json['discount']; - generalIndex = json['general_index']; - guideArticle = json['guide_article']; - isBrand = json['is_brand']; - isExplosion = json['is_explosion']; - isLive = json['is_live']; - isShipping = json['is_shipping']; - isquality = json['isquality']; - itemdesc = json['itemdesc']; - itemendprice = json['itemendprice']; - itemid = json['itemid']; - itempic = json['itempic']; - itempicCopy = json['itempic_copy']; - itemprice = json['itemprice']; - itemsale = json['itemsale']; - itemsale2 = json['itemsale2']; - itemshorttitle = json['itemshorttitle']; - itemtitle = json['itemtitle']; - me = json['me']; - onlineUsers = json['online_users']; - originalArticle = json['original_article']; - originalImg = json['original_img']; - planlink = json['planlink']; - reportStatus = json['report_status']; - sellerId = json['seller_id']; - sellerName = json['seller_name']; - sellernick = json['sellernick']; - shopid = json['shopid']; - shopname = json['shopname']; - shoptype = json['shoptype']; - sonCategory = json['son_category']; - startTime = json['start_time']; - starttime = json['starttime']; - taobaoImage = json['taobao_image']; - tkmoney = json['tkmoney']; - tkrates = json['tkrates']; - tktype = json['tktype']; - todaycouponreceive = json['todaycouponreceive']; - todaysale = json['todaysale']; - userid = json['userid']; - videoid = json['videoid']; - xid = json['xid']; - couponreceive = json['couponreceive']; - fqcat = json['fqcat']; - endTime = json['end_time']; - downType = json['down_type']; - cuntao = json['cuntao']; - couponsurplus = json['couponsurplus']; - couponstarttime = json['couponstarttime']; - couponreceive2 = json['couponreceive2']; - couponnum = json['couponnum']; - couponmoney = json['couponmoney']; - couponendtime = json['couponendtime']; - productId = json['product_id']; - count = json['count']; - isCheck = json['isCheck']; - } - - Map toJson() { - final Map data = new Map(); - data['activity_type'] = this.activityType; - data['activityid'] = this.activityid; - data['coupon_condition'] = this.couponCondition; - data['couponexplain'] = this.couponexplain; - data['couponurl'] = this.couponurl; - data['deposit'] = this.deposit; - data['deposit_deduct'] = this.depositDeduct; - data['discount'] = this.discount; - data['general_index'] = this.generalIndex; - data['guide_article'] = this.guideArticle; - data['is_brand'] = this.isBrand; - data['is_explosion'] = this.isExplosion; - data['is_live'] = this.isLive; - data['is_shipping'] = this.isShipping; - data['isquality'] = this.isquality; - data['itemdesc'] = this.itemdesc; - data['itemendprice'] = this.itemendprice; - data['itemid'] = this.itemid; - data['itempic'] = this.itempic; - data['itempic_copy'] = this.itempicCopy; - data['itemprice'] = this.itemprice; - data['itemsale'] = this.itemsale; - data['itemsale2'] = this.itemsale2; - data['itemshorttitle'] = this.itemshorttitle; - data['itemtitle'] = this.itemtitle; - data['me'] = this.me; - data['online_users'] = this.onlineUsers; - data['original_article'] = this.originalArticle; - data['original_img'] = this.originalImg; - data['planlink'] = this.planlink; - data['report_status'] = this.reportStatus; - data['seller_id'] = this.sellerId; - data['seller_name'] = this.sellerName; - data['sellernick'] = this.sellernick; - data['shopid'] = this.shopid; - data['shopname'] = this.shopname; - data['shoptype'] = this.shoptype; - data['son_category'] = this.sonCategory; - data['start_time'] = this.startTime; - data['starttime'] = this.starttime; - data['taobao_image'] = this.taobaoImage; - data['tkmoney'] = this.tkmoney; - data['tkrates'] = this.tkrates; - data['tktype'] = this.tktype; - data['todaycouponreceive'] = this.todaycouponreceive; - data['todaysale'] = this.todaysale; - data['userid'] = this.userid; - data['videoid'] = this.videoid; - data['xid'] = this.xid; - data['couponreceive'] = this.couponreceive; - data['fqcat'] = this.fqcat; - data['end_time'] = this.endTime; - data['down_type'] = this.downType; - data['cuntao'] = this.cuntao; - data['couponsurplus'] = this.couponsurplus; - data['couponstarttime'] = this.couponstarttime; - data['couponreceive2'] = this.couponreceive2; - data['couponnum'] = this.couponnum; - data['couponmoney'] = this.couponmoney; - data['couponendtime'] = this.couponendtime; - data['product_id'] = this.productId; - data['count'] = this.count; - data['isCheck'] = this.isCheck; - return data; - } -} diff --git a/lib/pages/home/home_page.dart b/lib/pages/home/home_page.dart index 65c80497..ec2d021d 100644 --- a/lib/pages/home/home_page.dart +++ b/lib/pages/home/home_page.dart @@ -11,7 +11,6 @@ import 'package:provider/provider.dart'; import 'package:velocity_x/velocity_x.dart'; import 'package:akuCommunity/const/resource.dart'; -import 'package:akuCommunity/model/aku_shop_model.dart'; import 'package:akuCommunity/model/community/activity_item_model.dart'; import 'package:akuCommunity/model/community/board_model.dart'; import 'package:akuCommunity/pages/home/widget/animate_app_bar.dart'; @@ -43,7 +42,6 @@ class _HomePageState extends State ScrollController _scrollController; - List _shopList = []; List data; EasyRefreshController _refreshController = EasyRefreshController(); diff --git a/lib/pages/life_pay/life_pay_page.dart b/lib/pages/life_pay/life_pay_page.dart index 0ad0452b..6cdca603 100644 --- a/lib/pages/life_pay/life_pay_page.dart +++ b/lib/pages/life_pay/life_pay_page.dart @@ -14,7 +14,6 @@ import 'package:akuCommunity/constants/api.dart'; import 'package:akuCommunity/model/manager/life_pay_model.dart'; import 'package:akuCommunity/pages/life_pay/widget/life_pay_detail_page.dart'; import 'package:akuCommunity/pages/things_page/widget/bee_list_view.dart'; -import 'package:akuCommunity/provider/user_provider.dart'; import 'package:akuCommunity/utils/bee_parse.dart'; import 'package:akuCommunity/utils/headers.dart'; import 'package:akuCommunity/widget/bee_divider.dart'; @@ -54,7 +53,6 @@ class _LifePayPageState extends State { } Widget _buildHouseCard() { - UserProvider userProvider = Provider.of(context); AppProvider appProvider = Provider.of(context); return Material( color: kForeGroundColor, @@ -224,7 +222,6 @@ class _LifePayPageState extends State { @override Widget build(BuildContext context) { - UserProvider userProvider = Provider.of(context); final appProvider = Provider.of(context); return BeeScaffold( title: '生活缴费', diff --git a/lib/pages/life_pay/widget/life_pay_detail_page.dart b/lib/pages/life_pay/widget/life_pay_detail_page.dart index d0839969..5c08c1fb 100644 --- a/lib/pages/life_pay/widget/life_pay_detail_page.dart +++ b/lib/pages/life_pay/widget/life_pay_detail_page.dart @@ -7,7 +7,6 @@ import 'package:provider/provider.dart'; import 'package:akuCommunity/base/base_style.dart'; import 'package:akuCommunity/model/manager/life_pay_model.dart'; import 'package:akuCommunity/provider/app_provider.dart'; -import 'package:akuCommunity/provider/user_provider.dart'; import 'package:akuCommunity/utils/bee_parse.dart'; import 'package:akuCommunity/utils/headers.dart'; import 'package:akuCommunity/widget/bee_scaffold.dart'; @@ -102,7 +101,6 @@ class _LifePayDetailPageState extends State { } Widget _buildCard(DailyPaymentTypeVos model) { - UserProvider userProvider = Provider.of(context); final appProvider = Provider.of(context); return Container( padding: EdgeInsets.symmetric(horizontal: 32.w, vertical: 20.w), diff --git a/lib/pages/life_pay/widget/my_house_page.dart b/lib/pages/life_pay/widget/my_house_page.dart index 0a8975b7..d60bc5e6 100644 --- a/lib/pages/life_pay/widget/my_house_page.dart +++ b/lib/pages/life_pay/widget/my_house_page.dart @@ -65,7 +65,6 @@ class _MyHousePageState extends State { Widget _buildCard(int currentHouseId, String estateName, int index, {bool paid = false}) { - UserProvider userProvider = Provider.of(context); AppProvider appProvider = Provider.of(context); return Container( padding: EdgeInsets.symmetric(horizontal: 32.w, vertical: 32.w), diff --git a/lib/pages/message_center_page/shop_message_page/shop_message_page.dart b/lib/pages/message_center_page/shop_message_page/shop_message_page.dart deleted file mode 100644 index 4f8561d4..00000000 --- a/lib/pages/message_center_page/shop_message_page/shop_message_page.dart +++ /dev/null @@ -1,200 +0,0 @@ -// import 'package:akuCommunity/pages/common/common_page.dart'; - -import 'package:flutter/cupertino.dart'; -import 'package:flutter/material.dart'; - -import 'package:flutter_icons/flutter_icons.dart'; -import 'package:velocity_x/velocity_x.dart'; - -import 'package:akuCommunity/utils/headers.dart'; -import 'package:akuCommunity/widget/bee_scaffold.dart'; - -class ShopMessagePage extends StatefulWidget { - ShopMessagePage({Key key}) : super(key: key); - - @override - _ShopMessagePageState createState() => _ShopMessagePageState(); -} - -class _ShopMessagePageState extends State { - List> _listNotice = [ - { - 'status': '已读', - 'type': '您的订单已签收', - 'imagePath': 'assets/example/tz1.png', - 'content': '您购买的 轻便自由,男士针织休闲西装 已签收', - 'lookType': '查看快递' - }, - { - 'status': '已读', - 'type': '您的订单已发货', - 'imagePath': 'assets/example/tz2.png', - 'content': '您购买的 亚瑟士/Asic Gel轻跑鞋黑武士 已发货 ', - 'lookType': '查看快递' - }, - { - 'status': '已读', - 'type': '交易退款成功', - 'imagePath': 'assets/example/tz3.png', - 'content': '您的订单已退款成功 来自退款编号:6236402934702983', - 'lookType': '查看详情' - }, - ]; - - @override - void initState() { - super.initState(); - } - - void _onRefresh() async { - await Future.delayed(Duration(milliseconds: 1500)); - } - - void _onLoading() async { - await Future.delayed(Duration(milliseconds: 1500)); - - if (mounted) setState(() {}); - } - - // void refundRouter() { - // CommonPage( - // bundle: Bundle() - // ..putMap('commentMap', { - // 'title': '退款详情', - // 'isActions': false, - // }), - // ).to; - // } - - void expressRouter() {} - - @override - void dispose() { - super.dispose(); - } - - InkWell _inkWellLook(String type, content, lookType) { - return InkWell( - onTap: () { - // lookType == '查看详情' ? refundRouter() : expressRouter(); - }, - child: Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - Text( - lookType, - style: TextStyle(fontSize: 28.sp, color: Color(0xff333333)), - ), - Icon(AntDesign.right, size: 40.sp), - ], - ), - ); - } - - Container _containerCard(String status, type, imagePath, content, lookType) { - return Container( - margin: EdgeInsets.only( - top: 32.w, - left: 32.w, - right: 32.w, - ), - padding: - EdgeInsets.only(top: 21.w, bottom: 14.w, left: 30.w, right: 20.w), - decoration: BoxDecoration( - color: Color(0xffffffff), - borderRadius: BorderRadius.all(Radius.circular(4)), - boxShadow: [ - BoxShadow( - color: Colors.grey.withOpacity(0.1), - offset: Offset(1, 1), - blurRadius: 10.0), - ], - ), - child: Column( - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - Container( - padding: EdgeInsets.only(left: 2.w), - child: Column( - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - Text( - '商城通知', - style: TextStyle( - fontWeight: FontWeight.w600, - fontSize: 32.sp, - color: Color(0xff333333)), - ), - Text( - status, - style: - TextStyle(fontSize: 32.sp, color: Color(0xff999999)), - ), - ], - ), - SizedBox(height: 5.w), - Text(type, - style: - TextStyle(fontSize: 28.sp, color: Color(0xff333333))), - SizedBox(height: 8.w), - Row( - children: [ - Image.asset( - imagePath, - height: 120.w, - width: 120.w, - ), - SizedBox(width: 32.w), - Container( - width: 439.w, - child: Text( - content, - maxLines: 2, - overflow: TextOverflow.ellipsis, - style: TextStyle( - fontSize: 28.sp, color: Color(0xff999999)), - ), - ), - ], - ), - ], - ), - ), - SizedBox(height: 30.w), - Divider(), - _inkWellLook(type, content, lookType), - ], - ), - ); - } - - @override - Widget build(BuildContext context) { - return BeeScaffold( - title: '商城通知', - actions: [ - InkWell( - onTap: () {}, - child: Container( - padding: EdgeInsets.fromLTRB(32.w, 28.w, 32.w, 20.w), - child: '清空'.text.black.size(28.sp).make(), - alignment: Alignment.center, - ), - ) - ], - body: ListView.builder( - itemBuilder: (context, index) => _containerCard( - _listNotice[index]['status'], - _listNotice[index]['type'], - _listNotice[index]['imagePath'], - _listNotice[index]['content'], - _listNotice[index]['lookType'], - ), - itemCount: _listNotice.length, - ), - ); - } -} diff --git a/lib/pages/one_alarm/widget/alarm_page.dart b/lib/pages/one_alarm/widget/alarm_page.dart index 3a6e05d6..99f92934 100644 --- a/lib/pages/one_alarm/widget/alarm_page.dart +++ b/lib/pages/one_alarm/widget/alarm_page.dart @@ -156,7 +156,7 @@ class _AlarmPageState extends State { spreadRadius: 1, ) ]), - child: FlatButton( + child: MaterialButton( padding: EdgeInsets.zero, shape: RoundedRectangleBorder( borderRadius: BorderRadius.circular(66.w)), @@ -181,7 +181,7 @@ class _AlarmPageState extends State { decoration: BoxDecoration(color: Color(0xFFFFFFFF).withOpacity(0.9)), child: Stack( - overflow: Overflow.visible, + clipBehavior: Clip.none, alignment: Alignment.topCenter, children: [ Positioned( @@ -215,7 +215,7 @@ class _AlarmPageState extends State { ) ], ), - child: FlatButton( + child: MaterialButton( shape: RoundedRectangleBorder( borderRadius: BorderRadius.circular(172.w)), onPressed: () { diff --git a/lib/pages/personal/user_profile_page.dart b/lib/pages/personal/user_profile_page.dart index 0d4c1dec..ecc1353a 100644 --- a/lib/pages/personal/user_profile_page.dart +++ b/lib/pages/personal/user_profile_page.dart @@ -32,7 +32,6 @@ class UserProfilePage extends StatefulWidget { class _UserProfilePageState extends State { int _sex = 1; - DateTime _birthday = DateTime.now(); Widget _buildTile(String title, Widget suffix, {VoidCallback onPressed}) { return MaterialButton( color: Colors.white, diff --git a/lib/pages/sign/sign_in_page.dart b/lib/pages/sign/sign_in_page.dart index d3fa992a..f1a15567 100644 --- a/lib/pages/sign/sign_in_page.dart +++ b/lib/pages/sign/sign_in_page.dart @@ -272,30 +272,33 @@ class _SignInPageState extends State { ), SizedBox(height: 59.w), _inkWellLogin(), + 10.hb, Row( mainAxisAlignment: MainAxisAlignment.center, children: [ - FlatButton( - shape: StadiumBorder(), - padding: EdgeInsets.zero, - onPressed: () => Get.to(AgreementPage()), - child: Text( - '《小蜜蜂用户协议》', - style: TextStyle( - color: Colors.lightBlue, - ), - )), + MaterialButton( + shape: StadiumBorder(), + padding: EdgeInsets.zero, + onPressed: () => Get.to(AgreementPage()), + child: Text( + '《小蜜蜂用户协议》', + style: TextStyle( + color: Colors.lightBlue, + ), + ), + ), SizedBox(width: 15.w), - FlatButton( - shape: StadiumBorder(), - padding: EdgeInsets.zero, - onPressed: () => Get.to(() => PrivacyPage()), - child: Text( - '《小蜜蜂隐私政策》', - style: TextStyle( - color: Colors.lightBlue, - ), - )) + MaterialButton( + shape: StadiumBorder(), + padding: EdgeInsets.zero, + onPressed: () => Get.to(() => PrivacyPage()), + child: Text( + '《小蜜蜂隐私政策》', + style: TextStyle( + color: Colors.lightBlue, + ), + ), + ), ], ), ], diff --git a/lib/ui/community/community_views/widgets/chat_card.dart b/lib/ui/community/community_views/widgets/chat_card.dart index f63616f5..161f909a 100644 --- a/lib/ui/community/community_views/widgets/chat_card.dart +++ b/lib/ui/community/community_views/widgets/chat_card.dart @@ -364,10 +364,7 @@ class _ChatCardState extends State { .color(Color(0xFF999999)) .make(), _isMyself - ? FlatButton( - materialTapTargetSize: - MaterialTapTargetSize.shrinkWrap, - height: 48.w, + ? TextButton( onPressed: () async { bool result = await Get.dialog(CupertinoAlertDialog( diff --git a/lib/ui/manager/advice/advice_detail_page.dart b/lib/ui/manager/advice/advice_detail_page.dart index e4ef07c9..0dbcfc42 100644 --- a/lib/ui/manager/advice/advice_detail_page.dart +++ b/lib/ui/manager/advice/advice_detail_page.dart @@ -162,7 +162,7 @@ class _AdviceDetailPageState extends State { return BeeScaffold( title: '查看详情', actions: [ - FlatButton( + TextButton( onPressed: () => Get.to(() => AdviceEvaluatePage(id: widget.model.id)), child: '评价'.text.make(), diff --git a/lib/ui/manager/advice/advice_page.dart b/lib/ui/manager/advice/advice_page.dart index fc4d24ee..b04fdf2e 100644 --- a/lib/ui/manager/advice/advice_page.dart +++ b/lib/ui/manager/advice/advice_page.dart @@ -91,7 +91,7 @@ class _AdvicePageState extends State with TickerProviderStateMixin { return BeeScaffold( title: title, actions: [ - FlatButton( + TextButton( onPressed: () => setState(() => _selectedMode = !_selectedMode), child: (_selectedMode ? '完成' : '编辑').text.make(), ), diff --git a/lib/widget/buttons/bee_check_button.dart b/lib/widget/buttons/bee_check_button.dart index b3d5def3..c7e6dd68 100644 --- a/lib/widget/buttons/bee_check_button.dart +++ b/lib/widget/buttons/bee_check_button.dart @@ -20,7 +20,7 @@ class _BeeCheckButtonState extends State { bool get isSelect => widget.groupValue == widget.value; @override Widget build(BuildContext context) { - return FlatButton( + return MaterialButton( onPressed: () { widget.onChange(widget.value); },