【发布时间】:2021-03-13 10:31:57
【问题描述】:
我的父母是一个容器,里面有一张卡片。
我想将我的横幅放在左上角的卡片视图中。
Container(
child :Card(
child:Banner(
message: 'hello',
location: BannerLocation.topEnd,
child:myWidget()
)
)
)
【问题讨论】:
标签: android ios flutter user-interface banner
我的父母是一个容器,里面有一张卡片。
我想将我的横幅放在左上角的卡片视图中。
Container(
child :Card(
child:Banner(
message: 'hello',
location: BannerLocation.topEnd,
child:myWidget()
)
)
)
【问题讨论】:
标签: android ios flutter user-interface banner
用 ClipRect 包裹你的横幅小部件
ClipRect(
child: Banner(
message: "hello",
)
)
【讨论】: