opt: dynamics pic radius
This commit is contained in:
@ -66,7 +66,15 @@ Widget liveRcmdPanel(item, context, {floor = 1}) {
|
|||||||
},
|
},
|
||||||
child: LayoutBuilder(builder: (context, box) {
|
child: LayoutBuilder(builder: (context, box) {
|
||||||
double width = box.maxWidth;
|
double width = box.maxWidth;
|
||||||
return Stack(
|
return Container(
|
||||||
|
margin: floor == 1
|
||||||
|
? const EdgeInsets.only(
|
||||||
|
left: StyleString.safeSpace, right: StyleString.safeSpace)
|
||||||
|
: EdgeInsets.zero,
|
||||||
|
clipBehavior: Clip.hardEdge,
|
||||||
|
decoration: const BoxDecoration(
|
||||||
|
borderRadius: BorderRadius.all(StyleString.imgRadius)),
|
||||||
|
child: Stack(
|
||||||
children: [
|
children: [
|
||||||
Hero(
|
Hero(
|
||||||
tag: liveRcmd.roomId.toString(),
|
tag: liveRcmd.roomId.toString(),
|
||||||
@ -79,16 +87,16 @@ Widget liveRcmdPanel(item, context, {floor = 1}) {
|
|||||||
),
|
),
|
||||||
PBadge(
|
PBadge(
|
||||||
text: watchedShow['text_large'],
|
text: watchedShow['text_large'],
|
||||||
top: 6,
|
top: 8.0,
|
||||||
right: 56,
|
right: 62.0,
|
||||||
bottom: null,
|
bottom: null,
|
||||||
left: null,
|
left: null,
|
||||||
type: 'gray',
|
type: 'gray',
|
||||||
),
|
),
|
||||||
PBadge(
|
PBadge(
|
||||||
text: liveStatus == 1 ? '直播中' : '直播结束',
|
text: liveStatus == 1 ? '直播中' : '直播结束',
|
||||||
top: 6,
|
top: 8.0,
|
||||||
right: 6,
|
right: 10.0,
|
||||||
bottom: null,
|
bottom: null,
|
||||||
left: null,
|
left: null,
|
||||||
),
|
),
|
||||||
@ -136,6 +144,7 @@ Widget liveRcmdPanel(item, context, {floor = 1}) {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
|
),
|
||||||
);
|
);
|
||||||
}),
|
}),
|
||||||
),
|
),
|
||||||
|
|||||||
@ -78,7 +78,15 @@ Widget videoSeasonWidget(item, context, type, {floor = 1}) {
|
|||||||
],
|
],
|
||||||
LayoutBuilder(builder: (context, box) {
|
LayoutBuilder(builder: (context, box) {
|
||||||
double width = box.maxWidth;
|
double width = box.maxWidth;
|
||||||
return Stack(
|
return Container(
|
||||||
|
margin: floor == 1
|
||||||
|
? const EdgeInsets.only(
|
||||||
|
left: StyleString.safeSpace, right: StyleString.safeSpace)
|
||||||
|
: EdgeInsets.zero,
|
||||||
|
clipBehavior: Clip.hardEdge,
|
||||||
|
decoration: const BoxDecoration(
|
||||||
|
borderRadius: BorderRadius.all(StyleString.imgRadius)),
|
||||||
|
child: Stack(
|
||||||
children: [
|
children: [
|
||||||
NetworkImgLayer(
|
NetworkImgLayer(
|
||||||
type: floor == 1 ? 'emote' : null,
|
type: floor == 1 ? 'emote' : null,
|
||||||
@ -120,8 +128,10 @@ Widget videoSeasonWidget(item, context, type, {floor = 1}) {
|
|||||||
children: [
|
children: [
|
||||||
DefaultTextStyle.merge(
|
DefaultTextStyle.merge(
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
fontSize:
|
fontSize: Theme.of(context)
|
||||||
Theme.of(context).textTheme.labelMedium!.fontSize,
|
.textTheme
|
||||||
|
.labelMedium!
|
||||||
|
.fontSize,
|
||||||
color: Colors.white),
|
color: Colors.white),
|
||||||
child: Row(
|
child: Row(
|
||||||
children: [
|
children: [
|
||||||
@ -144,6 +154,7 @@ Widget videoSeasonWidget(item, context, type, {floor = 1}) {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
|
),
|
||||||
);
|
);
|
||||||
}),
|
}),
|
||||||
const SizedBox(height: 6),
|
const SizedBox(height: 6),
|
||||||
|
|||||||
Reference in New Issue
Block a user