|
|
@ -1,9 +1,8 @@
|
|
|
|
// Dart imports:
|
|
|
|
// Dart imports:
|
|
|
|
|
|
|
|
|
|
|
|
import 'package:aku_new_community/constants/application_objects.dart';
|
|
|
|
import 'package:aku_new_community/constants/application_objects.dart';
|
|
|
|
import 'package:aku_new_community/constants/saas_api.dart';
|
|
|
|
|
|
|
|
import 'package:aku_new_community/extensions/color_ext.dart';
|
|
|
|
import 'package:aku_new_community/extensions/color_ext.dart';
|
|
|
|
import 'package:aku_new_community/model/common/img_model.dart';
|
|
|
|
import 'package:aku_new_community/gen/assets.gen.dart';
|
|
|
|
import 'package:aku_new_community/models/home/home_activity_model.dart';
|
|
|
|
import 'package:aku_new_community/models/home/home_activity_model.dart';
|
|
|
|
import 'package:aku_new_community/models/home/home_announce_model.dart';
|
|
|
|
import 'package:aku_new_community/models/home/home_announce_model.dart';
|
|
|
|
import 'package:aku_new_community/models/home/home_swiper_model.dart';
|
|
|
|
import 'package:aku_new_community/models/home/home_swiper_model.dart';
|
|
|
@ -12,29 +11,31 @@ import 'package:aku_new_community/pages/one_alarm/widget/alarm_page.dart';
|
|
|
|
import 'package:aku_new_community/pages/visitor_access_page/visitor_access_page.dart';
|
|
|
|
import 'package:aku_new_community/pages/visitor_access_page/visitor_access_page.dart';
|
|
|
|
import 'package:aku_new_community/provider/app_provider.dart';
|
|
|
|
import 'package:aku_new_community/provider/app_provider.dart';
|
|
|
|
import 'package:aku_new_community/ui/community/activity/activity_card.dart';
|
|
|
|
import 'package:aku_new_community/ui/community/activity/activity_card.dart';
|
|
|
|
|
|
|
|
import 'package:aku_new_community/ui/community/activity/activity_detail_page.dart';
|
|
|
|
import 'package:aku_new_community/ui/community/activity/activity_list_page.dart';
|
|
|
|
import 'package:aku_new_community/ui/community/activity/activity_list_page.dart';
|
|
|
|
import 'package:aku_new_community/ui/community/community_func.dart';
|
|
|
|
import 'package:aku_new_community/ui/community/community_func.dart';
|
|
|
|
|
|
|
|
import 'package:aku_new_community/ui/community/notice/notice_detail_page.dart';
|
|
|
|
import 'package:aku_new_community/ui/home/home_notification.dart';
|
|
|
|
import 'package:aku_new_community/ui/home/home_notification.dart';
|
|
|
|
import 'package:aku_new_community/ui/home/home_title.dart';
|
|
|
|
import 'package:aku_new_community/ui/home/home_title.dart';
|
|
|
|
|
|
|
|
import 'package:aku_new_community/ui/home/public_infomation/public_information_detail_page.dart';
|
|
|
|
import 'package:aku_new_community/ui/manager/advice/advice_page.dart';
|
|
|
|
import 'package:aku_new_community/ui/manager/advice/advice_page.dart';
|
|
|
|
import 'package:aku_new_community/ui/market/search/good_detail_page.dart';
|
|
|
|
import 'package:aku_new_community/ui/market/search/good_detail_page.dart';
|
|
|
|
import 'package:aku_new_community/ui/search/bee_search.dart';
|
|
|
|
import 'package:aku_new_community/ui/search/bee_search.dart';
|
|
|
|
import 'package:aku_new_community/utils/headers.dart';
|
|
|
|
import 'package:aku_new_community/utils/headers.dart';
|
|
|
|
import 'package:aku_new_community/utils/login_util.dart';
|
|
|
|
import 'package:aku_new_community/utils/login_util.dart';
|
|
|
|
import 'package:aku_new_community/widget/animated/OverlayWidget.dart';
|
|
|
|
|
|
|
|
import 'package:aku_new_community/widget/beeImageNetwork.dart';
|
|
|
|
import 'package:aku_new_community/widget/beeImageNetwork.dart';
|
|
|
|
|
|
|
|
import 'package:aku_new_community/widget/bee_divider.dart';
|
|
|
|
import 'package:aku_new_community/widget/others/rectIndicator.dart';
|
|
|
|
import 'package:aku_new_community/widget/others/rectIndicator.dart';
|
|
|
|
import 'package:aku_new_community/widget/others/user_tool.dart';
|
|
|
|
import 'package:aku_new_community/widget/others/user_tool.dart';
|
|
|
|
|
|
|
|
import 'package:aku_new_community/widget/views/bee_gradient_divider.dart';
|
|
|
|
import 'package:badges/badges.dart';
|
|
|
|
import 'package:badges/badges.dart';
|
|
|
|
import 'package:bot_toast/bot_toast.dart';
|
|
|
|
import 'package:bot_toast/bot_toast.dart';
|
|
|
|
import 'package:cached_network_image/cached_network_image.dart';
|
|
|
|
|
|
|
|
import 'package:card_swiper/card_swiper.dart';
|
|
|
|
import 'package:card_swiper/card_swiper.dart';
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
import 'package:flutter/services.dart';
|
|
|
|
import 'package:flutter/services.dart';
|
|
|
|
import 'package:flutter_easyrefresh/easy_refresh.dart';
|
|
|
|
import 'package:flutter_easyrefresh/easy_refresh.dart';
|
|
|
|
import 'package:get/get.dart';
|
|
|
|
import 'package:get/get.dart';
|
|
|
|
import 'package:jpush_flutter/jpush_flutter.dart';
|
|
|
|
import 'package:jpush_flutter/jpush_flutter.dart';
|
|
|
|
import 'package:palette_generator/palette_generator.dart';
|
|
|
|
|
|
|
|
import 'package:power_logger/power_logger.dart';
|
|
|
|
import 'package:power_logger/power_logger.dart';
|
|
|
|
import 'package:provider/provider.dart';
|
|
|
|
import 'package:provider/provider.dart';
|
|
|
|
import 'package:url_launcher/url_launcher.dart';
|
|
|
|
import 'package:url_launcher/url_launcher.dart';
|
|
|
@ -69,7 +70,6 @@ class _HomePageState extends State<HomePage>
|
|
|
|
List<HomeSwiperModel> _swiperModels = [];
|
|
|
|
List<HomeSwiperModel> _swiperModels = [];
|
|
|
|
|
|
|
|
|
|
|
|
SwiperController _swiperController = SwiperController();
|
|
|
|
SwiperController _swiperController = SwiperController();
|
|
|
|
ValueNotifier<Color> _barColor = ValueNotifier(Colors.transparent);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
@override
|
|
|
|
void initState() {
|
|
|
|
void initState() {
|
|
|
@ -85,14 +85,6 @@ class _HomePageState extends State<HomePage>
|
|
|
|
}
|
|
|
|
}
|
|
|
|
_scrollController = ScrollController();
|
|
|
|
_scrollController = ScrollController();
|
|
|
|
_refreshController = EasyRefreshController();
|
|
|
|
_refreshController = EasyRefreshController();
|
|
|
|
_swiperController.addListener(() {
|
|
|
|
|
|
|
|
//由于先触发监听后,再执行onChangeIndex函数,所以_currentSwiperIndex会比当前index少1,用+1并求余的方式获得真正当前index;
|
|
|
|
|
|
|
|
if (_swiperModels.length <= 1) {
|
|
|
|
|
|
|
|
_swiperBarColor(0);
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
_swiperBarColor((_currentSwiperIndex + 1) % 3);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
SystemChrome.setSystemUIOverlayStyle(
|
|
|
|
SystemChrome.setSystemUIOverlayStyle(
|
|
|
|
SystemUiOverlayStyle(statusBarColor: Colors.transparent));
|
|
|
|
SystemUiOverlayStyle(statusBarColor: Colors.transparent));
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -112,38 +104,61 @@ class _HomePageState extends State<HomePage>
|
|
|
|
commentCount = appProvider.messageCenterModel.commentCount ?? 0;
|
|
|
|
commentCount = appProvider.messageCenterModel.commentCount ?? 0;
|
|
|
|
sysCount = appProvider.messageCenterModel.sysCount ?? 0;
|
|
|
|
sysCount = appProvider.messageCenterModel.sysCount ?? 0;
|
|
|
|
sum = commentCount + sysCount;
|
|
|
|
sum = commentCount + sysCount;
|
|
|
|
var head = ValueListenableBuilder(
|
|
|
|
var head = Padding(
|
|
|
|
valueListenable: _barColor,
|
|
|
|
padding: EdgeInsets.only(
|
|
|
|
builder: (context, Color color, child) {
|
|
|
|
top: MediaQuery.of(context).padding.top + 20.w,
|
|
|
|
return Container(
|
|
|
|
right: 32.w,
|
|
|
|
padding: EdgeInsets.only(top: MediaQuery.of(context).padding.top),
|
|
|
|
left: 32.w,
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
bottom: 20.w),
|
|
|
|
border: Border.all(width: 0, color: color),
|
|
|
|
|
|
|
|
color: color,
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
width: double.infinity,
|
|
|
|
|
|
|
|
child: child,
|
|
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
child: Padding(
|
|
|
|
|
|
|
|
padding: EdgeInsets.symmetric(vertical: 16.w, horizontal: 16.w),
|
|
|
|
|
|
|
|
child: Row(crossAxisAlignment: CrossAxisAlignment.center, children: [
|
|
|
|
child: Row(crossAxisAlignment: CrossAxisAlignment.center, children: [
|
|
|
|
if (appProvider.location != null)
|
|
|
|
if (appProvider.location != null)
|
|
|
|
|
|
|
|
Image.asset(
|
|
|
|
|
|
|
|
Assets.home.icLocation.path,
|
|
|
|
|
|
|
|
width: 48.w,
|
|
|
|
|
|
|
|
height: 48.w,
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
<<<<<<< HEAD
|
|
|
|
|
|
|
|
Spacer(),
|
|
|
|
|
|
|
|
// GestureDetector(
|
|
|
|
|
|
|
|
// onTap: () {
|
|
|
|
|
|
|
|
// Get.to(() => BeeSearch());
|
|
|
|
|
|
|
|
// },
|
|
|
|
|
|
|
|
// child: Image.asset(R.ASSETS_ICONS_ICON_MAIN_FIND_PNG,
|
|
|
|
|
|
|
|
// height: 40.w, width: 40.w),
|
|
|
|
|
|
|
|
// ),
|
|
|
|
Padding(
|
|
|
|
Padding(
|
|
|
|
padding: const EdgeInsets.only(right: 5),
|
|
|
|
padding: EdgeInsets.only(right: 16.w, left: 12.w),
|
|
|
|
child: Image.asset(
|
|
|
|
child: Badge(
|
|
|
|
R.ASSETS_ICONS_ICON_MAIN_LOCATION_PNG,
|
|
|
|
elevation: 0,
|
|
|
|
width: 32.w,
|
|
|
|
badgeColor: Color(0xFFCF2525),
|
|
|
|
height: 32.w,
|
|
|
|
padding: sum > 9 ? EdgeInsets.all(2.w) : EdgeInsets.all(5.w),
|
|
|
|
|
|
|
|
showBadge: appProvider.messageCenterModel.commentCount != 0 ||
|
|
|
|
|
|
|
|
appProvider.messageCenterModel.sysCount != 0,
|
|
|
|
|
|
|
|
position: BadgePosition.topEnd(
|
|
|
|
|
|
|
|
top: 8.w,
|
|
|
|
|
|
|
|
end: -4.w,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|
|
|
|
badgeContent: Text(
|
|
|
|
|
|
|
|
(sum > 99 ? 99 : sum).toString(),
|
|
|
|
|
|
|
|
style: TextStyle(color: Colors.white, fontSize: 20.sp),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|
|
|
|
child: GestureDetector(
|
|
|
|
|
|
|
|
onTap: () {
|
|
|
|
|
|
|
|
if (LoginUtil.isNotLogin) return;
|
|
|
|
|
|
|
|
Get.to(() => MessageCenterPage());
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
child: Image.asset(R.ASSETS_ICONS_ICON_MAIN_MESSAGE_PNG,
|
|
|
|
|
|
|
|
height: 40.w, width: 40.w),
|
|
|
|
|
|
|
|
)),
|
|
|
|
|
|
|
|
=======
|
|
|
|
|
|
|
|
16.wb,
|
|
|
|
Text(
|
|
|
|
Text(
|
|
|
|
appProvider.location?['city'] == null
|
|
|
|
appProvider.location?['city'] == null
|
|
|
|
? ''
|
|
|
|
? ''
|
|
|
|
: appProvider.location?['city'] as String? ?? '',
|
|
|
|
: appProvider.location?['city'] as String? ?? '',
|
|
|
|
style: TextStyle(
|
|
|
|
style: TextStyle(
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
fontSize: 24.sp,
|
|
|
|
fontSize: 28.sp,
|
|
|
|
color: Color(0xff333333),
|
|
|
|
color: Color(0xff333333),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
textAlign: TextAlign.center,
|
|
|
|
textAlign: TextAlign.center,
|
|
|
@ -151,22 +166,22 @@ class _HomePageState extends State<HomePage>
|
|
|
|
Text(
|
|
|
|
Text(
|
|
|
|
'(${appProvider.weatherType} ${appProvider.weatherTemp}℃)',
|
|
|
|
'(${appProvider.weatherType} ${appProvider.weatherTemp}℃)',
|
|
|
|
style: TextStyle(
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: 24.sp,
|
|
|
|
fontSize: 28.sp,
|
|
|
|
color: Color(0xff999999),
|
|
|
|
color: Color(0xff999999),
|
|
|
|
|
|
|
|
>>>>>>> b09ea45bd7aafc589e5c65d5846bf3243066ee5d
|
|
|
|
),
|
|
|
|
),
|
|
|
|
textAlign: TextAlign.center,
|
|
|
|
textAlign: TextAlign.center,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
Spacer(),
|
|
|
|
Spacer(),
|
|
|
|
// GestureDetector(
|
|
|
|
GestureDetector(
|
|
|
|
// onTap: () {
|
|
|
|
onTap: () {
|
|
|
|
// Get.to(() => BeeSearch());
|
|
|
|
Get.to(() => BeeSearch());
|
|
|
|
// },
|
|
|
|
},
|
|
|
|
// child: Image.asset(R.ASSETS_ICONS_ICON_MAIN_FIND_PNG,
|
|
|
|
child:
|
|
|
|
// height: 40.w, width: 40.w),
|
|
|
|
Image.asset(Assets.home.icSearch.path, height: 48.w, width: 48.w),
|
|
|
|
// ),
|
|
|
|
),
|
|
|
|
Padding(
|
|
|
|
20.wb,
|
|
|
|
padding: EdgeInsets.only(right: 16.w, left: 12.w),
|
|
|
|
Badge(
|
|
|
|
child: Badge(
|
|
|
|
|
|
|
|
elevation: 0,
|
|
|
|
elevation: 0,
|
|
|
|
badgeColor: Color(0xFFCF2525),
|
|
|
|
badgeColor: Color(0xFFCF2525),
|
|
|
|
padding: sum > 9 ? EdgeInsets.all(2.w) : EdgeInsets.all(5.w),
|
|
|
|
padding: sum > 9 ? EdgeInsets.all(2.w) : EdgeInsets.all(5.w),
|
|
|
@ -185,23 +200,32 @@ class _HomePageState extends State<HomePage>
|
|
|
|
if (LoginUtil.isNotLogin) return;
|
|
|
|
if (LoginUtil.isNotLogin) return;
|
|
|
|
Get.to(() => MessageCenterPage());
|
|
|
|
Get.to(() => MessageCenterPage());
|
|
|
|
},
|
|
|
|
},
|
|
|
|
child: Image.asset(R.ASSETS_ICONS_ICON_MAIN_MESSAGE_PNG,
|
|
|
|
child: Image.asset(Assets.home.icMessage.path,
|
|
|
|
height: 40.w, width: 40.w),
|
|
|
|
height: 48.w, width: 48.w),
|
|
|
|
)),
|
|
|
|
)),
|
|
|
|
),
|
|
|
|
|
|
|
|
]),
|
|
|
|
]),
|
|
|
|
),
|
|
|
|
|
|
|
|
);
|
|
|
|
);
|
|
|
|
return AnnotatedRegion<SystemUiOverlayStyle>(
|
|
|
|
return AnnotatedRegion<SystemUiOverlayStyle>(
|
|
|
|
value: SystemUiOverlayStyle.dark,
|
|
|
|
value: SystemUiOverlayStyle.dark,
|
|
|
|
child: Scaffold(
|
|
|
|
child: Scaffold(
|
|
|
|
extendBody: true,
|
|
|
|
extendBody: true,
|
|
|
|
extendBodyBehindAppBar: true,
|
|
|
|
extendBodyBehindAppBar: true,
|
|
|
|
body: Stack(
|
|
|
|
backgroundColor: Color(0xFFFDE019),
|
|
|
|
children: [
|
|
|
|
appBar: PreferredSize(
|
|
|
|
EasyRefresh(
|
|
|
|
preferredSize:
|
|
|
|
|
|
|
|
Size.fromHeight(MediaQuery.of(context).padding.top + 88.w),
|
|
|
|
|
|
|
|
child: head),
|
|
|
|
|
|
|
|
body: SafeArea(
|
|
|
|
|
|
|
|
child: Container(
|
|
|
|
|
|
|
|
height: MediaQuery.of(context).size.height,
|
|
|
|
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
|
|
|
|
borderRadius:
|
|
|
|
|
|
|
|
BorderRadius.vertical(top: Radius.circular(32.w)),
|
|
|
|
|
|
|
|
color: Color(0xFFF9F9F9)),
|
|
|
|
|
|
|
|
clipBehavior: Clip.antiAliasWithSaveLayer,
|
|
|
|
|
|
|
|
child: EasyRefresh(
|
|
|
|
controller: _refreshController,
|
|
|
|
controller: _refreshController,
|
|
|
|
header: BeeBallPauseHeader(bgColor: _barColor),
|
|
|
|
header: MaterialHeader(),
|
|
|
|
firstRefresh: true,
|
|
|
|
firstRefresh: true,
|
|
|
|
onRefresh: () async {
|
|
|
|
onRefresh: () async {
|
|
|
|
_activityItemModels = await CommunityFunc.activityList();
|
|
|
|
_activityItemModels = await CommunityFunc.activityList();
|
|
|
@ -211,137 +235,104 @@ class _HomePageState extends State<HomePage>
|
|
|
|
setState(() {});
|
|
|
|
setState(() {});
|
|
|
|
},
|
|
|
|
},
|
|
|
|
child: CustomScrollView(
|
|
|
|
child: CustomScrollView(
|
|
|
|
|
|
|
|
shrinkWrap: true,
|
|
|
|
controller: _scrollController,
|
|
|
|
controller: _scrollController,
|
|
|
|
slivers: [
|
|
|
|
slivers: [
|
|
|
|
SliverToBoxAdapter(
|
|
|
|
SliverToBoxAdapter(
|
|
|
|
child: Column(
|
|
|
|
child: HomeSwiper(),
|
|
|
|
mainAxisSize: MainAxisSize.min,
|
|
|
|
|
|
|
|
children: [
|
|
|
|
|
|
|
|
head,
|
|
|
|
|
|
|
|
HomeSwiper(), //要做点击事件
|
|
|
|
|
|
|
|
// SizedBox(height: 100.w),
|
|
|
|
|
|
|
|
Container(
|
|
|
|
|
|
|
|
padding: EdgeInsets.only(top: 24.w, bottom: 32.w),
|
|
|
|
|
|
|
|
child: getFunction(), //ApplicationView(),
|
|
|
|
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
|
|
|
boxShadow: const <BoxShadow>[
|
|
|
|
|
|
|
|
BoxShadow(
|
|
|
|
|
|
|
|
color: Color(0x14000000),
|
|
|
|
|
|
|
|
blurRadius: 0,
|
|
|
|
|
|
|
|
offset: Offset(0.0, 2.0),
|
|
|
|
|
|
|
|
spreadRadius: 0.1)
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
borderRadius: BorderRadius.only(
|
|
|
|
|
|
|
|
bottomLeft: Radius.circular(28),
|
|
|
|
|
|
|
|
bottomRight: Radius.circular(28))),
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
//ApplicationBox(child: ApplicationView()),
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
),
|
|
|
|
SliverToBoxAdapter(
|
|
|
|
SliverToBoxAdapter(
|
|
|
|
child: Container(
|
|
|
|
child: Container(
|
|
|
|
height: 40,
|
|
|
|
margin: EdgeInsets.symmetric(horizontal: 32.w),
|
|
|
|
margin: EdgeInsets.only(
|
|
|
|
padding:
|
|
|
|
left: 32.w, right: 32.w, top: 24.w),
|
|
|
|
EdgeInsets.only(top: 20.w, left: 0.w, right: 0.w),
|
|
|
|
|
|
|
|
child: _applications(), //ApplicationView(),
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
color: Colors.white,
|
|
|
|
color: Colors.white,
|
|
|
|
borderRadius: BorderRadius.all(Radius.circular(8)),
|
|
|
|
borderRadius: BorderRadius.circular(16.w),
|
|
|
|
boxShadow: const <BoxShadow>[
|
|
|
|
),
|
|
|
|
BoxShadow(
|
|
|
|
|
|
|
|
color: Color(0x14000000),
|
|
|
|
|
|
|
|
blurRadius: 4,
|
|
|
|
|
|
|
|
spreadRadius: 0.5)
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
),
|
|
|
|
),
|
|
|
|
child: HomeNotification(items: _boardItemModels)),
|
|
|
|
|
|
|
|
),
|
|
|
|
),
|
|
|
|
SliverToBoxAdapter(
|
|
|
|
SliverToBoxAdapter(
|
|
|
|
|
|
|
|
child: Container(
|
|
|
|
|
|
|
|
width: 686.w,
|
|
|
|
|
|
|
|
height: 320.w,
|
|
|
|
|
|
|
|
clipBehavior: Clip.antiAliasWithSaveLayer,
|
|
|
|
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
|
|
|
borderRadius: BorderRadius.circular(16.w)),
|
|
|
|
|
|
|
|
margin: EdgeInsets.all(32.w),
|
|
|
|
child: Row(
|
|
|
|
child: Row(
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
GestureDetector(
|
|
|
|
Expanded(
|
|
|
|
|
|
|
|
flex: 2,
|
|
|
|
|
|
|
|
child: GestureDetector(
|
|
|
|
child: Container(
|
|
|
|
child: Container(
|
|
|
|
margin: EdgeInsets.only(top: 24.w),
|
|
|
|
padding:
|
|
|
|
padding: EdgeInsets.only(left: 32.w, top: 24.w),
|
|
|
|
EdgeInsets.only(left: 34.w, top: 40.w),
|
|
|
|
width: 140,
|
|
|
|
|
|
|
|
height: 150,
|
|
|
|
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
|
|
|
|
borderRadius: BorderRadius.circular(16.w),
|
|
|
|
image: DecorationImage(
|
|
|
|
image: DecorationImage(
|
|
|
|
fit: BoxFit.fill,
|
|
|
|
fit: BoxFit.fill,
|
|
|
|
image:
|
|
|
|
image: AssetImage(
|
|
|
|
AssetImage(R.ASSETS_IMAGES_CARD_YELLOW_PNG),
|
|
|
|
Assets.home.imgFkyq.path),
|
|
|
|
)),
|
|
|
|
)),
|
|
|
|
child: Column(
|
|
|
|
child: Column(
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
crossAxisAlignment:
|
|
|
|
|
|
|
|
CrossAxisAlignment.start,
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
Text(
|
|
|
|
Text(
|
|
|
|
'访客邀请',
|
|
|
|
'访客邀请',
|
|
|
|
style: TextStyle(
|
|
|
|
style: TextStyle(
|
|
|
|
color: Color(0xD9000000),
|
|
|
|
color: Color(0xD9000000),
|
|
|
|
fontSize: 26.sp,
|
|
|
|
fontSize: 28.sp,
|
|
|
|
fontWeight: FontWeight.bold),
|
|
|
|
fontWeight: FontWeight.bold),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
10.hb,
|
|
|
|
10.hb,
|
|
|
|
Text(
|
|
|
|
Text(
|
|
|
|
'一键分享',
|
|
|
|
'让拜访更加便捷',
|
|
|
|
style: TextStyle(
|
|
|
|
style: TextStyle(
|
|
|
|
color: Color(0x73000000),
|
|
|
|
color: Color(0x73000000),
|
|
|
|
fontSize: 20.sp,
|
|
|
|
fontSize: 20.sp,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
Text(
|
|
|
|
|
|
|
|
'让拜访不再是难事',
|
|
|
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
|
|
|
color: Color(0x73000000),
|
|
|
|
|
|
|
|
fontSize: 20.sp,
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
Spacer(),
|
|
|
|
|
|
|
|
Image.asset(
|
|
|
|
|
|
|
|
R.ASSETS_ICONS_ICON_MAIN_INVITE_PNG,
|
|
|
|
|
|
|
|
width: 100.w,
|
|
|
|
|
|
|
|
height: 100.w,
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
30.hb,
|
|
|
|
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
onTap: () {
|
|
|
|
onTap: () {
|
|
|
|
Get.to(VisitorAccessPage());
|
|
|
|
Get.to(() => VisitorAccessPage());
|
|
|
|
},
|
|
|
|
},
|
|
|
|
),
|
|
|
|
),
|
|
|
|
25.wb,
|
|
|
|
),
|
|
|
|
Container(
|
|
|
|
BeeGradientDivider.vertical(),
|
|
|
|
margin: EdgeInsets.only(top: 24.w),
|
|
|
|
Expanded(
|
|
|
|
|
|
|
|
flex: 3,
|
|
|
|
child: Column(
|
|
|
|
child: Column(
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
GestureDetector(
|
|
|
|
Expanded(
|
|
|
|
|
|
|
|
flex: 1,
|
|
|
|
|
|
|
|
child: GestureDetector(
|
|
|
|
child: Container(
|
|
|
|
child: Container(
|
|
|
|
width: 190,
|
|
|
|
width: double.infinity,
|
|
|
|
height: 69,
|
|
|
|
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
|
|
|
|
borderRadius:
|
|
|
|
|
|
|
|
BorderRadius.circular(16.w),
|
|
|
|
image: DecorationImage(
|
|
|
|
image: DecorationImage(
|
|
|
|
fit: BoxFit.fill,
|
|
|
|
fit: BoxFit.cover,
|
|
|
|
image: AssetImage(
|
|
|
|
image: AssetImage(
|
|
|
|
R.ASSETS_IMAGES_CARD_PINK_PNG),
|
|
|
|
Assets.home.imgYjbj.path),
|
|
|
|
)),
|
|
|
|
)),
|
|
|
|
child: Row(
|
|
|
|
padding: EdgeInsets.only(
|
|
|
|
mainAxisAlignment:
|
|
|
|
left: 32.w, top: 40.w),
|
|
|
|
MainAxisAlignment.start,
|
|
|
|
child: Column(
|
|
|
|
children: [
|
|
|
|
|
|
|
|
20.wb,
|
|
|
|
|
|
|
|
Column(
|
|
|
|
|
|
|
|
crossAxisAlignment:
|
|
|
|
crossAxisAlignment:
|
|
|
|
CrossAxisAlignment.start,
|
|
|
|
CrossAxisAlignment.start,
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
20.hb,
|
|
|
|
|
|
|
|
Text(
|
|
|
|
Text(
|
|
|
|
'一键报警',
|
|
|
|
'一键报警',
|
|
|
|
style: TextStyle(
|
|
|
|
style: TextStyle(
|
|
|
|
color: Color(0xD9000000),
|
|
|
|
color: Color(0xD9000000),
|
|
|
|
fontSize: 26.sp,
|
|
|
|
fontSize: 28.sp,
|
|
|
|
fontWeight: FontWeight.bold),
|
|
|
|
fontWeight: FontWeight.bold),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
10.hb,
|
|
|
|
10.hb,
|
|
|
@ -354,46 +345,37 @@ class _HomePageState extends State<HomePage>
|
|
|
|
),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
Spacer(),
|
|
|
|
|
|
|
|
Image.asset(
|
|
|
|
|
|
|
|
R.ASSETS_ICONS_ICON_MAIN_POLICE_PNG,
|
|
|
|
|
|
|
|
width: 98.w,
|
|
|
|
|
|
|
|
height: 98.w,
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
20.wb,
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
),
|
|
|
|
onTap: () {
|
|
|
|
onTap: () {
|
|
|
|
Get.to(AlarmPage());
|
|
|
|
Get.to(() => AlarmPage());
|
|
|
|
},
|
|
|
|
},
|
|
|
|
),
|
|
|
|
),
|
|
|
|
GestureDetector(
|
|
|
|
),
|
|
|
|
|
|
|
|
BeeGradientDivider.horizontal(),
|
|
|
|
|
|
|
|
Expanded(
|
|
|
|
|
|
|
|
flex: 1,
|
|
|
|
|
|
|
|
child: GestureDetector(
|
|
|
|
child: Container(
|
|
|
|
child: Container(
|
|
|
|
margin: EdgeInsets.only(top: 20.w),
|
|
|
|
padding: EdgeInsets.only(
|
|
|
|
width: 190,
|
|
|
|
top: 40.w, left: 32.w),
|
|
|
|
height: 69,
|
|
|
|
width: double.infinity,
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
|
|
|
|
borderRadius:
|
|
|
|
|
|
|
|
BorderRadius.circular(16.w),
|
|
|
|
image: DecorationImage(
|
|
|
|
image: DecorationImage(
|
|
|
|
fit: BoxFit.fill,
|
|
|
|
fit: BoxFit.cover,
|
|
|
|
image: AssetImage(
|
|
|
|
image: AssetImage(
|
|
|
|
R.ASSETS_IMAGES_CARD_BLUE_PNG),
|
|
|
|
Assets.home.imgJyzx.path),
|
|
|
|
)),
|
|
|
|
)),
|
|
|
|
child: Row(
|
|
|
|
child: Column(
|
|
|
|
mainAxisAlignment:
|
|
|
|
|
|
|
|
MainAxisAlignment.start,
|
|
|
|
|
|
|
|
children: [
|
|
|
|
|
|
|
|
20.wb,
|
|
|
|
|
|
|
|
Column(
|
|
|
|
|
|
|
|
crossAxisAlignment:
|
|
|
|
crossAxisAlignment:
|
|
|
|
CrossAxisAlignment.start,
|
|
|
|
CrossAxisAlignment.start,
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
20.hb,
|
|
|
|
|
|
|
|
Text(
|
|
|
|
Text(
|
|
|
|
'建议咨询',
|
|
|
|
'建议咨询',
|
|
|
|
style: TextStyle(
|
|
|
|
style: TextStyle(
|
|
|
|
color: Color(0xD9000000),
|
|
|
|
color: Color(0xD9000000),
|
|
|
|
fontSize: 26.sp,
|
|
|
|
fontSize: 28.sp,
|
|
|
|
fontWeight: FontWeight.bold),
|
|
|
|
fontWeight: FontWeight.bold),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
10.hb,
|
|
|
|
10.hb,
|
|
|
@ -406,20 +388,12 @@ class _HomePageState extends State<HomePage>
|
|
|
|
),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
Spacer(),
|
|
|
|
|
|
|
|
Image.asset(
|
|
|
|
|
|
|
|
R.ASSETS_ICONS_ICON_MAIN_CONSULT_PNG,
|
|
|
|
|
|
|
|
width: 98.w,
|
|
|
|
|
|
|
|
height: 98.w,
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
20.wb,
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
),
|
|
|
|
onTap: () {
|
|
|
|
onTap: () {
|
|
|
|
Get.to(AdvicePage(
|
|
|
|
Get.to(AdvicePage(
|
|
|
|
type: AdviceType.SUGGESTION));
|
|
|
|
type: AdviceType.SUGGESTION));
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
),
|
|
|
|
)
|
|
|
|
)
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
@ -427,7 +401,14 @@ class _HomePageState extends State<HomePage>
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
SliverToBoxAdapter(
|
|
|
|
SliverToBoxAdapter(
|
|
|
|
|
|
|
|
child: Container(
|
|
|
|
|
|
|
|
padding: EdgeInsets.all(32.w),
|
|
|
|
|
|
|
|
margin: EdgeInsets.symmetric(horizontal: 32.w),
|
|
|
|
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
|
|
|
borderRadius: BorderRadius.circular(16.w)),
|
|
|
|
child: Column(
|
|
|
|
child: Column(
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
HomeTitle(
|
|
|
|
HomeTitle(
|
|
|
@ -435,11 +416,11 @@ class _HomePageState extends State<HomePage>
|
|
|
|
suffixTitle: '查看全部',
|
|
|
|
suffixTitle: '查看全部',
|
|
|
|
onTap: () => Get.to(() => ActivityListPage()),
|
|
|
|
onTap: () => Get.to(() => ActivityListPage()),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|
|
|
|
24.hb,
|
|
|
|
_activityItemModels == []
|
|
|
|
_activityItemModels == []
|
|
|
|
? SizedBox()
|
|
|
|
? SizedBox()
|
|
|
|
: Container(
|
|
|
|
: Container(
|
|
|
|
height: 480.w,
|
|
|
|
height: 460.w,
|
|
|
|
padding: EdgeInsets.only(left: 32.w),
|
|
|
|
|
|
|
|
child: ListView.separated(
|
|
|
|
child: ListView.separated(
|
|
|
|
padding: EdgeInsets.zero,
|
|
|
|
padding: EdgeInsets.zero,
|
|
|
|
separatorBuilder: (context, index) {
|
|
|
|
separatorBuilder: (context, index) {
|
|
|
@ -466,12 +447,15 @@ class _HomePageState extends State<HomePage>
|
|
|
|
// : ActivityCard(model: _activityItemModel)
|
|
|
|
// : ActivityCard(model: _activityItemModel)
|
|
|
|
// .pSymmetric(h: 24.w, v: 24.w),
|
|
|
|
// .pSymmetric(h: 24.w, v: 24.w),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
|
|
|
|
),
|
|
|
|
)),
|
|
|
|
)),
|
|
|
|
|
|
|
|
SliverToBoxAdapter(
|
|
|
|
|
|
|
|
child: 48.hb,
|
|
|
|
|
|
|
|
)
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
OverlayLivingBtnWidget()
|
|
|
|
),
|
|
|
|
],
|
|
|
|
|
|
|
|
),
|
|
|
|
),
|
|
|
|
));
|
|
|
|
));
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -479,11 +463,10 @@ class _HomePageState extends State<HomePage>
|
|
|
|
Widget HomeSwiper() {
|
|
|
|
Widget HomeSwiper() {
|
|
|
|
return Container(
|
|
|
|
return Container(
|
|
|
|
width: double.infinity,
|
|
|
|
width: double.infinity,
|
|
|
|
height: 320.w,
|
|
|
|
clipBehavior: Clip.antiAlias,
|
|
|
|
decoration:
|
|
|
|
margin: EdgeInsets.all(32.w),
|
|
|
|
BoxDecoration(border: Border.all(width: 0, color: _barColor.value)),
|
|
|
|
height: 248.w,
|
|
|
|
child: AspectRatio(
|
|
|
|
decoration: BoxDecoration(borderRadius: BorderRadius.circular(16.w)),
|
|
|
|
aspectRatio: 375 / 160,
|
|
|
|
|
|
|
|
child: Swiper(
|
|
|
|
child: Swiper(
|
|
|
|
key: UniqueKey(),
|
|
|
|
key: UniqueKey(),
|
|
|
|
controller: _swiperController,
|
|
|
|
controller: _swiperController,
|
|
|
@ -521,7 +504,6 @@ class _HomePageState extends State<HomePage>
|
|
|
|
},
|
|
|
|
},
|
|
|
|
itemCount: _swiperModels.length,
|
|
|
|
itemCount: _swiperModels.length,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|
|
|
|
);
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -531,41 +513,49 @@ class _HomePageState extends State<HomePage>
|
|
|
|
launch(model.customizeUrl ?? '');
|
|
|
|
launch(model.customizeUrl ?? '');
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case 2:
|
|
|
|
case 2:
|
|
|
|
Get.to(GoodDetailPage(goodId: model.id));
|
|
|
|
model.associationId == null
|
|
|
|
|
|
|
|
? null
|
|
|
|
|
|
|
|
: Get.to(() => GoodDetailPage(
|
|
|
|
|
|
|
|
goodId: model.associationId!,
|
|
|
|
|
|
|
|
));
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case 3:
|
|
|
|
case 3:
|
|
|
|
// Get.to(page)
|
|
|
|
model.associationId == null
|
|
|
|
|
|
|
|
? null
|
|
|
|
|
|
|
|
: Get.to(() => PublicInformationDetailPage(
|
|
|
|
|
|
|
|
id: model.associationId!,
|
|
|
|
|
|
|
|
));
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case 4:
|
|
|
|
case 4:
|
|
|
|
|
|
|
|
model.associationId == null
|
|
|
|
|
|
|
|
? null
|
|
|
|
|
|
|
|
: Get.to(() => NoticeDetailPage(
|
|
|
|
|
|
|
|
id: model.associationId!,
|
|
|
|
|
|
|
|
));
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case 5:
|
|
|
|
case 5:
|
|
|
|
|
|
|
|
model.associationId == null
|
|
|
|
|
|
|
|
? null
|
|
|
|
|
|
|
|
: Get.to(() => ActivityDetailPage(
|
|
|
|
|
|
|
|
id: model.associationId!,
|
|
|
|
|
|
|
|
));
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
default:
|
|
|
|
BotToast.showText(text: '类型错误');
|
|
|
|
() {};
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Future _swiperBarColor(int index) async {
|
|
|
|
|
|
|
|
if (_swiperModels.isNotEmpty) {
|
|
|
|
|
|
|
|
var color =
|
|
|
|
|
|
|
|
await PaletteGenerator.fromImageProvider(CachedNetworkImageProvider(
|
|
|
|
|
|
|
|
SAASAPI.image(ImgModel.first(_swiperModels[index].imgList)),
|
|
|
|
|
|
|
|
));
|
|
|
|
|
|
|
|
_barColor.value = color.dominantColor?.color ?? Colors.transparent;
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
_barColor.value = Colors.transparent;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
Widget getSwiperImage(HomeSwiperModel swiperModel) {
|
|
|
|
Widget getSwiperImage(HomeSwiperModel swiperModel) {
|
|
|
|
return Container(
|
|
|
|
return Container(
|
|
|
|
|
|
|
|
clipBehavior: Clip.antiAliasWithSaveLayer,
|
|
|
|
|
|
|
|
decoration: BoxDecoration(borderRadius: BorderRadius.circular(16.w)),
|
|
|
|
child: BeeImageNetwork(
|
|
|
|
child: BeeImageNetwork(
|
|
|
|
imgs: swiperModel.imgList ?? [],
|
|
|
|
imgs: swiperModel.imgList ?? [],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
);
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
Widget getFunction() {
|
|
|
|
Widget _applications() {
|
|
|
|
return Column(
|
|
|
|
return Column(
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
Row(
|
|
|
|
Row(
|
|
|
@ -578,30 +568,36 @@ class _HomePageState extends State<HomePage>
|
|
|
|
getFunctionBtn(AO.fromRaw('智慧养老')),
|
|
|
|
getFunctionBtn(AO.fromRaw('智慧养老')),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
32.hb,
|
|
|
|
24.hb,
|
|
|
|
Row(
|
|
|
|
Row(
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
getFunctionBtn(AO.fromRaw('周边服务')),
|
|
|
|
getFunctionBtn(AO.fromRaw('周边服务')),
|
|
|
|
getFunctionBtn(AO.fromRaw('小蜜蜂任务', replaceTitle: '任务发布')),
|
|
|
|
getFunctionBtn(AO.fromRaw('任务发布', replaceTitle: '任务发布')),
|
|
|
|
getFunctionBtn(AO.fromRaw('邻家宠物')),
|
|
|
|
getFunctionBtn(AO.fromRaw('邻家宠物')),
|
|
|
|
getFunctionBtn(AO.fromRaw('全部应用')),
|
|
|
|
getFunctionBtn(AO.fromRaw('全部应用')),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|
|
|
|
44.hb,
|
|
|
|
|
|
|
|
BeeDivider.horizontal(),
|
|
|
|
|
|
|
|
10.hb,
|
|
|
|
|
|
|
|
HomeNotification(items: _boardItemModels),
|
|
|
|
|
|
|
|
10.hb,
|
|
|
|
],
|
|
|
|
],
|
|
|
|
);
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
Widget getFunctionBtn(AO ao) {
|
|
|
|
Widget getFunctionBtn(AO ao) {
|
|
|
|
return MaterialButton(
|
|
|
|
return Expanded(
|
|
|
|
shape: StadiumBorder(),
|
|
|
|
flex: 1,
|
|
|
|
padding: EdgeInsets.zero,
|
|
|
|
child: GestureDetector(
|
|
|
|
onPressed: () {
|
|
|
|
onTap: () {
|
|
|
|
if (LoginUtil.isNotLogin) return;
|
|
|
|
if (LoginUtil.isNotLogin) return;
|
|
|
|
// if (!LoginUtil.haveRoom(ao.title)) return;
|
|
|
|
// if (!LoginUtil.haveRoom(ao.title)) return;
|
|
|
|
if (ao.page == null) {
|
|
|
|
if (ao.page == null) {
|
|
|
|
BotToast.showText(text: '该功能正在准备上线中,敬请期待', align: Alignment(0, 0.5));
|
|
|
|
BotToast.showText(
|
|
|
|
|
|
|
|
text: '该功能正在准备上线中,敬请期待', align: Alignment(0, 0.5));
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
Get.to(ao.page);
|
|
|
|
Get.to(ao.page);
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -611,13 +607,14 @@ class _HomePageState extends State<HomePage>
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
Image.asset(
|
|
|
|
Image.asset(
|
|
|
|
ao.path,
|
|
|
|
ao.path,
|
|
|
|
height: 80.w,
|
|
|
|
height: 96.w,
|
|
|
|
width: 80.w,
|
|
|
|
width: 96.w,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
16.hb,
|
|
|
|
8.hb,
|
|
|
|
ao.title.text.size(22.sp).color(Color(0xA6000000)).bold.make(),
|
|
|
|
ao.title.text.size(24.sp).color(Color(0xFF333333)).make(),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
);
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|