buildDetailWidget method
Widget
buildDetailWidget(
- BuildContext context,
- List<
BasicGroupConfig> allConfig, - int groupId,
- int index,
override
构建查看详情页的 widget
Implementation
@override
Widget buildDetailWidget(BuildContext context,
List<BasicGroupConfig> allConfig, int groupId, int index) {
return Container(
color: Colors.white,
child: Stack(
children: <Widget>[
Positioned(
left: 0,
top: 0,
right: 0,
bottom: 0,
child: GestureDetector(
onTap: () {
onTap?.call();
},
onDoubleTap: () {
onDoubleTap?.call();
},
onLongPress: () {
onLongPress?.call();
},
child: Container(
color: Colors.white,
child: PhotoView(
backgroundDecoration:
BoxDecoration(color: themeData!.pageBackgroundColor),
loadingBuilder: (context, event) {
return Container(
color: themeData!.pageBackgroundColor,
child: const LoadingDialog(),
);
},
imageProvider: NetworkImage(url),
),
),
),
),
showBottom
? Positioned(
left: 0,
right: 0,
bottom: 0,
child: SafeArea(
top: false,
child: BrnPhotoBottomCard(
name: name,
des: des,
model: bottomCardModel,
contentHeight: bottomContentHeight,
themeData: themeData,
),
),
)
: const Row()
],
),
);
}